Layer info text layer listing effects?
Layer info text layer listing effects?
by Peter O'Connell
on
Aug 22, 2008 at 2:44:34 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
Re: Layer info text layer listing effects? by Dan Ebberts on Aug 22, 2008 at 4:30:57 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
Re: Layer info text layer listing effects? by Peter O'Connell on Aug 22, 2008 at 5:27:23 pm
Yowza!
Thanks
Pete
Here are the two parts together by Peter O'Connell on Aug 22, 2008 at 5:44:11 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
Re: Here are the two parts together by Peter O'Connell on Aug 22, 2008 at 6:52:19 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