Page 1 of 1

Update Viewport

Posted: January 8th, 2007, 9:22 am
by oatz
I have a script that creates a mask on the given layer.
I want to add a UI that can adjust the verts with a slider, but the viewport doesn't update with the modal dialog open. Is there a workaround or a force redraw so I can see how my changes have affected the mask?

Khye

Possible workaround

Posted: January 16th, 2007, 4:34 pm
by Darkmoon_UK
As far as I can make out, After Effects doesn't update any of its user interface while a script is executing, except while rendering, when the output is displayed.

Just an idea, and quite an extreme one, but could you allow your script to end when you want an update, and make the last command the scheduleTask command, so that there is a second-or-so gap of 'normal' AE time for the UI update, then the scheduled task calls your script again with some kind of flag (be it argument/file) to tell it to resume.

It would be a vicious hack, but if you really need the update...? :-)