Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

[After Effects] Null object problem :(

New Here ,
Nov 23, 2017 Nov 23, 2017

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?

null.png

428
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Nov 23, 2017 Nov 23, 2017

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

Translate
LEGEND ,
Nov 23, 2017 Nov 23, 2017
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines