Hi, I have some polygons (which I draw manually) that have some points that serve specific functional purposes in my scripts--eg a rotation point, a location for other points to move to, etc. I have been finding them by running through all the polygon's pathPoints to find the highest point, the point that is highest among the leftmost set of points, etc. it would be much preferable if I could name these points when I created the polygons, and then just retrieve them by name in the scripts. But the pathPoint object doesn't have a name property.
Has anyone found an elegant hack to simulate named points in indesign scripts?
Thanks in advance!
No, path points are neglected beasts. I've not found a way to get an easy handle on them.
A problem I came across is that if you select one, app.selection doesn't return the point (but the polygon, I think--not sure now).
And the person responsible for the naming of the script properties did a bad job: leftDirection and rightDirection are silly because it dependes which way you're looking. Why they didn't use the more standard and unambiguous incoming and outgoing is beyond me. End of rant.
Yes, I noticed that nasty behavior of app.selection. It's as if there's no such thing as the direct selection tool....grrr.
I agree about leftDirection and rightDirection. I haven't done much with them yet, so I don't have horror stories with them yet.