ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Grabbing source.Text from one layer and incorporating it into a layer with an expression

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Dan Fredley
Re: Grabbing source.Text from one layer and incorporating it into a layer with an expression
on Aug 8, 2012 at 7:12:26 pm

Try this:

myText = comp("Name of Comp").layer("Name of Layer").text.sourceText;
L = myText.length;

F=Math.round(time%1);
T=time*thisComp.layer("Controller Sliders").effect("Speed")("Slider")-thisComp.layer("Controller Sliders").effect("Start at")("Slider")*thisComp.layer("Controller Sliders").effect("Speed")("Slider");
D=thisComp.layer("Controller Sliders").effect("Start at")("Slider")+thisComp.layer("Controller Sliders").effect("Duration")("Slider");

if(T>L){(R=L)}else{R=T};
if(time>D){(E=0)}else(E=1);
if(time>D){(G=L-(time-D)*thisComp.layer("Controller Sliders").effect("Speed")("Slider"))}else(G=0);
if(F==1|((R0)|G>0&G<L){Fl="_";}else{Fl=" ";}

myText.substr(0,(E*R)+G)+Fl


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]