Turn off visibility of all guide layers?

What type of scripts do you need?

Moderator: byronnash

Post Reply
Navstar
Posts: 68
Joined: February 16th, 2009, 12:41 pm

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.
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

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
Navstar
Posts: 68
Joined: February 16th, 2009, 12:41 pm

Fan-freakin-tastic! Works like a charm! 8)

Thanks!!
Post Reply