Copy link to clipboard
Copied
Is there a way to make a composition to go to a random frame and stop.
I want to have a grid of these random compositions in a larger main composition and each one will be stopped on a random frame. I'm going to place earch random composition into the grid manually, so there's no expression needed there. The random composition doesn't need to find out how many frames it has either if that makes it more complex, I'm fine entering that into the expression manually.
This has to be easy but I'm not good at writing expressions and all of the expressions I've found stop or go to a random frame but not both and trying to combine them hasn't worked for me.
You could try a time remapping expression like this:
maxTime = source.duration;
seedRandom(index,true);
Math.min(time,random(maxTime))
Copy link to clipboard
Copied
You could try a time remapping expression like this:
maxTime = source.duration;
seedRandom(index,true);
Math.min(time,random(maxTime))
Copy link to clipboard
Copied
Thanks so much! It's working, it’s choosing a random frame for each of the compositions, but each composition always picks the same random frame. So the compositions are all in different frames, but they go to that same frame every time. I don’t know if that makes sense. I’ve attached it, if you have a minute to look at it.
Also, if I delete one of the compositions from the grid or change the order of the layers then the others automatically randomize again. I don’t know if it’s helpful or not.
Thanks again for your help.
Copy link to clipboard
Copied
Hmmm... I'm not sure I understand. What behavior were you hoping for?
Copy link to clipboard
Copied
It's only a minute long.
Copy link to clipboard
Copied
The only thing I can think of is to actually duplicate the comp in the project panel instead of having layers of the same comp.
Copy link to clipboard
Copied
Alright, thanks!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now