Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Go to and stop on a random frame?

Community Beginner ,
May 30, 2025 May 30, 2025

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. 

TOPICS
Expressions
430
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 30, 2025 May 30, 2025

You could try a time remapping expression like this:

maxTime = source.duration;
seedRandom(index,true);
Math.min(time,random(maxTime))
Translate
Community Expert ,
May 30, 2025 May 30, 2025

You could try a time remapping expression like this:

maxTime = source.duration;
seedRandom(index,true);
Math.min(time,random(maxTime))
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 01, 2025 Jun 01, 2025

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 02, 2025 Jun 02, 2025

Hmmm... I'm not sure I understand. What behavior were you hoping for?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 02, 2025 Jun 02, 2025

This might explain it better.

It's only a minute long.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 02, 2025 Jun 02, 2025

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 02, 2025 Jun 02, 2025
LATEST

Alright, thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines