Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Can an AE script check which effects are are already applied to the selected layer(s) when it runs ?

  • Can an AE script check which effects are are already applied to the selected layer(s) when it runs ?

    Posted by Dirk De jong on November 3, 2017 at 1:44 pm

    Can an AE script check which effects are are already applied to the selected layer(s) when it runs ?

    Googling and looking through the scripting guide I’m so far not finding a straightforward way to do this. (no such AVLayer or Layer attribute?) I have a script that runs on the selected layer(s) and would like to post a dialogue and abort the script in cases where a specific effect is already applied to any of the selected layers…

    If it’s not possible to do it that way I’m thinking of doing the check based on layer name – since the layers I’m trying to avoid users running the script on are layers that have previously been created (and named) by my script so I have control of what the layers are named (at least till a user changes the name : )

    Thanks for any info / ideas.

    Andrei Popa replied 8 years, 6 months ago 2 Members · 1 Reply
  • 1 Reply
  • Andrei Popa

    November 3, 2017 at 4:12 pm

    I think you should do a match name check. Something like if (!specificLayer("Effects")("ADBE Drop Shadow"))
    specificLayer("Effects").addProperty("ADBE Drop Shadow")

    This way you apply drop shadow on the layer only once, no matter how many times you run the script.
    You can get the match name by running the gimmePropPath from the redefinery free scripts collection that you can find here https://www.redefinery.com/index.php . Just check the “Match name” in the script GUI and then select your effect to find its match name.

    Andrei
    My Envato portfolio.

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