Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Script to turn on/off all layers…

  • Script to turn on/off all layers…

    Posted by Tom Ma on February 14, 2012 at 8:43 pm

    Is there a script to turn on/off all layers in an entire project based on their label color?

    I have multiple translations of the same info and would love an easy way to flip them on/off.
    My layers are color coded.

    Tom Ma replied 14 years, 2 months ago 3 Members · 5 Replies
  • 5 Replies
  • Kevin Camp

    February 14, 2012 at 9:01 pm

    you might check out this script (watch the tutorial to see if it will do what you need):
    https://aescripts.com/zorro-the-layer-tagger/

    aenhancers.com may have something too.

    Kevin Camp
    Senior Designer
    KCPQ, KMYQ & KRCW

  • Tom Ma

    February 14, 2012 at 9:23 pm

    Thanks Kevin.. yep, I posted in aeenhancers as well.
    also looked at zorro.. it is good, but cannot operate project wide, only active comp it seems.

    seems like a pretty common thing.

  • Walter Soyka

    February 15, 2012 at 1:02 pm

    [Tom Masters] “I have multiple translations of the same info and would love an easy way to flip them on/off. My layers are color coded.”

    I think pt_TextEdit [link] will do what you want — if you use tags in layer comments instead of (or in addition to) the label colors.

    Walter Soyka
    Principal & Designer at Keen Live
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    RenderBreak Blog – What I’m thinking when my workstation’s thinking
    Creative Cow Forum Host: Live & Stage Events

  • Tom Ma

    February 16, 2012 at 1:58 am

    thanks Walter.. and great script. I tried the demo, however some of the layers are not text, rather images related to the other language.

    I haven’t found anything that will work.. kinda surprised it has never come up.. seems like a common type of task.

  • Tom Ma

    February 16, 2012 at 2:11 am

    I did find this script (below) it turns off all guide layers project wide.

    now if I could only change the script to turn off all layers of a certain label color, rather than guide layers.

    for (var h=1; h <= app.project.numItems; h++)
    if (app.project.item(h) instanceof CompItem)
    for (var i=1; i <= app.project.item(h).numLayers; i++)
    if (app.project.item(h).layer(i).guideLayer) app.project.item(h).layer(i).enabled = false;

    (& obviously I could change = false to = true to turn the layers back on.)

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