ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: middle null object expression?>

COW Forums : Adobe After Effects

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Walter Soyka
Re: middle null object expression?>
on Nov 24, 2017 at 4:03:22 pm

You just need the average of the two points. Something like this will work as an expression on the position property of a null layer (modify layer/tracker names as necessary to suit your comp):

p1 = thisComp.layer("TRACK_LAYER").motionTracker("Tracker 1")("Track Point 1").attachPoint;
p2 = thisComp.layer("TRACK_LAYER").motionTracker("Tracker 1")("Track Point 2").attachPoint;

(p1+p2)/2


Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Posts IndexRead Thread 


Current Message Thread:
  • middle null object expression?> by Jakub Wiƛniewski on Nov 23, 2017 at 6:10:49 am
    • Re: middle null object expression?> by Walter Soyka on Nov 24, 2017 at 4:03:22 pm





© 2020 CreativeCOW.net All Rights Reserved
[TOP]