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

Select Path / PathPoint from script ...

Community Expert ,
Jul 25, 2023 Jul 25, 2023

Copy link to clipboard

Copied

Hi,

 

Found this thread made by @Peter Kahrel 

 

https://community.adobe.com/t5/indesign-discussions/js-selected-pathpoint/m-p/5981281/thread-id/3857...

 

Anyone found a way to select entire Path or individual PathPoint ?

Moving them is not a problem.

 

I can read info about Paths and PathPoints:

 

RobertTkaczyk_1-1690300436441.png

 

but can't select any of them ...

 

Error message is the same:

"Invalid value for parameter 'SelectableItems' of method 'Select'. Expected Object, Array of Objects, idNothingEnum enumerator or idSelectAll enumerator, but received Path (PathPoint)."

 

I think the problem is because there is no "ID" for the Path nor PathPoint ...

 

TOPICS
Scripting

Views

186

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
People's Champ ,
Jul 26, 2023 Jul 26, 2023

Copy link to clipboard

Copied

I think you reached a limit of InDesign. A simple test is UI selecting a point and ask for current selection constructor.
While you would expect "PathPoint", you get "Polygon". 

So basically the concept of selection seems to stop at the pageItem level.

Unless I am wrong.

Loic

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
Community Expert ,
Jul 26, 2023 Jul 26, 2023

Copy link to clipboard

Copied

Hi @Robert at ID-Tasker ,

to select all path points of a given object goes like this:

 

Make sure you have the Selection tool enabled.

Select the object.

Switch tools to the Direct Selection tool.

 

app.select( null );

app.toolBoxTools.currentTool = UITools.SELECTION_TOOL;
app.select( app.documents[0].rectangles[0] );

app.toolBoxTools.currentTool = UITools.DIRECT_SELECTION_TOOL;

 

Regards,
Uwe Laubender
( Adobe Community Expert )

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
Community Expert ,
Jul 26, 2023 Jul 26, 2023

Copy link to clipboard

Copied

I don't need to select ALL PathPoints - I would like to be able to select only some of them - or one of the Paths of the more complicated object - on my screenshot there are two objects with their structure - part of the Polygon are three objects on the right. 

 

But I think it's no longer a problem - for me...

As I'm already able to load info about the Paths and PathPoints and show it to the user - and I can manipulate them anyway - it just would be more convenient to show which one is beeing manipulated.

 

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
People's Champ ,
Jul 26, 2023 Jul 26, 2023

Copy link to clipboard

Copied

LATEST
quote

I don't need to select ALL PathPoints - I would like to be able to select only some of them - or one of the Paths of the more complicated object 

 


By @Robert at ID-Tasker

Yes I think I got you right 😉

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