ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Decode text every 2 frames

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Dmitrii Vac
Decode text every 2 frames
on Mar 1, 2020 at 12:34:27 am

Hi

I use this expression for decode effect to my text.
What do I need to add to the code, for decode letter every 2 frame?

c = ['D','C','B','N','M','T'];
s = "";
for(x=0; x &lt; value.length; x++){
r = Math.floor(random(0, c.length));
s += c[r];
}
s


Return to posts index

Dan Ebberts
Re: Decode text every 2 frames
on Mar 1, 2020 at 1:32:06 am

Like this maybe:


c = ['D','C','B','N','M','T'];
s = "";
for(x=0; x < value.length; x++){
r = Math.floor(random(0, c.length));
s += c[r];
}
f = timeToFrames(time);
n = Math.floor(f/2);
value.substr(0,n) + s.substr(n)



Dan



Return to posts index

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