Hi list
I would like to write an AppleScript to change a page element on every spread of an InDesign document. The element is a rolling curve, a bit like the outline of hills in the distance where the appear to meet the sky.
I ideally like to have a script that does a random walk on the {(x, y)} coordinates of anchors and handles of an open path over a sequence of pages. Like you would see if you were animating a film of someone driving down a road at high speed and the hills of the 'horizon' (I'm sure that's the wrong use of that word) would move from the centre of image to the periphery.
To keep things more simple, I made a few curves in AI and made blends between them so there is one path object for each spread when the blend is expanded.
That way I can manually get the curves how I want (but miss out on the fun of it making something I never would have though of)
So the question is how to get the curves out of AI into ID and pasted in place on each spread with the correct co-ordinates. I can make a box element for each curve to deal with any variations if co-ordiantes wander due to anchor points wandering.
A picture tells a thousand words so I will follow up this email in a few hours with an AI file and a ID showing what I mean. (Had this email drafted for three days and keep not sending…)
Any ideas about best way to move forward much appreciated. I did a bit of scripting of AI a few years back in _javascript_ so I'm game to have ago but am unfamiliar with ID object/property tree or DOM or whatever it's called.
Best
|