On 21/01/2017 at 10:04, xxxxxxxx wrote:
I am trying to familiarise myself better with the way python works in cinema 4d, so I am working on a python tag which helps control a dynamics vehicle.
Is there a built in function which is part of the c4d module which can initiate timed events?
I think more likely there is a simple function which can be defined using the current frame input. But I'm not sure how to write such a function (or do you say, definition?);
My main problem is understanding what is the "main" def in places like the python tag and node in xpresso.
My assumption is that whatever is in "main", is run every frame. Is there more to it than that?
I come across issues when I define something outside of "main" and try to call it from "main", sometimes it works, sometimes it doesn't. Sometimes I can define a variable, sometimes it doesn't work unless I define it with a value.. can someone explain to me the fundamentals, or link to some help?