Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Reference property value in layer above

  • Reference property value in layer above

    Posted by Adam Nelson on February 12, 2016 at 2:35 pm

    Hi all,

    I’m trying to create a series of shape layers where each layer is rotated 1.5 degrees further than the layer above it in the stack.

    I tried something like this, but it just returns a value of 1.5.

    Anyone have any ideas??

    Thanks so much in advance!

    r = thisComp.layer(index-1).transform.rotation;
    r+1.5

    Xavier Gomez replied 10 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Xavier Gomez

    February 12, 2016 at 6:20 pm

    I tried your code and it works.
    I get rotations values 0,1.5, 3, 4.5, 6, etc

    Another possibility is to defined rotation based on first in the stack:

    leader = thisComp.layer(“LEADER”);
    leader.rotation + (index-leader.index)*1.5;

    Xavier.

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