ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: swap a word with rate control

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Fahd Chishty
Re: swap a word with rate control
on May 28, 2015 at 9:50:42 pm

Hey I just did my research on your problem and came up with a solution.
Following are the steps:
1. Create a text file and place it in D: drive (for ease of access)
2. Add your words in the text file in the following format:
x = ["Courage", "Strength", "Valor", "Dedication", "And So On..."];
3. Save and close the text file.
4. Add Slider Control to your text layer in AE and name it "Change Rate (Speed)"
5. Add the following expression in the Source Text property of your text layer


myPath = "/d/file.txt";
x = $.evalFile (myPath);
rate = time*effect("Change Rate (Speed)")("Slider");
len = x.length;
x[--len];
for(i = 0; i < len; i++)
{
if((rate>=i)&&(rate<(i+1)))
x[i];
}


Hope this solves the issue :)

--
Fahd Chishty
Motion Design Artist


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]