Sg2.9
Is it possible to script a gr...
Recent RSS
Is it possible to script a gradient mesh?
Date:  4. October 2006, 12:23

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?

Re: Is it possible to script a gradient mesh?
From:  Jürg Lehni
Date:  8. October 2006, 22:47

Gradient meshs are not yet part of the functionality covered by Scriptographer. I plan to support this at one point, but cannot tell how much time it will take until it will be added.

Re: Is it possible to script a gradient mesh?
From:  Alex
Date:  9. October 2006, 00:22

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!

Re: Is it possible to script a gradient mesh?
Date:  9. October 2006, 09:53

Thanks, Alex. I'll have a look.

Re: Is it possible to script a gradient mesh?
From:  Michael
Date:  9. January 2007, 14:27

I want to do exactly the same! So if there isn't a way to do it in Scriptographer (by now) is it possible to use Illustrators built in Scripting capabilities to takle it?

Re: Is it possible to script a gradient mesh?
From:  Alex
Date:  9. January 2007, 16:50

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!

Re: Is it possible to script a gradient mesh?
From:  Manuel
Date:  28. July 2011, 09:01

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?

Re: Is it possible to script a gradient mesh?
From:  Alon
Date:  1. November 2011, 22:11

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.

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Hexagonal Rasterizer 02.03.14