TextFrame path points

For area type and type on a path, a path is a vector. You can do the same with textPath as with other paths: recolor, change position, and more. The point array of a text path can also be manipulated: select, move, add, and delete.

Moving a text path point

While it is enough to select at least one point on a vector path to work with all the points, the text path has a problem. You have to select the whole path, otherwise scripting methods won’t work.

The difference between selecting PathItem points and TextFrame points

Also, textPath has a property for getting an array of selected points: textPath.selectedPathPoints, but you can’t use that either unless you select the whole path.

The problem with selectedPathPoints property

To summarize, the current API does not allow you to work with a partially selected TextFrame. You need to get the TextFrame by an index in the collection or select it and use the app.selection array, otherwise selection.length will return zero.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
AiScripts

Sergey Osokin. I’m a illustrator & Script Developer (Ai, Ps). Writing about bugs and tricks.