Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Mocha data applied to a Null object to drive an “Optical Flares” XY Position

  • Mocha data applied to a Null object to drive an “Optical Flares” XY Position

    Posted by Simon Bisset on August 28, 2011 at 1:33 pm

    Hi, I am using Mocha data applied to a Null object to drive an “Optical Flares” XY Position.
    However I cannot work out what to add to the end of the expression to fine tune this position more accurately.
    Adding +100 shifts the X position nicely, but I am struggling to apply both an X and a Y position.
    I’m sure it’s something quite obvious, but it’s got me stumped!

    Thanks in advance,
    Simon Bisset
    https://vimeo.com/channels/criteriaone

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

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

    Baba Luba replied 12 years, 7 months ago 5 Members · 6 Replies
  • 6 Replies
  • Dan Ebberts

    August 28, 2011 at 3:37 pm

    To adjust both x and y, you need to add an array. Appending this would move it 100 pixels right and 100 pixels up:

    + [100,-100]

    Dan

  • Simon Bisset

    August 29, 2011 at 8:59 am

    Thanks Dan, that’s perfect.
    Cheers,
    Si

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

  • Darby Edelen

    August 31, 2011 at 6:35 am

    If you want to get a little fancier, you can apply an Effects > Expression Controls > Point Control to your layer, and add that value on to the end. Then you don’t need to rewrite the code over and over to change the position offset, you can just change the values of the point control!

    Darby Edelen

  • Reuben Fink

    November 24, 2011 at 7:16 pm

    I can’t seem to get the point control to work. I’m sure I’m applying it wrong. Can you explain how to do this in more detail?

    thisComp.layer("light null").transform.position+ [200,-200]

    OSX 10.6.4
    Equipment: 2.8 ghz 8 core Intal Mac Pro, 20 gig of ram
    Aps: CS5 Production Bundle, FCP Suite 2, Avid Media Composer

  • Dan Ebberts

    November 24, 2011 at 7:39 pm

    What are you trying to do, and in what way is it not working?

    Dan

  • Baba Luba

    October 17, 2013 at 11:05 pm

    more easy:

    use the anchor point to do the trick. this one U can keyframe too.

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