Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions offset normalize by angle control expression control

  • offset normalize by angle control expression control

    Posted by Pdebster on October 4, 2007 at 8:50 pm

    I’m using Mr. Ebberts’ great expression to extend a vector (for a corner pin effect):

    myTrack = thisComp.layer(“tracked layer”).motionTracker(“Tracker 1”)(“Track Point 1”).attachPoint;
    otherTrack = thisComp.layer(“tracked layer”).motionTracker(“Tracker 2”)(“Track Point 1”).attachPoint;
    s = effect(“Slider Control”)(“Slider”);
    v = normalize(myTrack – otherTrack);
    myTrack + v*s

    I was wondering how to offset the normalized vector if I added an Angle Control to the layer, in other words, if I wanted to still extend the vector but offset by an angle of n degrees.

    thanks for your help, pdebster

    Pdebster replied 18 years, 7 months ago 1 Member · 1 Reply
  • 1 Reply
  • Pdebster

    October 4, 2007 at 9:09 pm

    I think i got it:

    center = thisComp.layer(“tracks”).effect(“center_track_avg”)(“Point”);
    corner = thisComp.layer(“tracks”).motionTracker(“Tracker 3”)(“UL_forward.ascii”).attachPoint;
    s = effect(“ULMult”)(“Slider”)/effect(“ULNormalize”)(“Slider”);
    v = normalize(center – corner);
    o = effect(“Angle Control”)(“Angle”);
    corner + (v+o)*(1/s)

    thanks to all, pdebster

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