Activity › Forums › Adobe After Effects Expressions › Random character opacity on and off
-
Random character opacity on and off
Dan Ebberts replied 3 years, 11 months ago 11 Members · 25 Replies
-
Adam Goddard
August 5, 2015 at 12:55 amHi Dan
I am trying to get this expression to work on a text layer, applying the expression to the opacity animator. I am getting the following error message:
property or method named ‘textindex’ in Class ‘global’ is missing or does not exist…
Can you please help solve this?
Many thanks
Adam. -
Dan Ebberts
August 5, 2015 at 1:12 amYou must have missed the step where you add the Expression Selector. The Amount property of an Expression Selector is the only place where that expression won’t generate an error.
Dan
-
Adam Goddard
August 5, 2015 at 1:19 amahhh quite correct. many thanks and apologies for missing that and not reading close enough.
Adam
-
Gage Ullman
January 9, 2017 at 10:23 pmThis is fairly similar to something I’m trying to do and can’t seem to figure out… I’m trying to have the letters flicker on left to right, but with a degree of randomness. So, you know, if the letters are ABCDEFG, A flickers on and then maybe C starts, and then B and D go so on with a slight randomness until the word is completed. I thought I had it using one of your expressions from motionscript.com (random text overshoot), but I can’t seem to get the left-to-rightness of it to work. That make sense? Sorry to tack onto an old thread like this, I just haven’t been able to find quite the thing I’m looking for.
-
Caresse Singh
January 27, 2017 at 3:27 amThis is awesome, thanks! How could I get the amount of characters to randomly increase/decrease from left to right?
i.e.:
BFKFJB
FDSNJKIKGGH
CFD
FGJHKGLKKLKKK;
GSDGSGF -
Ze’ev Gilad
January 27, 2017 at 8:15 amI’m no Dan Ebberts, but I would add a second animator for Opacity, set Opacity to 0%, with End 100% and add an expression for Start to randomize or wiggle.
-
Mirra Fine
February 23, 2017 at 8:20 pmHey Dan — How could I change this expression so that the letters appear randomly and then stay (dont dissapear?)
I want letters to appear at different times, but eventually for the whole word to be seen.Thanks!
freq = 1;txt = text.sourceText;
curMax = -999;
for (i = 0; i < txt.length; i++){
seedRandom(i,true);
w = rotation.wiggle(freq,1);
if (w > curMax){
curMax = w;
idx = i;
}
}
textIndex == idx ? 0 : 100
-
Dan Ebberts
February 23, 2017 at 8:29 pmSomething like this might work:
revealTime = 3; // reveal over 3 seconds
seedRandom(textIndex,true);
myReveal = random(revealTime);
if ((time-inPoint) < myReveal) 100 else 0Dan
-
Olivier Blanchette
July 23, 2018 at 3:03 pmHello Master Dan,
Would it be possible to tweak this expression to have the letters appear one by one in the correct order?
Thanks
Oli
Reply to this Discussion! Login or Sign Up