Initialise global objects for scene [SOLVED]

  • On 08/11/2014 at 09:21, xxxxxxxx wrote:

    I'm trying to figure out something very simple - how with a python tag - to have it create a cube in the scene upon initialisation - so that it persists, and can be accessed globally.  The problem I'm having is that the external renderer is recreating another cube by reinitialising the document.

    This is the example code - how would I change it ?  Thanks..

    import c4d
    #Welcome to the world of Python

    def main() :

  • On 08/11/2014 at 09:30, xxxxxxxx wrote:

    A tag is simply not the right tool to get done what you want. Why can't
    you use a Python Generator instead?

  • On 08/11/2014 at 09:53, xxxxxxxx wrote:

    Yeah I'll try that. Makes sense. Thank you!

Log in to reply