How to get TextRange position. Like get RasterItem position

Community Beginner ,
Feb 10, 2021 Feb 10, 2021

Copy link to clipboard

Copied

Is there any way to get postion in TextRange?

Javascript best. Thank you.

TOPICS
Scripting

Views

182

Likes

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

Adobe Community Professional , Feb 11, 2021 Feb 11, 2021
Here is the video where you can see how to expand and ungroup https://www.dropbox.com/s/92qo7bvujgn7utv/Screen%20Recording%202021-02-11%20at%204.44.02%20PM.mov?dl=0  For scripting you can use after selecting the textframe. app.executeMenuCommand('Expand3'); app.executeMenuCommand('ungroup');

Likes

Translate

Translate
Adobe Community Professional ,
Feb 10, 2021 Feb 10, 2021

Copy link to clipboard

Copied

Hello,

What do you mean by position of TextRange.

Is that x and y coordinates of the text range?  

Best regards

Likes

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
Community Beginner ,
Feb 10, 2021 Feb 10, 2021

Copy link to clipboard

Copied

position is

蒙福5E82_1-1613018373756.jpeg

 

 

like https://illustrator-scripting-guide.readthedocs.io/jsobjref/RasterItem/#rasteritem-position api

蒙福5E82_0-1613018270602.png

how to get 'de' position or order character

Likes

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
Enthusiast ,
Feb 11, 2021 Feb 11, 2021

Copy link to clipboard

Copied

If you expand and ungroup text, characters become compound paths which have positions. Otherwise I think it's ill-advised to think about x and y positions of characters while they're part of text.

Likes

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
Community Beginner ,
Feb 11, 2021 Feb 11, 2021

Copy link to clipboard

Copied

How to expand and ungroup text, i want to try it. Thank you very much.

Likes

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
Adobe Community Professional ,
Feb 11, 2021 Feb 11, 2021

Copy link to clipboard

Copied

Here is the video where you can see how to expand and ungroup

https://www.dropbox.com/s/92qo7bvujgn7utv/Screen%20Recording%202021-02-11%20at%204.44.02%20PM.mov?dl... 

 

For scripting you can use after selecting the textframe.

app.executeMenuCommand('Expand3');
app.executeMenuCommand('ungroup');

 

Best regards

Likes

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
Community Beginner ,
Feb 11, 2021 Feb 11, 2021

Copy link to clipboard

Copied

LATEST

Great,Thanks for your video.

Likes

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