FORUMS: list search recent posts

middle null object expression?>

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jakub Wiśniewski
middle null object expression?>
on Nov 23, 2017 at 6:10:49 am

I have two null objects which are trackers.
I need to create 3rd obj which will be exactly in the middle of my trackers.

What should I do?

Return to posts index

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;


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

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 All Rights Reserved