Adobe Community
All community
This category
This board
Knowledge base
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results forÂ
ShowÂ
 onlyÂ
|
Search instead forÂ
Did you mean:Â
Global community
Language:
Deutsch
English
Español
Français
Português
日本語コミュニティ
Dedicated community for Japanese speakers
í•œêµ ì»¤ë®¤ë‹ˆí‹°
Dedicated community for Korean speakers
Sign In
Exit
Home
After Effects
Discussions
Re: Extrapolated null position based on two tracke...
Home
After Effects
Discussions
Re: Extrapolated null position based on two tracke...
0
Upvote
Extrapolated null position based on two tracked points
Navarro_Parker
Enthusiast
,
/t5/after-effects-discussions/extrapolated-null-position-based-on-two-tracked-points/td-p/1678459
Mar 13, 2009
Mar 13, 2009
Copy link to clipboard
Copied
The photo is pretty self-explanatory. If I have two tracked points, how can I determine the coordinates for a third position? I plan on wiring the distance of the extrapolated null to a slider to control the distance from the tracked points.
TOPICS
Expressions
Views
3.5K
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
6 Replies
6
Jump to latest reply
Mylenium
LEGEND
,
/t5/after-effects-discussions/extrapolated-null-position-based-on-two-tracked-points/m-p/1678460#M148124
Mar 16, 2009
Mar 16, 2009
Copy link to clipboard
Copied
Determine the angle based on teh difference, then use it to drive sinus and cosinus:
Radius=thisLayer.effect("Slider")("Slider");
A=thislayer.Tracker("A").featureCenter;
B=thislayer.Tracker("B").featureCenter;
DiffX=B[0]-A[0];
DiffX=B[1]-A[1];
Ang=Math.atan2(DiffY,DiffX);
X=Math.cos(Ang)*Radius;
Y=Math.sin(Ang)*Radius;
[X,Y]
Mylenium
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Dan Ebberts
Community Expert
,
/t5/after-effects-discussions/extrapolated-null-position-based-on-two-tracked-points/m-p/1678461#M148125
Mar 16, 2009
Mar 16, 2009
Copy link to clipboard
Copied
You can simplify the math a little if you keep everything as vectors:
slider = effect("Slider Control")("Slider");
T1 = thisComp.layer("your_track_layer").motionTracker("Tracker 1")("Track Point 1").attachPoint;
T2 = thisComp.layer("your_track_layer").motionTracker("Tracker 1")("Track Point 2").attachPoint;
T1 + normalize(T1-T2)*slider
Dan
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Navarro_Parker
AUTHOR
Enthusiast
,
/t5/after-effects-discussions/extrapolated-null-position-based-on-two-tracked-points/m-p/1678462#M148126
Mar 16, 2009
Mar 16, 2009
Copy link to clipboard
Copied
You guys are awesome! $$$ (or ) for the tip jar! :)
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Navarro_Parker
AUTHOR
Enthusiast
,
/t5/after-effects-discussions/extrapolated-null-position-based-on-two-tracked-points/m-p/1678463#M148127
Mar 17, 2009
Mar 17, 2009
Copy link to clipboard
Copied
Now how would I keep null rotation matched based on the vector formed by the two trackers?
Such as...
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Mylenium
LEGEND
,
/t5/after-effects-discussions/extrapolated-null-position-based-on-two-tracked-points/m-p/1678464#M148128
Mar 17, 2009
Mar 17, 2009
Copy link to clipboard
Copied
You simply use the angle my formula spits out --> radiansToDegrees(Ang). You may just need to add 180 degrees to reverse it...
Mylenium
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Navarro_Parker
AUTHOR
Enthusiast
,
/t5/after-effects-discussions/extrapolated-null-position-based-on-two-tracked-points/m-p/1678465#M148129
Mar 24, 2009
Mar 24, 2009
Copy link to clipboard
Copied
LATEST
Thanks -- I'll try it!
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Post Reply
Preview
Exit Preview
never-displayed
You must be signed in to add attachments
never-displayed
Â
Resources
Troubleshooting FAQs
Fix common After Effects crashes
How to fix "Display Acceleration Disabled"
Fix dynamic link between After Effects and AME
Building the best After Effects computer
Why isn't After Effects preview real-time?
After Effects Community Recap
After Effects Community Recap 2022: Year-in-review
October 2022 Community Recap
After Effects Community Recap home page
Getting started with After Effects
How to download & install After Effects
After Effects system requirements
Inspiring tutorials
After Effects user guide