Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: HomeForumBasicsExpressionsTutorialsPodcastsMotion GraphicsTrainingCinema 4DFAQ

Layer info text layer listing effects?

Cow Forums : Adobe After Effects Expressions

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>
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




Respond to this post   •   Return to posts index

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




Respond to this post   •   Return to posts index

Re: Layer info text layer listing effects?
by Peter O'Connell on Aug 22, 2008 at 5:27:23 pm

Yowza!
Thanks
Pete

Respond to this post   •   Return to posts index


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


Respond to this post   •   Return to posts index

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


Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]