Hello,
I've a script that change PAR of the active comp for example...
but i've to unselect then reselect that comp to see the change...
Is there a function to update-refresh the UI of After effect ?
Thanks.
How to update UI apps ?
Moderator: Paul Tuersley
-
- Posts: 30
- Joined: January 16th, 2017, 11:59 pm
- Contact:
I Have a same question!
sylvaimz wrote:Hello,
I've a script that change PAR of the active comp for example...
but i've to unselect then reselect that comp to see the change...
Is there a function to update-refresh the UI of After effect ?
Thanks.
My Scripts :
https://gumroad.com/sshahriyari
Do you have to close and reopen the comp? Or just deselect and select it in the project panel?
I can't see any function to close a comp, but if you have to close it, you could try creating a new comp, open it, with comp.openInViewer(), then opening the comp you have changed in the same way. This will hopefully make the composition viewer panel to update.]
If you just need to deselect and select in the project panel, you can use
Hope this helps, haven't tried this so don't know if it works 
I can't see any function to close a comp, but if you have to close it, you could try creating a new comp, open it, with comp.openInViewer(), then opening the comp you have changed in the same way. This will hopefully make the composition viewer panel to update.]
If you just need to deselect and select in the project panel, you can use
Code: Select all
comp.selected = false
comp.selected = true

-
- Posts: 81
- Joined: November 27th, 2012, 6:41 am
@runegan : you can close a comp this way:
comp.openInViewer();
app.executeCommand(4); // 4 is "Close"
Xavier
comp.openInViewer();
app.executeCommand(4); // 4 is "Close"
Xavier