Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions simple move expression

  • simple move expression

    Posted by Simon Bisset on February 28, 2014 at 11:58 am

    Hi everyone. First time here, so hope you can help!

    I am using a ‘Hole’ effect and have pick-whipped from the effects Centre to the position data on a Mocha Move NULL object (some tracking data).
    So far so good, and I have the expresion:

    thisComp.layer(“Mocha Move NULL”).transform.position

    This works fine, but I now want to fine tune the x,y data more accurately to place the Hole centre where I like. So my question is, what additional text do I need to add to the expression above to do this?
    Many Thanks,
    Simon

    thisComp.layer("Mocha Move NULL").transform.position

    http://www.focal-point.co.uk

    Simon Bisset replied 12 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 28, 2014 at 3:49 pm

    Do you mean you want to add a static offset? That could be done like this:

    xOffset = 50;
    yOffset = -25;
    thisComp.layer(“Mocha Move NULL”).transform.position + [xOffset,yOffset]

    You could tie xOffset and yOffset to sliders if you want to be able to adjust manually (or keyframe the adjustment amounts).

    Dan

  • Simon Bisset

    February 28, 2014 at 4:35 pm

    Hi Dan, That’s perfect!
    Thanks very much.
    Regards, Simon

    ps, check out my film to see what i’m up to 😉
    https://www.criteriaone.co.uk

    http://www.focal-point.co.uk

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