Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Detecting animation playback in viewport?

    SDK Help
    0
    2
    171
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

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

        Howdy,

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

        Adios,
        Cactus Dan

        1 Reply Last reply Reply Quote 0
        • First post
          Last post