Accessibility
Adobe
Sign in Privacy My Adobe

Illustrator Scripts

Adobe Exchange: The new way to discover and install plug-ins, extensions and content for the Creative Suite. Get it now

Import GIMP Palette

By AndréBerg February 19, 2009
577 Downloads

Rating = 00 votes


Import GIMP Palette

This script reads in a GIMP swatch library in GIMP Palette format (.gpl), parses the lines for RGB color values and adds them as swatches to an Adobe Illustrator document. Ideally the GPL file should have the following layout: GIMP Palette Name: <library name> <more header text> ... # <value R> <value G> <value B> <swatch name> ... ... with angle brackets denoting important conceptual values, the "..." construct denoting repetition and normal letters and punctuation denoting actual file contents. The minimum amount of constructs needed to parse the GPL file are the occurances of the "#" character to divide header and color values, the "Name: <library name>" construct usually located on the 2nd line and the color values part with lines containing at least three white space delimited number fields and a swatch name string starting with the fourth field. The script should work with Adobe Illustrator CS3 and CS4 though with CS3 the swatches are not added to their own color group due to technical restrictions (no swatchgroup class). For CS3 the imported swatches are added to the main swatches palette but with the library name prepended to every swatch's name to make it easier to spot and sort colors belonging to the same library. If no document is open prior to calling the script then a new RGB document is created before execution continues.

SUPPORT INFORMATION
v0.1 Initial Version. Because this script uses AppleScript it is currently Mac only. Tested on Mac OS X 10.5.5 (Leopard) with Illustrator CS3 and CS4. It is unlikely that this script will work on earlier versions. To install put it in your "Applications/Adobe Illustrator CSx/Presets/Scripts" directory, restart Illustrator and call this script from File > Scripts > Import GIMP Palette.

Download

License: Open Source
Language:
Cost: Free
Platform: Mac
File format: ZIP | 33.0 KB

Additional extension information

Author: AndréBerg
Author website: Not available
Date published: February 19, 2009
Approval: None
Compatible product(s): Illustrator CS4 , CS3

Reviews

0-0 of 0 reviews | Show all reviews


Add a review

(+) Please log in to submit a review