Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Position Percentage

  • Position Percentage

    Posted by Chris Haag on May 20, 2016 at 12:09 am

    Hello,

    I having a null (Null 1) to control the position of a bunch of layers with a different multiplier to make it have some faked parallax.

    But I’m wondering if there’s an expression to use so when I put it on the positon properties of a layer, the object remains in it’s original position.

    When I apply the below expression on the position it changes the original location. (Which I totally understand why, I just don’t know how to fix it.) Also if I were to change the multiplier it be nice to have is stay in the original position as well.

    thisComp.layer("Null 1").position*.5 + value

    Chris
    http://www.relatedgrey.com

    Chris Haag replied 10 years, 3 months ago 2 Members · 3 Replies
  • 3 Replies
  • Chris Haag

    May 20, 2016 at 12:36 am

    preferably without having to keyframe the null

    Chris
    http://www.relatedgrey.com

  • Dan Ebberts

    May 20, 2016 at 1:42 am

    You need to provide a reference position for the null. One way to do it is to just define it in the expression. This example assumes that the null starts at the center of the comp:

    ref = [thisComp.width/2,thisComp.height/2];
    (thisComp.layer(“Null 1”).position-ref)*.5 + value

    Dan

  • Chris Haag

    May 20, 2016 at 4:51 pm

    Awesome,
    Thanks so much!!

    Chris
    http://www.relatedgrey.com

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