Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions selectedLayers change event

  • selectedLayers change event

    Posted by Marc Krenn on February 2, 2019 at 11:30 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 }

    Marc Krenn replied 7 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Andrei Popa

    February 2, 2019 at 3:39 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.

    Andrei
    My Envato portfolio.

  • Marc Krenn

    February 2, 2019 at 5:08 pm

    Bummer, but what can you do?! ☺

    Will fall back to a button.

    Thanks, Andrei!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy