Detecting animation playback in viewport?

On 07/11/2015 at 05:46, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R17 
Platform:    Mac  ;  
Language(s) :     C++  ;

---------
Is there any way to detect if the viewport is currently playing an animation (ie, the user pressed the play button)?

I've got a fairly computationally expensive plugin here, and I'd like to switch it into a preview mode when the scene is playing back in the VP, since otherwise things grind to a halt while C4D is waiting for all the tags to execute.

Is there any way to do this?

-CMPX

On 07/11/2015 at 06:43, xxxxxxxx wrote:

Howdy,

You can use the CheckIsRunning() function for that. 😉

Adios,
Cactus Dan