Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Expression : Position offset from layer above – HELP

  • Expression : Position offset from layer above – HELP

  • Andy Stokes

    May 10, 2005 at 5:35 pm

    Hi all,

    Is there an easy way to take the position of a layer from the layer above it but with an additional position offset ? For example the layer beneath is 10px down and 10px left of the layer above it. I hope this is clear.

    I was thinking something like below although I can’t seem to input the individual x,y,z offsets ??

    “thisComp.layer(this_layer,-1).position” ??????

    Any suggestions would be greatly appreciated. If it could also tied in with a slider control to adjust the amount of offset, that would be even better.

    Cheers,

    Andy

  • w m d

    May 10, 2005 at 6:18 pm

    How about this….

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

  • Andy Stokes

    May 11, 2005 at 4:47 am

    Hi Gaterwink,

    Thanks.. I wasn’t sure how to put the offset values into the string. After a little experimenting with your orignal string I’ve figured out how to include a slider to control the offset. In case anyone else is interested, here it is :-

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

    X = thisComp.layer(“OFFSET”).effect(“slideX”)(“Slider”)*1;
    Y = thisComp.layer(“OFFSET”).effect(“slideY”)(“Slider”)*1;

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

    Thanks again,

    Andy

  • Mike Clasby

    May 12, 2005 at 12:45 am

    Thanks for sharing.

Viewing 1 - 4 of 4 posts

Log in to reply.

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