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?
On 18/03/2013 at 02:38, xxxxxxxx wrote:
In the Py SDK Documents -> BaseDocument bottom of page
there is an example using:
See if that helps.
On 18/03/2013 at 03:36, xxxxxxxx wrote:
If I remember correctly, there's a function c4d.documents.SetDocumentTime().
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