-
help with a “loop” to use the same array
i am such a novice at this stuff, but i have a great use for this.
i have 6 words that i want to repeated show through the entire length of my comp. i know i could easily keyframe it to the text layer i have, but i was hoping i could make it simpler (more complex, but efficient) by using an expression like one i found through this site.
i am messing with what was this:
holdTime = 1.0;
s = “Sheild,Rock,Shelter,Fortress,Refuge,Sanctuary”;
j = Math.floor(time/holdTime)
s.split(“,”)[j];i tried putting a what i would call a for next loop in it, but i havent been able to get it to work. the problem is that when it gets past j=6 the text becomes undefined. i wonder how i can get it to go back to the first word and start again.
additionally i am trying to grid this text layer across my entire comp. i have tried some other code for this but the effect isnt quite what i was hoping for. especially since i want to also do it in 3d.
is there any kind of expression reference material that tells the user the syntax and what a command does?
for example what is math.floor and what are the parameters i have to feed it?
any and all help much appreciated.