Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Direct Expression To Motion Tracker

  • Direct Expression To Motion Tracker

    Posted by Cutter Johnston on July 5, 2007 at 8:37 pm

    I am attempting to attach the start point of Lighting to Motion Tracking Data and offset it with a direct expression. Why? the point I want to generate from is not bright enough to track. A spot below tracks perfactly. How do I offset this in the “Y” position?

    Cutter Johnston replied 18 years, 10 months ago 3 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    July 5, 2007 at 9:09 pm

    You can add a y offset to an expression by appending someting like this to your expressin (in this example the y offset would be 100):

    (your expression here) + [0,100]

    Dan

  • Mike Clasby

    July 5, 2007 at 9:17 pm

    This expression seems to work, on the Start Point (for Lightning, I presume):

    yOff = 100 //amount of y offset;
    xOff = 0 //amount of x offset;

    xAttach = motionTracker(“Tracker 1”)(“Track Point 1”).attachPoint[0];
    yAttach = motionTracker(“Tracker 1”)(“Track Point 1”).attachPoint[1];

    [xAttach + xOff, yAttach + yOff]

    I got it by pickwhipped to the x and y tracker values, then adding in an offset.
    If your tracker is tracker 2, then you need to change it to “Tracker 2”. Also, my lightning is on the same layer as the tracking, write back if they are different layers.

  • Mike Clasby

    July 5, 2007 at 9:19 pm

    Oops, didn’t see Dan, I need to refresh before I post, or be a lot faster figuring this stuff out.

  • Cutter Johnston

    July 6, 2007 at 1:36 am

    Thanks!!!!!!

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