Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions AE Scripting – Shy / Reveal all Comps globally in a project?

  • AE Scripting – Shy / Reveal all Comps globally in a project?

    Posted by Casey Drogin on March 1, 2022 at 10:14 pm

    So I’m writing a script, my goal being to have a window where I can press the “Shy Button” on every comp throughout the entire project.

    As of right now, I’ve written the script to work inside of any active composition, both to Shy and Reveal. However, I’m having trouble writing it so that it runs through every single composition in the AEP and sets “hideShyLayers” to “true.”

    I’ve attached my script as a .txt file. If anyone has any ideas, I would greatly appreciate it! I think it might be a “for” loop, but not entirely sure.

    Casey Drogin replied 4 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    March 1, 2022 at 11:08 pm

    This is a little function that should set hideShyLayers to true in every comp:

    function shyAllComps(){

    for (var i = 1; i <= app.project.numItems; i++){

    if (app.project.item(i) instanceof CompItem){

    app.project.item(i).hideShyLayers = true;

    }

    }

    }

  • Casey Drogin

    March 1, 2022 at 11:24 pm

    Dan – worked like an absolute charm. I’m working in a massive project right now and this is a lifesaver. Thank you!!!

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