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?
On 26/10/2011 at 02:06, xxxxxxxx wrote:
What do you mean by script exactly? Can you give an example?
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
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:
from c4d import gui
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
On 26/10/2011 at 06:20, xxxxxxxx wrote:
I hope those may be a good introduction to you.
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).