Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Offset cloned pixels on one axis only

  • Offset cloned pixels on one axis only

    Posted by Chris Huggett on February 12, 2008 at 4:08 pm

    HI guys

    Im doing some cloning, where i have tracked an object, and offset the attached point of the tracher. I have used the clone tool with an expression (pick whip) to the attach point, but i need to offset the attach point. I know there is an offset control but that does not help me with this as it returns values of 0,0 when used with the pick whip.

    Rather than re-do the track, i thought there would be a simple expression that would allow me to offset the attach point by 6 pixels or so on the x axis.

    MY current expression looks like this

    motionTracker(“Tracker 4”)(“Track Point 1”).attachPoint

    Hope someone can point me in the right direction. Im guna try and give it a go nonetheless.

    Thanks
    C.

    Dan Ebberts
    replied 18 years, 2 months ago
    2 Members · 2 Replies
  • 2 Replies
  • Chris Huggett

    February 12, 2008 at 4:37 pm

    Ok i think i got it.

    On the attach point, i used this expression.

    x = motionTracker(“left logo”)(“Track Point 1”).attachPoint[0]+10;
    y = motionTracker(“left logo”)(“Track Point 1”).attachPoint[1];
    [x,y]

    It seemed to have worked for me.

    Just out of curiosity, was there an easier way to do it?
    thanks
    c.

    Thanks guys

    Chris
    Sydney, Australia

    http://www.acclaim.tv

  • Dan Ebberts

    February 12, 2008 at 5:09 pm

    This is a little more compact way of doing it:

    motionTracker(“left logo”)(“Track Point 1”).attachPoint + [10,0];

    Dan

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