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
    • Recent
    • Tags
    • Users
    • Login

    How to get the current Frame

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 485 Views
    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 Offline
      Helper
      last edited by

      On 31/03/2014 at 20:08, xxxxxxxx wrote:

      Does anyone know how to get the current frame in python?  I was hoping I could just push play and get the current frame as it plays through the timeline.
      Jimmy

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

        On 01/04/2014 at 01:46, xxxxxxxx wrote:

        Take a look at the BaseDocument class in the Python documentation. The page contains an example which runs through the scene and displays the time. Is this what you are looking for?

        Cheers, s_rath

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

          On 01/04/2014 at 08:42, xxxxxxxx wrote:

          Wow....If it had teeth it would've bit me.  Thank you s_rath!

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

            On 01/04/2014 at 14:09, xxxxxxxx wrote:

            s_rath,
            I do have one more question.  How do I get the current frame that the green marker is on? I don't want to traverse the timeline but find out what frame the current marker is on.
            Jimmy

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

              On 01/04/2014 at 14:15, xxxxxxxx wrote:

              Nevermind I found it.

              ctime = doc.GetTime() # Save current time
              print 'CTIME ' + str(ctime.GetFrame(fps))

              Thanks bru

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