Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions x,y random, then different z

  • x,y random, then different z

    Posted by Jack Parks on October 23, 2008 at 2:28 pm

    Hi,

    I’ve read through pages of random posts and motionscript but must be missing something…
    How can I add a different expression to this,

    seedRandom(index,true);
    random([507,283,260],[517,293,260])

    The x,y values are fine, but is it possible that the z is not random but something like index + 5

    Thanks for any help

    Jack Parks replied 17 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 23, 2008 at 2:56 pm

    Like this:

    seedRandom(index,true);
    xy = random([507,283],[517,293]);
    [xy[0],xy[1],index+5]

    Dan

  • Jack Parks

    October 23, 2008 at 3:13 pm

    Thanks for your help.

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