Page 1 of 1

Turn off visibility of all guide layers?

Posted: April 3rd, 2011, 2:15 pm
by Navstar
Is there a script that can help me turn off the eyeball for guide layers? Or perhaps just delete all guide layers from a comp.

I have some some old projects with numerous missing elements. But the guide layers display as the usual "missing" color bars, so I have a hard time determining what footage I really need to replace and what can be ignored. I've got hundreds of comps to go through. I'd prefer not have to open each one and turn off the guide layers visibility.

Re: Turn off visibility of all guide layers?

Posted: April 4th, 2011, 12:02 pm
by lloydalvarez
This script will go through all the comps in the project and turn the visibility off on any guide layers.

Code: Select all

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;
-Lloyd

Re: Turn off visibility of all guide layers?

Posted: April 5th, 2011, 8:50 am
by Navstar
Fan-freakin-tastic! Works like a charm! 8)

Thanks!!