Copy link to clipboard
Copied
I am trying to have two logos rotate randomly independent of each other but they follow the exact same motions. IE I want one logo to spin its own way while the other spins its own way. Right now they do the exact same thing. Here is a picture if it helps.
1 Correct answer
Play around with this:
seedRandom(index,true);
time*random(360)
Dan
Copy link to clipboard
Copied
You need to add a different random seed for each random number generator. You can easily figure out how to do that if you spend five minutes in the expression language guide you will find by typing “random expression” in the search help field at the top right corner of AE.
Copy link to clipboard
Copied
I tried seedRandom but it didn't make any difference.
Copy link to clipboard
Copied
Play around with this:
seedRandom(index,true);
time*random(360)
Dan
Copy link to clipboard
Copied
Yes that worked! Thank you both. Could one of you possibly explain exactly what is going on in that script? I'm not very good at scripting or programming.
Copy link to clipboard
Copied
seedRandom(index,true) sets a unique random seed for each layer. random(360) generates a random number between 0 and 360, which, when multiplied by time will give you a rotation of that many degrees per second.
Dan
Copy link to clipboard
Copied
Hi, thanks for the explanation. Can you help me with randomly rotating a layer by 90 degrees each time?

