Forum Replies Created

  • Chris Cameron

    August 26, 2016 at 2:15 am in reply to: How to randomize timing for random scale expression

    Thanks so much Dan! That worked beautifully.

  • Chris Cameron

    August 24, 2016 at 2:49 pm in reply to: How to randomize timing for random scale expression

    Thanks Dan, unfortunately I can’t get that to work…

    This is the original expression I’m working with to change the scale every 15 frames:

    frame = Math.round(time/thisComp.frameDuration);
    seed = Math.floor(frame/15);
    seedRandom(seed,true);
    s = random(145,275);
    [s,s]

    Can you tell me exactly how I should be incorporating your added line? This is what I just tried, hoping that it would set the random range between 1 – 30:

    frame = Math.round(time/thisComp.frameDuration);
    seed = Math.floor(frame/30);
    seedRandom(seed,true);
    f = Math.floor(random(0,timeToFrames(thisComp.duration)));
    framesToTime(f)
    s = random(145,275);
    [s,s]

  • Chris Cameron

    August 19, 2015 at 12:08 pm in reply to: Random Scale Expression

    Sorry… reviving this old thread again.

    This expression worked perfectly for me, except I’m wondering whether there’s a way to randomize the frame hold number?

    So instead of the 3 in seed = Math.floor(frame/3); there would be a range from 3 – 10, or something like that.

    Thanks!

    frame = Math.round(time/thisComp.frameDuration);
    seed = Math.floor(frame/3);
    seedRandom(seed,true);
    s = random(50,150);
    [s,s]

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