Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Y-Axis Only For Tracking Data

  • Y-Axis Only For Tracking Data

    Posted by Chris Kay on July 1, 2012 at 11:56 am

    I have just exported tracking data from mocha and now have a null object in my composition that contains all the tracking data. I want to make an object that will only move in the y-axis when following the tracking data. Can someone please help me achieve this?

    Chris Kay replied 14 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    July 1, 2012 at 10:49 pm

    If you want to adopt the y postion of another layer, you can do it like this:

    L = thisComp.layer(“Null 1”);
    y = L.position[1];
    [value[0],y]

    If you want to apply just the y motion of another layer, you can do it like this:

    L = thisComp.layer(“Null 1”);
    y = (L.position-L.position.valueAtTime(L.inPoint))[1];
    value + [0,y]

    Dan

  • Chris Kay

    July 1, 2012 at 11:34 pm

    Thanks a lot

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