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

    Simulating a Scrub in the Timeline?

    Cinema 4D SDK
    r20 python
    3
    4
    825
    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.
    • B
      bentraje
      last edited by

      Hi,

      I made a rig, and for some reason, it does not work well unless I scrub the timeline. It's as if the timeline gives an update to the scene. You can see an illustration of the problem here:
      https://www.dropbox.com/s/anlueipqy6t6rhw/c4d125_simulate_moving_timeline.mp4?dl=0

      I'm not sure about this but I guess the term to do this redraw, correct me if I'm wrong.
      I checked the documentation but the redraw() method is only available under c4d.gui module.

      Is there a way to simulate a scrub in the timeline or redraw on a document/scene level?

      Thank you for looking at my problem.

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

        You may want to try ExecutePasses() - that command will animate the current frame of the document and therefore works like scrubbing the timeline.

        1 Reply Last reply Reply Quote 3
        • B
          bentraje
          last edited by bentraje

          @mp5gosu
          Not sure about the whole mechanics of the command but it works.
          Here is the code I used:
          doc.ExecutePasses(None, True, True,True,c4d.BUILDFLAGS_0)

          1 Reply Last reply Reply Quote 0
          • ManuelM
            Manuel
            last edited by

            hi @bentraje ,

            Just to confirm @mp5gosu answer.

            We can also point you to BaseDocument manual where you have some information about ExecutePasses

            Cheers
            Manuel

            MAXON SDK Specialist

            MAXON Registered Developer

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