Highlighted

Line between a Tracking Point and a fix point

Contributor ,
May 15, 2020

Copy link to clipboard

Copied

Hello,

how to draw a line in AE 2020 between a point I track in a video and a fixed point on screen?

Thank you!

Topics

Expressions, How to, User interface or workspaces

Views

1.1K

Likes

Translate

Translate

Report

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

Line between a Tracking Point and a fix point

Contributor ,
May 15, 2020

Copy link to clipboard

Copied

Hello,

how to draw a line in AE 2020 between a point I track in a video and a fixed point on screen?

Thank you!

Topics

Expressions, How to, User interface or workspaces

Views

1.1K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Most Valuable Participant ,
May 15, 2020

Copy link to clipboard

Copied

Effects --> Generate --> Beam. Just connect the point controls with a pickwhip expression or copy&paste the keyframe data from the track.

 

Mylenium

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Contributor ,
May 15, 2020

Copy link to clipboard

Copied

Great! Thank you.

And if I needed any other kind of path than a line, could I do that?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Most Valuable Participant ,
May 15, 2020

Copy link to clipboard

Copied

That will be more complicated, but without knowing what style and shape exactly you need nobody can advise. The only thing that seems certain is that any more complicated shapes will at least involve some "targeting" expression and potentially the shape element requiring to be pre-composed so they can be transformed as a single entity.

 

Mylenium

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Contributor ,
May 15, 2020

Copy link to clipboard

Copied

Before it gets more complicated, I did as you said, but the start point doesn't match with the tracking point. It's some 1000px,200px away from it. It follows the path of the tracker, but somewhere else.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Most Valuable Participant ,
May 15, 2020

Copy link to clipboard

Copied

You may need to add a layer space transform like toComp() somewhere. Without any exact info on what you are actually trying to connect to what nobody can give you the full copy&paste code, but assuming you mean some Null in a 3D-tracked scene this could be something like toComp(thisComp.layer("Null 1").anchorPoint).

 

Mylenium

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
May 16, 2020

Copy link to clipboard

Copied

It sounds like you are new to tracking. You have not told us how you did the tracking or given any clue about how you are attaching one end of the beam or stroked line to the tracking data.

 

The standard Track Motion workflow for something like this is to use AE's Track Motion feature. You should also be in the Motion Tracking workspace. You select the layer, select Track Motion, make sure the layer shows up in the Layer Panel, and then you drag the tracker over the feature you want to track. The Feature Region (inside box) needs to include enough detail to successfully track the object, the Attach Point (the little cross) needs to be right over the point you want to track, and the Search Area (larger box) needs to be large enough to compensate for movement between frames. You are going to have to apply the tracking data to something after the track is complete and the most obvious choice is a Null. After you get a successful track and you have verified the track is correct you apply the tracking data to the target that is chosen in the Tracker Panel.

 

As long as the layers in the timeline are 2D, and the footage layer has not been scaled or moved in the composition, and the target, the null should jump right to the Track Point's location somewhere inside the feature region. 

 

If you did not follow that workflow, or any of your layers are 3D, or the footage layer has been moved, rotated or scaled up, the null will follow the track point.

 

It is then an easy task to attach one end of a stroke or beam to the null with a simple pickwhip expression. 

 

If you need help with the basics check the User Guide first. There are a couple of good tutorials on the basics of tracking there. If you are still having problems we need a detailed workflow description and screenshots that show us the modified properties of the layers giving you problems. Select the layers, press UU to show us everything you did to the layers, take a screenshot, and then embed it to the forum using the toolbar above. 

Screenshot_2020-05-14 19.58.05_Gj39td.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...