Hi, i'm fairly new to scriptographer.
Before i even try creating the script that i have in mind i need to know:
Is it possible to access a gradient mesh and assign colors to individual points with scriptographer?
Pascal I've had luck before with editing gradient meshes directly in the .ai file outside of illustrator. Meshes are marked with the "/Mesh X!" and "/End X!" tags. Play around with it some... You'll be surprised what you can do!
Michael, I'm afraid not. Illustrator explicitly excludes any scripting controls for gradient meshes. I'm not sure why, but I suspect it's because the format is somewhat fragile. Using a text editor, it's very easy to make an "unstable" mesh that will render fine, but will change drastically when you try to edit the point's color in AI.
What you can do, however, is use a script to edit the mesh object outside of Illustrator (using the java.io package or the like), save it, then refresh the document.
I haven't found any good documentation on gradient meshes, but you'll learn a good deal if you make an .ai file with a few of different shapes and values, then start messing with the numbers. I prefer this way on occasion. It allows for many elegant blends that would be a pain in the ass otherwise!
Any luck adding gradient meshes to Scriptographer? I hope this hasn't been forgotten.
I'm trying to understand how the .ai file is written but it is just too painful to read. Has someone worked with them on the scripting side already?
I would also love to see gradient meshes in Scriptographer.
After adding a few hundred points in a mesh, it's a real pain to lift the color for each vertex individualy with the eye dropper.
Imagine what a time saver it would be if you had a script that lifts the color from the underlying layer. Photorealistic vectors would take half the time to make.