Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi all,
Sorry for the dumb question, but, is there a simple way to know in Python if the timeline is playing? I would like to know its state to allows or forbid some UI changes.
I thought at first that there is a message raised when play button has been pressed, but I haven't found anything obvious.
Thanks!
Hi @mocoloco you can use c4d.CheckIsRunning(c4d.CHECKISRUNNING_ANIMATIONRUNNING) to query the state of the timeline. In C++ there is the method IsAnimationRunning but this is not available in Python therefore I added it, so it should be there in the next release.
c4d.CheckIsRunning(c4d.CHECKISRUNNING_ANIMATIONRUNNING)
Cheers, Maxime.
Hello @m_adam,
Thanks a lot, it works like a charm!
Have a good day, Christophe