Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Layer info text layer listing effects?

  • Layer info text layer listing effects?

    Posted by Peter O’connell on August 22, 2008 at 2:44 pm

    Hi I am putting together a little layer info text layer that displays data from the layer above it. I would like to add all the effects used on the layer to the displayed data.
    Here is what I have so far (just for opacity and scale):

    //start
    thisComp.layer(index – 1).name +
    “\rOpacity = ” + thisComp.layer(index – 1).opacity.value +
    “\rScaleX = ” + thisComp.layer(index – 1).scale[0] +
    “\rScaleY = ” + thisComp.layer(index – 1).scale[1]
    //end

    but how do I add a list of effects? I guess I first need to count the effects and then list them but I can’t find any expression syntax that will do that.
    Thanks
    Pete

    roguekeyframe.com

    Peter O’connell replied 17 years, 8 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    August 22, 2008 at 4:30 pm

    This seems to work:

    s = “”;
    i = 1;
    while (true){
    try{
    s += thisComp.layer(index-1).effect(i).name;
    }catch (err){
    break;
    }
    i++;
    s += “\\r”;
    }
    s

    Dan

  • Peter O’connell

    August 22, 2008 at 5:27 pm

    Yowza!
    Thanks
    Pete

  • Peter O’connell

    August 22, 2008 at 5:44 pm

    s = ” “;
    i = 1;
    while (true){
    try{
    s += thisComp.layer(index-1).effect(i).name;
    }catch (err){
    break;
    }
    i++;
    s += “\r “;
    }

    “Layer : ” + thisComp.layer(index – 1).name +
    “\rOpacity = ” + thisComp.layer(index – 1).opacity.value +
    “\rScaleX = ” + thisComp.layer(index – 1).scale[0] +
    “\rScaleY = ” + thisComp.layer(index – 1).scale[1] +
    “\rEffects:” +
    “\r” + s

  • Peter O’connell

    August 22, 2008 at 6:52 pm

    s = ” “;
    i = 1;
    while (true){
    try{
    s += thisComp.layer(index-1).effect(i).name;
    }catch (err){
    break;
    }
    i++;
    s += “\r “;
    }

    “Layer : ” + thisComp.layer(index – 1).name +
    “\rOpacity = ” + thisComp.layer(index – 1).opacity.value +
    “\rScaleX = ” + thisComp.layer(index – 1).scale[0] +
    “\rScaleY = ” + thisComp.layer(index – 1).scale[1] +
    “\rEffects:” +
    “\r” + s

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy