ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Script to turn on/off all layers...

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Tom Masters
Script to turn on/off all layers...
on Feb 14, 2012 at 8:43:01 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.


Return to posts index

Kevin Camp
Re: Script to turn on/off all layers...
on Feb 14, 2012 at 9:01:57 pm

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

aenhancers.com may have something too.

Kevin Camp
Senior Designer
KCPQ, KMYQ & KRCW


Return to posts index

Tom Masters
Re: Script to turn on/off all layers...
on Feb 14, 2012 at 9:23:07 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.


Return to posts index


Walter Soyka
Re: Script to turn on/off all layers...
on Feb 15, 2012 at 1:02:11 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


Return to posts index

Tom Masters
Re: Script to turn on/off all layers...
on Feb 16, 2012 at 1:58:20 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.


Return to posts index

Tom Masters
Re: Script to turn on/off all layers...
on Feb 16, 2012 at 2:11:31 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.)


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]