ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Control speed of text tracking

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
David Cabestany
Control speed of text tracking
on Jan 23, 2019 at 5:10:57 pm

I wrote the expression below. It does what I want to, but I had to manually calculate the duration of the fade so it would match when the layer is ending and accelerate the tracking from that point onward.

Can anyone help me tweak this expression so the tracking speeds up automatically as the out point of the layer approaches and I am able to extend or retract said out point without having to recalculate the duration of the fade each time?

Thanks in advance for your help.

t=time;
fadeDur = 1.55;

if
(t&lt;=2)
{
time
}
else
{
easeOut(time,outPoint,outPoint-fadeDur,0,30)
}
;





Return to posts index

Andrei Popa
Re: Control speed of text tracking
on Jan 24, 2019 at 7:44:57 am

What do you want your expression to do exactly? Because this seems bizarre. Is this applied to your tracking property? Because it increases it to 2 until it arrives to 2 seconds, then it is 0, then it grows during the last 1.55 seconds of your layer.

Andrei
My Envato portfolio.


Return to posts index

David Cabestany
Re: Control speed of text tracking
on Jan 24, 2019 at 3:13:36 pm

This is what I'm trying to accomplish. I need to do it on several similarly looking comps which have different lengths in text and durations, hence why I need it to be easy to adjust, by just extending or contracting the put point of the layer.

13058_simulatedtextfordemopurposes.mp4.zip

Thanks.


Return to posts index


David Cabestany
Re: Control speed of text tracking
on Jan 24, 2019 at 3:20:19 pm

By the way, your assertion that after 2 seconds it goes back to 0 and then grows again is incorrect, after 2 seconds it continues to grow but not from 0, it keeps the tracking pace it had before.


Return to posts index

David Cabestany
Re: Control speed of text tracking
on Jan 24, 2019 at 5:24:54 pm

I revised the expression to the following.
But When it reaches the fadeDur point in the layer it resets to 0, because I put valueAtTime(time) it should read the value at the current time and not go back to 0.
If anyone can help me sort this bit it will be greatly appreciated.

Thanks.

t=time;
fadeDur = 1.6;
tr=text.animator("Animator 2").property.trackingAmount

if
(t&lt;=
(outPoint-fadeDur))
{
time*2
}
else
{
easeOut(time,outPoint,outPoint-fadeDur,tr.valueAtTime(time),30)
}
;






Return to posts index

Kalleheikki Kannisto
Re: Control speed of text tracking
on Jan 25, 2019 at 7:16:26 pm

As far as I can tell, you can just add "time*2+" to the beginning of the easeOut line.

Kalleheikki Kannisto
Senior Graphic Designer


Return to posts index


David Cabestany
Re: Control speed of text tracking
on Jan 25, 2019 at 7:33:05 pm

Thanks, Kalleheikki,

Yes, I eventually figured it out, but I placed it at the end of the line, like this:

I'm not very clear on why it works, but it does nonetheless.
Thank you for taking the time to look into this.

t=time;
fadeDur = 1.5;
tr=text.animator("Animator 2").property.trackingAmount

if
(t&lt;=
(outPoint-fadeDur))
{
time*2
}
else
{
easeIn(time,outPoint,outPoint-fadeDur,(time*2),30)
}
;






Return to posts index

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