Activity › Forums › Adobe After Effects Expressions › Natural Type-On Expression
-
Adam Haas
October 23, 2018 at 11:48 pmHow can I do this so it starts at the beginning of the layer and not the composition?
-
Kalleheikki Kannisto
October 25, 2018 at 8:42 amFrom earlier in this thread:
I think you just need to change this line:
t = 0;
to this:
t = inPoint;
Dan
Kalleheikki Kannisto
Senior Graphic Designer -
John Crump
October 6, 2020 at 6:44 pmThis works very well Dan, but is there a solution to make this work per word instead of per character? Thank you
-
Filip Vandueren
October 6, 2020 at 7:55 pmI think this should work for words:
words=value.match(/([^\s\u0003]*[\s+|\u0003]?)/g);
minRate = 10; // frames per character
maxRate = 20;
wordCount = 0;
t = inPoint;
seedRandom(index,true);
while (t < time){
wordCount++;
t += framesToTime(random(minRate,maxRate));
}
words.slice(0,wordCount).join("");
Reply to this Discussion! Login or Sign Up