Expressions/Scripts/Presets

Moderator: Paul Tuersley

 
User avatar
sylvaimz
Topic Author
Posts: 4
Joined: Tue Feb 24, 2009 11:26 am

How to update UI apps ?

Tue Apr 28, 2009 5:05 am

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.
 
sshahriyari
Posts: 11
Joined: Mon Jan 16, 2017 11:59 pm

Re: How to update UI apps ?

Thu Feb 23, 2017 1:45 am

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.
 
runegan
Posts: 22
Joined: Fri Nov 04, 2016 3:18 pm
Contact:

Re: How to update UI apps ?

Thu Feb 23, 2017 6:36 am

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
comp.selected = false
comp.selected = true


Hope this helps, haven't tried this so don't know if it works :)
 
beginUndoGroup
Posts: 79
Joined: Tue Nov 27, 2012 6:41 am

Re: How to update UI apps ?

Fri Feb 24, 2017 6:43 am

@runegan : you can close a comp this way:

comp.openInViewer();
app.executeCommand(4); // 4 is "Close"

Xavier

Who is online

Users browsing this forum: No registered users and 2 guests