Copy link to clipboard
Copied
So, I create I single vertex path using the Pen Tool. I want to move that vertex to exact pixel perfect location of a shape objects center point.
What have I tried:
Enable Snapping
At the top of the UI, click the Snapping icon (magnet) or press Shift + S.
Optionally, enable the drop-down next to it and check:
Snap to Layers
Snap to Anchor Points
Snap to Guides (optional)
Select Your Shape Layer’s Path
Expand the layer: Contents > Shape > Path 1 > Path
Click on “Path” to select it.
In the comp viewer, select the first vertex (small square) of the path.
Drag the Vertex with Snapping
Now click and drag the vertex, and it will snap to nearby anchor points (including the target object’s anchor).
When it "snaps," it’ll feel magnetic and jump to that anchor point precisely.
If you want perfect alignment, use this:
Select the Target Layer (the one with the anchor point you want to align to).
Press A to show its Anchor Point.
Note the exact position or copy it (e.g., 960, 540).
Now select your Path vertex, and in the Info Panel, watch the coordinates as you move it — or use the Layer > Transform > Position panel to set things precisely using expressions.
You can link the path point to follow another object’s anchor point, like this:
Add a single point shape (like a Line Path with one vertex).
Alt+Click the Path stopwatch.
Use an expression like:
Try this - In the After Effects Preferences > General > and check "Center Anchor Point in New Shape Layers". Now, when you create your vertex, the anchor point will match its position. You can now enable Snapping in the toolbar and move the anchor point of the vertex in place. It'll snap with the anchor point position of the shape layer.
Hope it makes sense. Let me know how it goes.
Thanks,
Nishu
If you select your vertex path, then go to Window... Create Nulls from Path, AE will run a script to generate a null for each vertex point. The first null's position can then be matched exactly to the position of the letter.
Copy link to clipboard
Copied
Ok, I've found a solution but is not pixel perfect:
I open the Info Panel so I can see the pixel position of the cursor. Then I can place the first vertex on the object's Anchor Point. But it turns out that object position has pixel's decimals. So I need to find 1080,2 but the Info Panel will show 1080 only and not its decimals. It's a just a tiny bit but still a compromise "shakes" my object a little.
At the end of the video when I zoom in, you can see how the object moves 1 or 2 pixels thanks to that .2 I can't find.
Copy link to clipboard
Copied
Try this - In the After Effects Preferences > General > and check "Center Anchor Point in New Shape Layers". Now, when you create your vertex, the anchor point will match its position. You can now enable Snapping in the toolbar and move the anchor point of the vertex in place. It'll snap with the anchor point position of the shape layer.
Hope it makes sense. Let me know how it goes.
Thanks,
Nishu
Copy link to clipboard
Copied
This work! Thanks!
Listen, Nishu. I don't want to abuse your patience but since I have you here I'll try you for a follow up question.
What I'm trying to achieve here is having a single letter C to follow a Pen Tool (0 stroke 0 fill) path.
I'll create a vertex on top of that letter's anchor point, then draw a path, keyframe it. Then copy said keyframe and paste it on the letter's Position property. This works and I can have a letter fly a certain path:
This is good but I have to rely on manual mouse precision for that first vertex to be centered on the letter
Your solution is ideal because of the snapping so I know for sure I'm pixel perfect.
But then the strangest thing happen. Same procedure but when I paste the path's keyframe on the letter's position, it tosses said letter away for a reason I can't fathom:
Any suggestions?
Copy link to clipboard
Copied
If you select your vertex path, then go to Window... Create Nulls from Path, AE will run a script to generate a null for each vertex point. The first null's position can then be matched exactly to the position of the letter.
Copy link to clipboard
Copied
That 100% did it! Thank you so much!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now