Skip to main content
Betabun
Known Participant
Jul 30, 2017 7:44 PM UTC
Answered

How do I make an existing object track the camera?

Hello,

It could be confusing, but I will try to explain it clearly.

I have an animated objected created already, and I am trying to make it track the movement of the camera.

However, I can only make an object track the camera by creating the object from ground up by selecting the points of an analyzed video and creating text, solid or null.

I tried to anchor the position of the existing object to a null object that tracks the camera, but it doesn't work (could be that I did it wrong).

And pre-compose an object that track the camera won't work in my situation.

I'm using the lasted PP CC.

I'd appreciate any help.

This topic is closed to new replies. Start a new post to keep the conversation going.
Rick GerardCorrect answer
Community Expert
Aug 10, 2017 1:48 AM UTC

It looks like you have the basic idea of attaching the starting and ending point of a beam to two different nulls. I'm guessing the question is how to stick the nulls to the footage.

If the graphic created by the lines, the circle and the text is supposed to appear when the the appropriate attach points are in the frame then you would use AE's track motion to stick the attach points to the footage. You need a track for each attach point.

You could also stabilize motion, make the footage stop moving in the frame by Motion Tracking position and rotation and then using stabilize Motion. Then you would just animate your graphic, you could even use shape layers instead of a beam effect, then you return the motion to the footage by adding a null to the timeline and using expressions to transfer the motion tracking data to the graphic and return the motion to the footage. I do this kind of thing all the time so I have an animation preset that I'll share with you. You just move the CTI to the first frame of the footage where you applied stabilize motion, add the expression and then parent the stabilized footage and the graphic to the null. Here's the preset: Dropbox - destabilize Rotation Scale.ffx You will have to name the footage layer stabilized.

If you want the graphic to fly into the frame and fly out of the frame you can do that by using the stabilize motion technique and then adding a couple of keyframes to the comp to get the graphic to smoothly move in and out of the frame.

Camera tracking is probably not the right tool for this kind of project. You'll also want to cut up the footage so you are only tracking and compositing the footage for the frames you need. 10 graphics, 10 trimmed copies of the footage. You would then assemble them back in a main comp or edit the rendered sections in a NLE. If the graphics overlap you would use the original footage in the main comp and turn off the tracked trimmed sections in the nested comps.

I hope this explanation helps. I don't have a tutorial that shows exactly how to do what you are trying to do but maybe this will help:

That will give you the basics. I threw it together in a hurry. I should do an in depth tutorial on how to do what you are trying to do because a lot of folks are doing it very inefficiently.

21 replies

Community Expert
Aug 12, 2017 4:34 PM UTC

You don't open it, you go to the Animate menu and use apply animation preset. Browse to the location and select the preset. Make sure your browser did not add a .txt extension.

Translate
Betabun
BetabunAuthor
Known Participant
Aug 12, 2017 5:54 PM UTC

Thank you so much for the patient answers. I will experiment more when I have more free time.

Can you let me know when you do a more thorough youtube tutorial on camera tracking?

Thanks a lot.

Translate
Community Expert
Aug 2, 2017 2:23 AM UTC

Show us the entire UI. No need to crop your screenshots. I need to see the expressions also. Still don't know what's going on in your composition.

Translate
Betabun
BetabunAuthor
Known Participant
Aug 10, 2017 12:31 AM UTC

Hi Rick

Sorry about the late reply. I was out of town. Here is the screenshot

Translate
Rick GerardCommunity ExpertCorrect answer
Community Expert
Aug 10, 2017 1:48 AM UTC

It looks like you have the basic idea of attaching the starting and ending point of a beam to two different nulls. I'm guessing the question is how to stick the nulls to the footage.

If the graphic created by the lines, the circle and the text is supposed to appear when the the appropriate attach points are in the frame then you would use AE's track motion to stick the attach points to the footage. You need a track for each attach point.

