Activity › Forums › Adobe After Effects Expressions › Targeting Text in another composition
-
Targeting Text in another composition
Posted by Glenroy James on January 6, 2011 at 4:34 pmHi,
I have created a text effect which I want to reuse on different text for a duration of a movie clip( reason for not just coping the effect on to each text itself is because the text effect requires duplicating the instance text multiple times to achieve the effect ). So I created the text and effect into a comp…My question is…
Can I target the text in the comp from the “parent” of the comp?
Glenroy James replied 15 years, 4 months ago 2 Members · 10 Replies -
10 Replies
-
Glenroy James
January 7, 2011 at 1:36 amwhat i want to do is have its parent composition change the text using expressions…
thus
thisComp.layerTheCompisOn.theComp.layerTheTextIsOn.textValue = ‘text’;
-
Dan Ebberts
January 7, 2011 at 2:00 amSorry, I still don’t get it. I’m not sure what “layerTheCompisOn” means.
Maybe you could explain it like Layer A is in Comp A, Comp A is a layer in Comp B, etc…
Dan
-
Glenroy James
January 7, 2011 at 12:59 pmOk cool
I have a movie scene which I want to have a repeated effect taken on each instance of text…I rather not have to copy and paste the effect to each text instance…instead I was hoping to have the effect in a comp and for each instance of the comp use a expressions to manipulate the text inside it.
Thus
I have a COMP A that has a layer with 2 text fields with text effects on them I place COMP A as an instance on COMP B thus COMP A is a CHILD of COMP B…
Can I change the actual “text” in COMP A using an expression in COMP B?
-
Dan Ebberts
January 7, 2011 at 7:13 pmNo. The expression has to be applied to the property (source text, in this case) that you want to animate. So to change something in Comp A, the expression has to be in Comp A. You can have that expression linked to something in Comp B (another text layer, for example) so that the property with the expression responds to changes in the parent comp, but I’m not sure if that meets your requirements.
Dan
-
Glenroy James
January 7, 2011 at 10:01 pm[Dan Ebberts] “but I’m not sure if that meets your requirements.”
Aaaahhhh actually it can….
just to clarify via psuedo…
so a CompA.layer.textsource = CompB.layer.textsource; // CompB is parent to CompA?
if i create a transparent text source in comp b and have comp a use it as the source text it just might work >:-D muuuaahhahahahahahahaha…thanks!
-
Glenroy James
January 7, 2011 at 11:05 pmthere is such a thing as “parent” right? i don’t see any references on it? :-/
-
Dan Ebberts
January 7, 2011 at 11:14 pmThere’s no way to reference a comp’s parent comp except by name. Sometimes you can get around that with a clever naming convention if you can set things up so that the expression can calculate the name of the parent comp based on thisComp.name. For example, if your comp names were “Main_B15” and “Sub_B15”, an expression in the sub comp could do something like this:
myParentComp = comp(“Main” + “_” + thisComp.name.split(“_”)[1]);
Kind of a pain though.
Dan
-
Glenroy James
January 7, 2011 at 11:34 pmURGH! KRINGE! its just 4 pieces of text…
I was just reading through this thread
https://forums.creativecow.net/thread/227/8035#14705
I guess i’ll do it the old fashion way :-S
Reply to this Discussion! Login or Sign Up