Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Random freeze frame every time a project is re-opened

  • Random freeze frame every time a project is re-opened

    Posted by Avinash Ramanath on January 28, 2018 at 2:10 pm

    Hi All,
    Is it possible to get a random freeze frame every time a project is re-opened? I am using the same project with a sequence of BG layers. Only the top layers change dynamically but I want the BG layer in the comp to change for every project. Many thanks.

    Chris Scalzo replied 6 years, 11 months ago 2 Members · 1 Reply
  • 1 Reply
  • Chris Scalzo

    January 29, 2018 at 9:25 pm

    As far as I know, you can not read any app data without running a script. As far as an expression, you could use generate a random number in the range of background you have, and you can seed that random with your composition.

    If you are making new compositions with each project with unique names, you would generate new random. If those backgrounds were still images or video files, I would toggle their opacity if their number was called. If you want to replace the background layer in your project, you can also write a script to do that every time you run the script.

    bgcount=10; \\assuming you had 10 backgrounds
    seedRandom(thisComp.name, timeless = true);
    Random(1,bgcount)

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy