ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

selectedLayers change event

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Marc Krenn
selectedLayers change event
on Feb 2, 2019 at 11:30:58 am

Hi there,

long time lurker (15y+), first time poster ☺ Not sure if this is the right subforum, as this is a AE script question.

Anyways, I'm looking for an Event that fires when the user selects a new layer. Is there a such a thing (pseudo-code below)?

Thanks a bunch!

app.project.activeItem.onChange = function () { //selectedLayers changed }

Return to posts index

Andrei Popa
Re: selectedLayers change event
on Feb 2, 2019 at 3:39:52 pm

You can not listen to events in the project with a script. onChange only works when something in the script changes(I meanin the UI of the script). I think in order to be able to do that you need to build a plugin, but those are completely other story. The best way to trigger events remains the use of a button.

My Envato portfolio.

Return to posts index

Marc Krenn
Re: selectedLayers change event
on Feb 2, 2019 at 5:08:00 pm

Bummer, but what can you do?! ☺

Will fall back to a button.

Thanks, Andrei!

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 All Rights Reserved