Hi everyone,
While trying to write my now third inDesign plugin, I’ve found some issues when trying to modify a simple Polygon’s Path.
Here’s an example of what polygon i’ve been using:
when trying to modify the Anchor points I tried using this
app.selection[0].paths.firstItem().entirePath[0] = [100, 100]
aswell as plenty other ways (using …paths.item(0).entirePath, and even individual anchors…) but nothing seems to be actually working?
Path []( Number index )
Returns the Path with the specified index.
this part of the InDesign API is also very unclear, when trying to access a specific Path from an Paths object (or any instance from a “s” type object), is this supposed to be used as paths.[](index)
? In any case it’s very weird.
hopefully one of the more experienced people here can guide me.
Thanks,
Andreas