Skip to main content
Inspiring
March 6, 2023
Answered

can I link Text Animation to sliders?

  • March 6, 2023
  • 1 reply
  • 1030 views

I wanna be able to change the time of a text animation through editing sliders values 

 

I've seen a guy on YT that made the same but linked the animation to some "markers" I've tried to do the same with sliders but my expression is just a miss and I'm not really good at that yet. can anyone help/tell me where to look?

 

I (and him) have 8 words in the animation and I need to adjust when the animation happened to each word Individually

 

his expression is:

 

 

nim = thisProperty;
numMarkers= marker.numKeys;
delayDur = framestoTime(effect("Delay Duration")("Slider").value);
delay = (textIndex - 1) * delayDur;

if (numMarkers > 0) { delay = textIndex <= numMarkers ? marker.key(textIndex).time : marker.key (numMarkers).time } anim.valueatTime (time - delay)​

 

his video on YT called "Link Text Animation to Markers in After Effects".

 

thanks for all the help!

 
 
 

 

 

This topic has been closed for replies.
Correct answer Dan Ebberts

So you want to connect a different slider to each word?


In case that's what you were asking, this is one way you could link each word to a different slider. The first word will be looking for a slider named "Delay Duration 1" to specify its delay (in frames). The second word will be looking for slider "Delay Duration 2" and so on:

delay = framesToTime(effect("Delay Duration " + textIndex)("Slider").value);
valueAtTime (time - delay)

1 reply

Dan Ebberts
Community Expert
Community Expert
March 6, 2023

Your expression has a few typos in it. I think this will work:

anim = thisProperty;
numMarkers= marker.numKeys;
delayDur = framesToTime(effect("Delay Duration")("Slider").value);
delay = (textIndex - 1) * delayDur;

if (numMarkers > 0) { 
  delay = textIndex <= numMarkers ? marker.key(textIndex).time : marker.key (numMarkers).time;
} 
anim.valueAtTime (time - delay)

What exactly did you want to do with the slider?

 

omar5DC2Author
Inspiring
March 7, 2023

That's a expression I found online .

I want to use the sliders to delay or earli the keyframes instead of the markers.

 

Let's say the slider is set by default to 50 and sliding it down will make a word appear earlier and so on

Thanks!

omar5DC2Author
Inspiring
March 7, 2023

If there is a way to link a marker to a slider so it moves with that would work too