Skip to main content
Inspiring
August 22, 2016
Answered

Set anchor point grouping on text layer?

  • August 22, 2016
  • 1 reply
  • 859 views

Hi all,

I'm not able to change the anchor point grouping in extendscript.  This doesn't seem to work:

textAnchorPointGrouping = curLayers.property("text").property("More Options").property("Anchor Point Grouping");

textAnchorPointGrouping.setValue("Character");

Any thoughts on what I'm missing?  Can't seem to find how to do it in the scripting guide    

This topic has been closed for replies.
Correct answer casual_Beekeeper16B8

Wow, ha, just figured it out after playing with it for a long time. 

character = 1

word = 2

line = 3, so the syntax is:

  1. textAnchorPointGrouping = curLayers.property("text").property("More Options").property("Anchor Point Grouping"); 
  2. textAnchorPointGrouping.setValue(1); 

1 reply

casual_Beekeeper16B8AuthorCorrect answer
Inspiring
August 22, 2016

Wow, ha, just figured it out after playing with it for a long time. 

character = 1

word = 2

line = 3, so the syntax is:

  1. textAnchorPointGrouping = curLayers.property("text").property("More Options").property("Anchor Point Grouping"); 
  2. textAnchorPointGrouping.setValue(1); 
Participant
November 23, 2023

Hi everyone,
Could someone tell me if it is possible to get the positions of these anchor points ?
For example, if my sourceText is "Hello World", is it possible to get the center anchor points of these two words with expressions ?