Quantcast
Channel: Adobe Community : Popular Discussions - After Effects Expressions
Viewing all articles
Browse latest Browse all 47983

Source Text slider apparition

$
0
0

Hi,

 

I would like to use a slider to display a text (when the slider value is 0, the source text display nothing, when it is 10, the source text display the 10 first letters etc...). Like the Typewriter animation effect (but I need it with a Source Text expression)

 

 

I created a slider named "TextSlicer"

Wrote a text layer

And this expression in Source Text :

 

try

{

text.sourceText.split("")[Math.round(effect("TextSlicer")("Slider"))] 

}

catch(err)

{text.sourceText }

 

 

With this expression, I can display one letter at time.

 

My goal would be to display N letters, based on the slider value :

text.sourceText.split("")[0] + text.sourceText.split("")[1] + text.sourceText.split("")[2] + text.sourceText.split("")[n] ............

 

 

 

 

 

Thanks !


Viewing all articles
Browse latest Browse all 47983

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>