Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › Expressions for limited moving for a layer just in Y ?

  • Kalleheikki Kannisto

    February 1, 2016 at 2:57 pm

    In its simplest form, you can use this expression for the position:

    pos = transform.position;
    pos_y = pos[1]+ time*100;
    new_pos = [pos[0], pos_y, pos[2]]

    Now, that will make all the layers move down at the same exact speed.

    For some variance, you can add a different random speed for every layer like so:

    seedRandom(index,true);
    spd = 75+random(50);
    pos = transform.position;
    pos_y = pos[1]+ time*spd;
    new_pos = [pos[0], pos_y, pos[2]]

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