Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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

    Timeline playing - MSG or method to get it?

    Cinema 4D SDK
    2023 python s26
    2
    3
    493
    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.
    • mocolocoM
      mocoloco
      last edited by mocoloco

      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!

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        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.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 2
        • mocolocoM
          mocoloco
          last edited by mocoloco

          Hello @m_adam,

          Thanks a lot, it works like a charm!

          Have a good day,
          Christophe

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