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
Update Viewport
Moderator: Paul Tuersley
-
- Posts: 62
- Joined: September 5th, 2006, 3:45 am
- Location: Chiswick, London, UK
- Contact:
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...?
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...?
