Start script



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 26/10/2011 at 01:54, xxxxxxxx wrote:

    I would like to write a script, but I'm not able to start it. If I click on run nothing happen. Can anywhone tell me, how to start a script in C4D R13?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 26/10/2011 at 02:06, xxxxxxxx wrote:

    What do you mean by script exactly? Can you give an example?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 26/10/2011 at 05:07, xxxxxxxx wrote:

    I tried for example

    > import c4d
    > c4d.gui.messagebox("Hello World")
    >
    It's an example from http://www.total3d.de



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 26/10/2011 at 05:29, xxxxxxxx wrote:

    The tutorial on Total3d is about the old API of Py4D before it was integrated in CINEMA 4D. With the integration in R12 the API was updated. The script now looks like this:

    import c4d
    from c4d import gui
    gui.MessageDialog("Hello World!")
    

    If you open the Console "Script->Console" you will also see an error message if you start your script.

    AttributeError: 'module' object has no attribute 'messagebox'
    

    I hope this helps. Cheers, Sebastian



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 26/10/2011 at 06:20, xxxxxxxx wrote:

    I hope those may be a good introduction to you.

    http://forums.cgsociety.org/showthread.php?f=47&t=1005134

    Cheers, Niklas



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 26/10/2011 at 06:50, xxxxxxxx wrote:

    OK, that solves my first problem. Now I have to set the texture of the objects (see the other thread).


Log in to reply