You could also stabilize motion, make the footage stop moving in the frame by Motion Tracking position and rotation and then using stabilize Motion. Then you would just animate your graphic, you could even use shape layers instead of a beam effect, then you return the motion to the footage by adding a null to the timeline and using expressions to transfer the motion tracking data to the graphic and return the motion to the footage. I do this kind of thing all the time so I have an animation preset that I'll share with you. You just move the CTI to the first frame of the footage where you applied stabilize motion, add the expression and then parent the stabilized footage and the graphic to the null. Here's the preset: Dropbox - destabilize Rotation Scale.ffx You will have to name the footage layer stabilized.

If you want the graphic to fly into the frame and fly out of the frame you can do that by using the stabilize motion technique and then adding a couple of keyframes to the comp to get the graphic to smoothly move in and out of the frame.

Camera tracking is probably not the right tool for this kind of project. You'll also want to cut up the footage so you are only tracking and compositing the footage for the frames you need. 10 graphics, 10 trimmed copies of the footage. You would then assemble them back in a main comp or edit the rendered sections in a NLE. If the graphics overlap you would use the original footage in the main comp and turn off the tracked trimmed sections in the nested comps.

I hope this explanation helps. I don't have a tutorial that shows exactly how to do what you are trying to do but maybe this will help:

That will give you the basics. I threw it together in a hurry. I should do an in depth tutorial on how to do what you are trying to do because a lot of folks are doing it very inefficiently.

Translate
Community Expert
Jul 31, 2017 2:47 PM UTC

If you use the camera tracker track points to create a solid. You can replace the solid layer with an Item from the Project panel.

I'd create the solid, select the item that you want to replace the solid with in the time line and make note of its size in the preview area of the project panel. I'd select the layer, go to layer, solid settings and make the solid the same size as the item in the project panel.

Then select the solid in the timeline, hold down option or alt,  drag the item from the project panel on to the solid in the time line. Release your mouse first. This should change the solid to the asset from the project panel. I'd select the item in the timeline and press "R" to change the x,y,z rotation to angle it how you like. You can then move it around the screen using the red green or blue arrows. As long as

you use the arrows the object will track.

Translate
Participant
Oct 23, 2020 5:08 PM UTC

I LOVE YOU!!! YOU SAVE ME

 

Translate
Mylenium
Legend
Jul 31, 2017 8:00 AM UTC

I have to concur with Rick. It seems you need to work on your understanding of AE's 3D space and what 3D tracking actually is. Saying that you can't pre-compose stuff for whatever reasons is probably not really holding up to scrutiny. you just expect things to work like they aren't supposed to work. A more comprehensible explanation of your issues would certainly make it easier for anyone to advise.

Mylenium

Translate
jasontcox
Inspiring
Jul 30, 2017 8:23 PM UTC

Based upon your mentions of solid and null layers and pre-composing, this is almost definitely an After Effects question despite you mentioning Premiere in the posT so I moved it to the AE forum. What you probably want/need to do is to use the 3D Camera Tracker (which it sounds like you’ve done so far) and create a null layer, and then parent the layer you ACTUALLY want to track to the null layer. That should do it for ya!

Translate
Betabun
BetabunAuthor
Known Participant
Jul 30, 2017 8:27 PM UTC

Hi,

Thanks for replying.

It doesn't work. I tried parenting the object, dragging the swirl icon from the position of the object to the null, null's position, and null's anchor point. Neither works

Translate
jasontcox
Inspiring
Jul 30, 2017 8:45 PM UTC

That‘s not parenting, that’s linking with expressions. Bring up the actual Parent column in the timeline and for the layer you want to move with the null, select the dropdown menu in the Parent column and select the Null layer.

Translate
Community Expert
Jul 30, 2017 8:00 PM UTC

Is this an After Effects or Premiere question?

Translate
Betabun
BetabunAuthor
Known Participant
Jul 30, 2017 8:25 PM UTC

Sorry.. This is an AE question. Put the wrong category to it.

Translate