Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Random position between 4 fixed values (X)

  • Dan Ebberts

    October 9, 2019 at 12:29 am

    You’ve a little sparse on details, but see if this gets you headed in the right direction:

    xPos = [100,200,300,400];
    period = 1; // change position every second
    seed = Math.floor(time/period);
    seedRandom(seed,true);
    idx = Math.floor(random(xPos.length));
    x = xPos[idx];
    [x,value[1]]

    Dan

  • Ricardo Avila ponce

    October 9, 2019 at 12:27 pm

    Works like a charm!!!

    Thank you very much Dan!

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