Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Marker question

Guest
May 23, 2011 May 23, 2011

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

TOPICS
Scripting
509
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 23, 2011 May 23, 2011
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines