• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Set anchor point grouping on text layer?

Explorer ,
Aug 21, 2016 Aug 21, 2016

Copy link to clipboard

Copied

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    

TOPICS
Scripting

Views

635

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Aug 21, 2016 Aug 21, 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); 

Votes

Translate

Translate
Explorer ,
Aug 21, 2016 Aug 21, 2016

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 23, 2023 Nov 23, 2023

Copy link to clipboard

Copied

LATEST

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 ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines