Select Path / PathPoint from script ...
Copy link to clipboard
Copied
Hi,
Found this thread made by @Peter Kahrel
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:
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 ...
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
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 )
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.
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
By Robert at ID-Tasker
Yes I think I got you right 😉

