ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Expression to change text

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Glenroy James
Expression to change text
on Dec 12, 2009 at 2:27:58 pm

I'm trying to use the following expression to change the text of a text field on the stage at different time intervals as indicated by a slider control.

s = "may \rthe FLAME of peace, properity and happiness|and \rwarm your heart";
ind = effect("Slider Control")("Slider");
text.sourceText = s.split('|',ind);

new to AE expressions so how does this work?


Return to posts index

Glenroy James
Re: Expression to change text
on Dec 12, 2009 at 2:30:10 pm

s = "may \rthe FLAME of peace, properity and happiness|and \rwarm your heart";
ind = effect("Slider Control")("Slider");
t = s.split('|');
text.sourceText =t[ind];

updated my expression...(I know some javascript)


Return to posts index

Glenroy James
Re: Expression to change text
on Dec 12, 2009 at 2:47:44 pm


got it!
s = "may \rthe FLAME of\rpeace, properity\rand happiness|and \rwarm your heart";
ind = parseInt(thisComp.layer("Paragraphs").effect("textArray")("Slider"));
t = s.split('|')[ind];
text.sourceText = t;


Return to posts index


Michael Szalapski
Re: Expression to change text
on Dec 12, 2009 at 4:19:39 pm

Real quick note here; prosperity is spelled wrong.

- The Great Szalam
(The 'Great' stands for 'Not So Great, in fact, Extremely Humble')

No trees were harmed in the creation of this message, but several thousand electrons were mildly inconvenienced.


Return to posts index

Dave LaRonde
Re: Expression to change text
on Dec 12, 2009 at 6:28:49 pm

Y'know, I have GOT to spend time learning about expressions. I didn't follow any of that.

A New Year's resolution, perhaps?

Dave LaRonde
Sr. Promotion Producer
KCRG-TV (ABC) Cedar Rapids, IA


Return to posts index

Chris Wright
Re: Expression to change text
on Dec 12, 2009 at 10:20:35 pm

give yourself a cow button, and if you want, for easier control, divide the slider by 5 or something so you can easily animate without your mouse slipping around.


http://technicolorsoftware.hostzi.com/


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]