Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › Position further away from Nul Expression

  • Position further away from Nul Expression

    Posted by Selwin Vervoort on September 11, 2020 at 8:36 am

    Goood day everyone,

    I have a bunch of copies and my goal is to move every copy a little bit further away from a nul object (which is set in the middle for now). The challenge is that every copy also has a rotation and time offset that is using the previous Index number. I won’t be able to use a simple X and Y position offset because of the rotation changes for each copy. Is there a way how I can move my copies further away from the nul object with each previous Index number that works with the changes in rotation?

     

    Currently I have the following expression in my Position:

     

    X = thisComp.layer(“Control”).effect(“PositionX Slider”)(“Slider”)

    Y = thisComp.layer(“Control”).effect(“PositionY Slider “)(“Slider”)

    thisComp.layer(index-1).position + [X,Y]

     

    And the following expression in my Rotation:

     

    control = thisComp.layer(“Control”);

    (index – control.index)* thisComp.layer(“Control”).effect(“RotationSlider”)(“Slider”)

     

    Any suggestions would be greatly appreciated!

     

    Cheers,

    Selwin

    Selwin Vervoort replied 6 years ago 2 Members · 2 Replies
  • 2 Replies
  • Filip Vandueren

    September 11, 2020 at 9:14 am

    If I understand correctly what you want to achieve with rotation,
    you could try by putting the position expression on the anchorPoint instead of position.

    all the layers will orbit the central point

  • Selwin Vervoort

    September 11, 2020 at 11:36 am

    Thanks so much! That al ready fixed it.

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