Copy link to clipboard
Copied
Hello,
I have two null objects which are trackers.
I need to create 3rd object which will be exactly in the middle of my trackers.
What should I do?

Simply apply an expression to calculate the middle.
trackA=motionTracker("Tracker 1")("Track Point 1").featureCenter;
trackB=motionTracker("Tracker 2")("Track Point 1").featureCenter;
trackDiffX=trackA[0]-trackB[0];
trackDiffY=trackA[1]-trackB[1];
X=trackA+trackDiffX;
Y=trackA+trackDiffY;
[X,Y]
Modify in whatever fancy fashion you need.
Mylenium
Copy link to clipboard
Copied
Simply apply an expression to calculate the middle.
trackA=motionTracker("Tracker 1")("Track Point 1").featureCenter;
trackB=motionTracker("Tracker 2")("Track Point 1").featureCenter;
trackDiffX=trackA[0]-trackB[0];
trackDiffY=trackA[1]-trackB[1];
X=trackA+trackDiffX;
Y=trackA+trackDiffY;
[X,Y]
Modify in whatever fancy fashion you need.
Mylenium
Find more inspiration, events, and resources on the new Adobe Community
Explore Now