Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Y Position set value from top of comp

  • Y Position set value from top of comp

    Posted by Ksdelux on August 3, 2020 at 9:01 pm

    Hello,

    I’m pretty stuck trying to get an After Effects expression to work and am hoping someone here can help.

    I’m trying to have the Y position offset a set value from the top of a comp. Say 100 pixels. This layer will be dropped into multiple different sized comps and I’m looking to have it offset the same distance from the top- regardless of comp size.

    Thanks in advance for any help!

    Cheers,

    ak

    Demarc Johnson replied 5 years, 9 months ago 2 Members · 1 Reply
  • 1 Reply
  • Demarc Johnson

    August 4, 2020 at 4:43 am

    If I’m reading this right you should be able to do this by going to your anchor property and pasting the first line of code. Then go to your position property and paste the second line of code.

    The value[0] for both the anchor and the position will allow you to move or animate in the x axle

    [value[0], 0] // This code is for the anchor property
    [value[0], 100] // This code is for the position property

    For Expression Tutorials:
    https://www.youtube.com/channel/UCe77szX2n1WSKsGs-2gmbDw

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