Skip to main content
Inspiring
August 22, 2016
Answered

Set anchor point grouping on text layer?

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 is closed to new replies. Start a new post to keep the conversation going.
casual_Beekeeper16B8Correct 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); 

2 replies

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); 
Translate
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 ?

Translate