Skip to main content
Participant
January 14, 2024
Question

I have a problem with anchor points when working with text

  • January 14, 2024
  • 4 replies
  • 476 views

hi, I have a problem with anchor points when working with text, it seems to be attached not to the text but to the composition, and when zooming in or out, the anchor point does not remain fixed relative to the text layer, but remains in place relative to the composition

This topic has been closed for replies.

4 replies

Participant
February 26, 2024

thank you all for your help, but the solution was very simple, namely, I needed to center the paragraph in the panel

Community Expert
January 14, 2024

The default position of the anchor point on a text layer is at the base of the text and matches the Paragraph Justification. Bottom left (not including descenders like a lowercase y for Left Justified, middle for Middle, right for Right Justified.  If you create a text box, then the Anchor point is always at the center of the text layer. It pays no attention to the position of the text box.

 

If you want to center the Anchor Point of a text layer on the text, you can add this expression to the Text/Transform/Anchor Point property:

box = sourceRectAtTime();
[box.width/2 + box.left, box.height/2 + box.top]

That expression cancels out baseline shift and paragraph justification.

 

You can modify that expression to put the anchor point at the top right, including ascenders. Bottom right, including descenders, or left top, bottom, or center top or bottom. It all depends on what you are trying to accomplish.

Participating Frequently
January 14, 2024

Reset the anchor point for the text layer using the "Pan Behind" tool (Y) in the toolbar. This should ensure the anchor point is linked to the text layer rather than the composition, addressing the issue when zooming in or out.

Mylenium
Legend
January 14, 2024

Show us a screenshot.

 

Mylenium