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

    Trying to force run an animation cycle

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 299 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 17/03/2013 at 21:52, xxxxxxxx wrote:

      I am listening for a Button Press message and when that button is detected, it triggers a function I have that moves the time slider to a new time (using BaseDocument.SetTime()).  That works great.  However, it jumps to the new time but doesn't run a cycle of my plugin so objects don't get updated or colors I have set don't switch.  If I move any slider in the whole app, or move 1 frame and back or just move anything in the editor view, everything "pops" into place (assuming because it ran another cycle).

      How can I force this to happen after I do a doc.SetTime()?

      I tried EventAdd with all of it's flags, I tried the GeSyncMessage and it's flags as well as doc.AnimateObject().

      Nothing does the trick.  Any ideas?

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

        On 18/03/2013 at 02:38, xxxxxxxx wrote:

        In the Py SDK Documents -> BaseDocument bottom of page
        there is an example using:
        c4d.DrawViews().
        See if that helps.

        Cheers
        Lennart

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

          On 18/03/2013 at 03:36, xxxxxxxx wrote:

          If I remember correctly, there's a function c4d.documents.SetDocumentTime().

          -Niklas

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

            On 18/03/2013 at 11:03, xxxxxxxx wrote:

            As usual, Lennart, you solved it.  Apparently it was the last update/refresh type thing I hadn't tried.  I used the Force Full Redraw flag and now when it pops to a new document time, everything updates with it correctly.

            I may just go back to emailing you directly 😉

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