Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Generate random number, hold n frames, new number, hold n frames (where n is a random amount as defined by a min and max)

  • Generate random number, hold n frames, new number, hold n frames (where n is a random amount as defined by a min and max)

    Posted by Nathan Clark on July 27, 2020 at 7:26 am

    Hoping someone could lend a hand here, I cant work out the logic required to make this work (a bit embarrassing, it seems so simple, sorry to be daft)

    I want to generate a random number, which will hold for a few frames, before generating a new random number. The hold frames should be randomly generated anywhere between a defined min and max value.

    It would play out something like this:

    number -> hold 5 frames -> new number -> hold 12 frames -> new number -> etc

    Filip Vandueren replied 5 years, 9 months ago 2 Members · 3 Replies
  • 3 Replies
  • Filip Vandueren

    July 27, 2020 at 9:03 am

    The subject has been discussed many, many times through the years.
    You should search the forum.

    For example here:
    https://forums.creativecow.net/thread/227/38251

  • Nathan Clark

    July 27, 2020 at 10:25 am

    ?‍♂️ Filip you’re 100% right. I did not search the forum and apologise. I searched google with too-vague search terms which returned a bunch of cow threads, none of which covered what I needed… it wasn’t until I started writing the post and trying to properly articulate what I was attempting that I came up with appropriate keywords – which would have indeed returned the right results had I used them in my search. Consider me humbled and kinda shamed for being too hasty in seeking assistance. Of course this has come up a million times before – Thanks for your kind assistance despite me being a bit of a dingus.

  • Filip Vandueren

    July 27, 2020 at 10:57 am

    No worries mate, I’m not the COW-police 😉

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