Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US :: FAQ
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE AFTER EFFECTS:HomeForumBasicsExpressionsTutorialsPodcastsAE TechniquesCreative Cloud DebateFAQ

Variable to control layer or effect name within an expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook
Lennie NelsonVariable to control layer or effect name within an expression
by on Apr 8, 2012 at 4:53:11 pm

I would like to control part of a layer name in an expression with a variable, i.e.:

Change
thisComp.layer("Target Layers").effect("1")("Layer").position[1];

to

thisComp.layer("Target Layers").effect("VARIABLE")("Layer").position[1];

Any ideas?

TIA


Return to posts index
Reply   Like  

Dan EbbertsRe: Variable to control layer or effect name within an expression
by on Apr 8, 2012 at 5:45:31 pm

Like this:

myName = "1";
thisComp.layer("Target Layers").effect(myName)("Layer").position[1];


Dan



Return to posts index
Reply   Like  

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook


FORUMSTUTORIALSFEATURESVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2014 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]