Forums › Adobe After Effects Expressions › Link an image to a single letter?
Link an image to a single letter?
Alejandro Espinosa
February 26, 2020 at 11:29 pmHi I’d really appreciate some help with my problem, I need to do something simillar to the “guess the phrase” show, where given a certain word it will randomly start appering, but I need to link this to a solid box (image or shape, at this point anything will do) so this box disappears as the letter is starting to fade in, I have the randomizer of the word working from a solution in this forum (attached below), but I can’t figure out how to link this box to a specific letter so that they both are in the same position, let alone making it disappear as one letter fades in.
delay = 1.7;
fadeTime = .5;
letter = 1;a = [];for(i = 0; i < textTotal; i++) a.push(i);
seedRandom(index,true);
for (i = 0; i < a.length; i++){
idx = i + Math.floor(random(a.length - i));
temp = a[i];
a[i] = a[idx];
a[idx] = temp;
}
myDelay = a[textIndex-1]*delay;
t1 = inPoint + myDelay;
t2 = t1 + fadeTime;
linear(time,t1,t2,100,0)
Andrei Popa
February 29, 2020 at 10:40 amYou can’t retrieve the position of a letter in a paragraph. The only way you could do what you want if you made a layer for each letter.
Andrei
My Envato portfolio.
Log in to reply.