Copy link to clipboard
Copied
Is there an easy way to loop through a comp and make the opacity 0 for all layers that have a marker present?
I am terrible with this loop through stuff.
Thanks guys!
-Tyler
Copy link to clipboard
Copied
Something like this:
{
var myComp = app.project.activeItem;
var myLayer;
for (var i = 1; i <= myComp.numLayers; i++){
myLayer = myComp.layer(i);
if (myLayer.property("Marker").numKeys > 0)
myLayer.property("Opacity").setValue(0);
}
}
Dan
Find more inspiration, events, and resources on the new Adobe Community
Explore Now