Assorted "color book" in Illustrator

Hello all,
I have been trying to create an assorted color book, essentially an array of differently colored rectangles with their respective CMYK formulas displayed underneath.  Currently, I have an excel document as well as a "tab-delimited" text document of a very large quantity of CMYK combinations that I would like to be able to make the aformentioned color book from.  Creating the rectangles and entering their formulas by hand would be possible, but also unrealistic for this large of a quantity so I am trying to automate the process in any way that I can.  Unfortunately, I am not very skilled with scripting in javascript, so I am looking for some help.  I know enough about programming to be able to make small changes to fine tune a script so any help would be appreciated
Essentially I would be looking for the script to take the formula, make a square with that CMYK combination, create a text box with that formula typed out underneath the block, and then keep repeating the previous steps for the remaining combinations by placing the blocks in a line.
http://forums.adobe.com/message/2877951
http://forums.adobe.com/message/3813617
The links above contain code that are similar to what i have been trying to work with before making this post.
I would greatly appreciate any help with this project and thank you all in advance for your help

Here you go, one Javascript to fit. It creates a new document in CMYK mode, with the required number of artboards. (Getting that right took more time than writing the entire drawing stuff, too!)
You can change the page and rectangle sizes near the top; adjust to fit your needs.
I do hope, though, you are using CS4 or older -- I can't test but I bet it will draw everything upside down for CS5!
//DESCRIPTION:Make Color Book From CSV
// A Jongware Script 15-Jan-2011
// Large parts for reading CSV shamelessly pilfered from
// Muppet Mark, http://forums.adobe.com/message/2877951#2877951
// The CSV is assumed to have this format:
// Cyan,Magenta,Yellow,Black
// separated by commas, color values in percents (so 100 = full)
// This sets up a landscape A4 document. Adjust for your own needs.
// My values are in mm, so they need converting to points for Illy.
// You can also enter sizes in inches -- use in2pt for that, as in:
// width = in2pt (8.5)
// height = in2pt (11);
// to set Letter size
// or use cm2pt(..) if you prefer centimeters
// ... no need to convert points, so if you like these
// simply enter
// width = 800;          // value is in points
width = mm2pt (297);
height = mm2pt (210);
// Size and distance per color rectangle
// The vertical distance needs to be enough for
// your by-line to fit.
rectwidth = mm2pt(20);
rectheight = mm2pt(15);
distancex = mm2pt (4);
distancey = mm2pt (8);
// These get recalculated to center the entire block
// of colors nicely on the page size.
leftoffset = 0;
topoffset = 0;
if (isOSX())
          var csvFile = File.openDialog('Select a CSV File', function (f) { return !f.hidden && ((f instanceof Folder) || f.name.match(/\.csv$/i));} );
} else
          var csvFile = File.openDialog('Select a CSV File','comma-separated-values(*.csv):*.csv;');
if (csvFile != null)
          fileArray = readInCSV(csvFile);
          var columns = fileArray[0].length;
//          alert('CSV file has ' + columns + ' columns…');
          var rows = fileArray.length;
//          alert('CSV file has ' + rows + ' rows…');
          if (columns == 4 && rows > 0)
                    doc = createDocument (fileArray.length);
                    if (doc)
                              drawRects (doc, fileArray);
                    else
                              alert ("Rectangle and Page Sizes do not add up!");
          } else
                    alert ("CSV is not in the expected format");
function createDocument (numrects)
          // How many rectangles in horizontal?
          horzrange = Math.floor((width+distancex)/(rectwidth+distancex));
          // And vertical?
          vertrange = Math.floor((height+distancey)/(rectheight+distancey));
          if (horzrange < 1 || vertrange < 1)
                    return null;
          // How many artboards do we need?
          numartb = Math.ceil (numrects/(horzrange*vertrange));
//          alert ("We need "+numartb+" artboards");
          leftoffset = (width+distancex-horzrange*(rectwidth+distancex))/2;
          topoffset = (height+distancey-vertrange*(rectheight+distancey))/2;
          doc = app.documents.add (DocumentColorSpace.CMYK, width, height, numartb, DocumentArtboardLayout.GridByCol);
          return doc;
function drawRects (doc, array)
          black = new GrayColor();
          black.gray = 100;
          xpos = 0;
          ypos = 0;
          artb = 0;
//          alert (doc.artboards[artb].artboardRect);
          for (i = 0; i < array.length; i++)
                    color = new CMYKColor();
                    try {
                              color.cyan = Number(array[i][0]);
                              color.magenta = Number(array[i][1]);
                              color.yellow = Number(array[i][2]);
                              color.black = Number(array[i][3]);
                    } catch (_)
                              alert ("Failed on line #"+i);
                              return;
                    rect = doc.pathItems.rectangle (doc.artboards[artb].artboardRect[1]-topoffset-ypos, doc.artboards[artb].artboardRect[0]+leftoffset+xpos, rectwidth, rectheight);
                    rect.strokeColor = black;
                    rect.strokeWidth = 0.5;
                    rect.fillColor = color;
                    t = doc.textFrames.add();
                    t.left = doc.artboards[artb].artboardRect[0]+leftoffset+xpos+rectwidth/2;
                    t.top = doc.artboards[artb].artboardRect[1]-topoffset-ypos-rectheight;
                    t.contents = array[i][0]+" / "+array[i][1]+" / "+array[i][2]+" / "+array[i][3];
                    t.paragraphs[0].justification = Justification.CENTER;
                    t.paragraphs[0].size = 8;
                    xpos += rectwidth + distancex;
                    if (xpos + rectwidth > width)
                              xpos = 0;
                              ypos += rectheight + distancey;
                              if (ypos+rectheight > height)
                                        ypos = 0;
                                        artb++;
function mm2pt (val)
          return val*72/25.4;
function cm2pt (val)
          return val*72/2.54;
function in2pt (val)
          return val*72;
function isOSX()
  return $.os.match(/Macintosh/i);
function readInCSV(fileObj)
          var fileArray = new Array();
          fileObj.open('r');
          fileObj.seek(0, 0);
          while(!fileObj.eof)
                    var thisLine = fileObj.readln();
                    if (thisLine.indexOf(',') > 0)
                              fileArray.push(thisLine.split(','));
          fileObj.close();
          return fileArray;

Similar Messages

  • How do I add Pantone Color Books to Illustrator CC?

    I'm used to using the Pantone Process color book in illustrator, but it's missing from my Illustrator CC. How can I add it? I had it at work, so I assume it is a standard color book, because my work never paid for anything extra. I see I have a Pantone+ CMYK Coated color book, but the names of the swatches are different from Pantone Solid to Process color book I'm used to.

    oh. then you are requesting for the old pantone books?
    here you go
    Dropbox - pantones.zip
    let me know when you've got it because i'd like to delete it.

  • Pantone color book for Illustrator 6

    Where can I find updated color books for Illustrator to use the latest Pantone colors?
    Eg. I do not find Solid Coated 2028 in my recent installation
    Thanks in advance
    Charlotte

    Ask in the AI forum. Certain Pantone colors have changed over the years and this may be such a case where it appears under a different number...
    Mylenium

  • Color Books in Illustrator CS6 (Creative Cloud)

    I have recently purchased a MacBook Pro and I am using Creative Cloud to download my programs. I have downloaded Illustrator CS6, and I am trying to replace the new Pantone + color books with the older versions. I have done this in the past on Windows with no issues.
    On my Mac I can not find the new document profiles folder so I can change the spot color. I go into the Adobe folder and there is no Illustrator folder in there. Does anyone know where it would be, or why it is not in there?
    Mac OS: [user]/Library/Application Support/Adobe/Adobe Illustrator CS6/[lang]/New Document Profiles
    Also open to any other workarounds for getting the old color books. I need all of the old color books, not just a few swatches, so workaround 2 in this document below will not help me.
    Document I have been using - http://helpx.adobe.com/illustrator/kb/pantone-plus.html
    Thanks in Advance! Hopefully someone will have a solution for me :-(

    The path for the New Document Profiles should be Mac HD/Users/<yourname>/Library/Application Support/Adobe/Adobe Illustrator CSX/en_US/ which is a hidden folder in OS10.7 and later. Do a Google search for how to access this folder. The Pantone color books go in Mac HD/Applications/Adobe Illustrator CSX/Presets/Swatches/Color Books.

  • Printing a Color Book out of Illustrator?

    Is it possible to print one of the Color Books from illustrator with the spot color name attached to each color?

    No.  And yes.  Depends on how much money you have to invest in paper and ink.  Like Steve says above, in order to print the CMYK equivalents, you need a really good proofer and a decent Postscript 3 RIP.  Then there's the paper.  You might as well just buy the actual books from Pantone and save yourself alot of hassle, time, and money.  I mean, you're talking about thousands of CMYK combinations.  But, those combinations have to be built for your particular printer.  Years ago I had an HP1200c/ps that came with Pantone Color lookup tables so you could build a specific color that would then print fairly reasonably through the hardware RIP on a decent paper.  Unless you've got about six months to a year's worth of free time, forget about it.

  • Can I replace Pantone color books in InDesign, Illustrator, and Photoshop?

    These new Pantone + books are a pain in ...well... you understand.  In my years as a designer, I have just clicked on the correct book and color swatch, but now...
    I am using Windows 7 and the CS6 suite of products.  We have a company logo in which both main colors have dramatically changed with the new books.  I won't go into all of the tricks we've tried to be able to place it in new documents without the color changing.  I now think the only answer is to replace the color books as Adobe recommends.  I do have two questions, though.
    First, can I change the books in all of my products?  Adobe only gives instructions for Illustrator and InDesign, but I regularly have to change vendor logos into our company colors in photoshop, and I am finding the color in Photoshop isn't the same when I bring that logo into Illustrator, even though they have the same number.
    Second, what are the end results if I do change the books when I send a document to a printer?  We usually do our printing in-house, so I am wondering when we buy PMS 2955 if it will be what I see in the old books or the new books.  And what will an out-of-house printer be using?
    My main two concerns are (1) seeing the correct color on screen and (2) printing the correct color.  I don't really care how I get there, but I'd like it to be a permanent fix so I don't have to go in and manipulate swatches every time I add a logo to an item.
    Thanks for any help!
    BTW - haven't been to this new forum format and don't know if I am posting this in the right place.  If not, please help me find the correct location.  Thanks!

    HI this is good. But i have already seen this.
    Its very informative but somehow i felt it lacks the punch and fun factor in a video. I need something which captivates and entrances the audience, not a speech kind of a thing.
    Anything else??

  • Why can't I find certain Pantone plus colors in Illustrator CS6 color books?

    Why can't I find certain Pantone plus colors in Illustrator CS6 color books? For example I want to use PMS 2296C, but it is not coming up in the color swatch book in Illustrator.

    Thanks!
    I actually just came across the same thing in the meantime.
    And it worked!
    If you bought the physical Pantone books, there is a registration/serial number on the back. You can go to Pantone and register it (https://www.pantone.com/pages/MYP_myPantone/mypProductRegistration.aspx)
    Then you're able to download the Pantone manager.
    There are infact 336 new colors added to the Pantone Plus series. And this is where you need to get them. Once you have them, in Pantone color manager, you go to: File/Export/Adobe Illustrator/sRB. Then restart Illustrator.
    Once you go back in, the new 336 colors are available!

  • Illustrator CS4, new Pantone color books, color channel issue

    Since I installed the new Pantone color books, I've been running in a major issue which will affect our whole production line.
    If an Illustrator CS4 file contains a Photoshop CS4 image which is using an "old" Pantone color in a color channel, it cannot be opened and I get an error message "File is unreadable". If I replace the "old" Pantone colour with its new equivalent in the color channel in Photoshop, the file can be opened normally.
    In our work environment, this means going through all our images to check which one is using a color channel. A painful and time wasting procedure. Furthermore, if one of our suppliers doesn't have the new color books, they won't be able to open any of the files, both Photoshop and Illustrator, so they have no way to revert back to the old Pantone.
    Is there another way to fix this?
    Thank you

    More on the Pantone PLUS saga, hoping to get some input from the users of this forum. I find their silence deafening, to say the least. This is a serious issue, that will cost our agency hours and hours of work if it isn't addressed. And we've already wasted hours of troubleshooting and discussions on how we could resolve it.
    We're actually testing a workaround: using both the old and the new libraries in Illustrator. After consulting our suppliers, we've learned that this is what they also do. For them, it's a one shot to get the file to print. For us, it means cheating with files that will get edited again in the future. And the Pantone installer removes the old Pantone books from the Adobe folders for a reason which is mentioned on the download page:
    The reason that the PANTONE Color Libraries that had been built into Illustrator need to be removed and replaced with the PANTONE PLUS Color Libraries is that, in Illustrator, a PANTONE Color can only have one data point with which it is associated. In the short term, in order to benefit from the new colors and data associated in PLUS, the PANTONE Libraries that are installed with Adobe Illustrator are removed and replaced with the new PLUS Libraries.
    http://www.pantone.com/pages/Pantone/Pantone.aspx?pg=20721&ca=1
    I worry this may lead to another bunch of issue, knowing how easily AI files get corrupted. What I need to know is:
    What is the exact meaning of the Pantone warning about the "one data point per color?
    What are the long term implications of using both Pantone libraries in an Adobe file? Or in the Adobe app?

  • Illustrator CS6 / CC and previous Pantone color books

    Hi all, I've understood that Illustrator CS6 / CC has the new Pantone+ color books, those color books doesn't have CMYK values so the default of rIllustrator CS6 / CC is to use the Lab values when I add a Pantone swatches to my document.  One of my customers, that is a print industry, need to have the old Pantone with CMYK values to maintain the same color rendition on old and continuative jobs. Adobe says that I can load the old Pantone color books from CS5 and change the swatches option so that Illustrator use the CMYK values: http://helpx.adobe.com/illustrator/kb/pantone-plus.html  The problem is that this doesn't work for me and for my customer, even if I change the swatches option Illustrator continue to load only the Lab values from the older CS5 Pantone color books... anyone of you has a solution?

    I am running into the same issue.  Both links suggested did not work for me.  In a document I created in CS4 (the old document) and opened in CC there is a square with the color Pantone 519U in which it converts to C:67% M:100% Y:30% K:10%.  These are the numbers to be expected.  If I copy the square that is 519U in the old document and paste it in the same old document the color remains the same.
    I create a new document in CC (the new document).  From the old document I copy the Pantone 519U square and paste it in the new document.  The resulting square in the new document is a washed out purple.  The new document square converts to C:57.27% M:68.83% Y:35.06% K:13.06%.
    Again I followed Workaround 1 in the link.  I obtained the old Pantone Libraries from my CS4 machine so it is not a library issue.  I have also created a new Document Profile where I set the Spot Color to be "Use CMYK values from the manufacturer's process books".  I am seeing the same problem before and after the workaround.

  • Can't type (search) PANTONE+ numbers in InDesign CS5 7.0.4 Color Books

    There is a glaring issue in trying to select Pantone+ colors by typing in the color number, like 97-8 (from the CMYK Pantone+ book) yields 17-1?! I have no idea why that comes up. And the panel is almost unusable due to this inexcusable oversight. It needs to be searchable by exact Pantone+ number. JUST LIKE REGULAR PANTONE NUMBERS in the regular color book, I could type in 18-1 and get 18-1 not some obscure number.
    I have seen a few similar posts without proper answers EVEN IF it said it was answered.
    I have pantone+ libraries installed. They just don't work when it comes to typing in the number you want...you have to scroll, and the scroll is way too slow or way too fast and very painful to use.
    Please help!
    Thank you!

    This seems to only be the case with the Pantone+ Process color books. "Pantone+ CMYK Coated" & "Pantone+ CMYK Coated". This is a huge problem for me since 99.9% of our jobs are CMYK.
    And I did reinstall the swatches recently and that did not fix InDesign.
    But the Pantone+ CMYK color books work in Illustrator CS5 just fine... you can type in your number and get your color.

  • CS 6 Workspace not saving color book.

    When I add color books to my color space, it never saves it, I always have to go back everytime I open illustrator to the Window>Color Books> XXX and add it to my workspace again, anybody have a solution, it didn't do this on my CS 5.5 but now CS 6 won't let it stay.
    Thanks for any help.

    From the swatches panel flyout menu select the option "Persistent". This will keep your selected color books with your current working space.

  • Color matching in Illustrator with CMYK

         This is a technical question about the best practice to follow when trying to match a color with Illustrator. A short description of what I'm trying to do is in order. I have a digital printer which uses an Epson 2880 print head and driver. I have not loaded the PPD drivers yet. I'm using Illustrator CS5. My task is to match Reflex Blue, namely Pantone Reflex Blue.
         First thing I noticed is Reflex Blue is an base color and not made up by a formula in my matching guide. Next issue is, this color has to be created by a formula (Mix) of CMYK. I have resisted changing any of the print driver settings and have focused solely on Illustrator. This may be the wrong approach, but I did not want to have 2 different settings adjustments going at the same time.
         My question is, provided that the printer and it's related drivers are set, what settings would be the first place to start, when attempting to"dial in" an specific color.
         I have worked with Illustrator for years in the printing industry, but I rarely have had to match an color coming out of the printer. I just used them for proofs, and always stated that the colors are not exact. Now I have a direct to print situation and I have to hit the color. Fun! Any help would be greatly appreciated. Thanks!

    First thing I noticed is Reflex Blue is an base color and not made up by a formula in my matching guide.
    The Pantone Solid-To-Process library is provided in CS5 through the Swathes palette flyout menu. That Library suggests 100c73m0y2k. for Reflex Blue.
    …this color has to be…CMYK. I have resisted changing any of the print driver settings…I did not want to have 2 different settings adjustments going at the same time.…provided that the printer and it's related drivers are set, what settings would be the first place to start…
    It is not clear from your description whether you are printing a document with only a Pantone Reflex Blue separation or if Reflex Blue is just one separation in a document that contains other spot or process separations.
    I will assume the typical process-plus-one-spot situation. Suppose you are building full-color process documents (sheetfed brochure, for example). The client's identity standards specify Pantone Reflex Blue as its logo color, and the client is willing for the press job to include the cost of adding a 5th color.
    You wouldn't want to alter the color calibration settings (if any) in your workflow just to make your composite draft match the spot color more accurately. Doing that would, of course, throw off the colors of everything else in the document. So a document-level or printer-level setting just to match a particular spot color is silly.
    Always bear in mind: Color separation is all about inks, not colors.
    By definition, a spot color is just a grayscale image that gets sent to its own separation. The RIP which prints the color separations doesn't care one whit how the spot color looks on your monitor, or how it prints on a composite color device. You can easily create a spot color Swatch and color it and name it any way you want. So long as it's a spot color Swatch, and so long as it's named "Reflex Blue," the RIP is going to print it to an individual color separation plate labeled "Reflex Blue" even if it looks orange on screen and on your composite printer.
    So there's nothing constraining you to the default color values that the various provided Color Books use to display (and composite print) their swatches. Just create your own spot color swatch and name it "Reflex Blue." Define the color mix of that Swatch to achieve whatever looks most "right" to you when printed to your composite printer.
    How do you determine that mix? You just spend a few minutes to set up a simple swatch test sheet. Using your Reflex Blue as the example:
    1. Create a new Illustrator document using the same color settings that you will for the final press-ready file.
    2. In that document, set up a horizontal Artboard sized to the maximum sheet size of your composite printer. Draw a small rectangle in the upper left corner.
    3. Fill this rectangle with the color mix shown in the upper left of the screenshot below (100c50m0k). Why? Because the default mix of the Pantone Solid To Process swatch is 100c73m0y2k. 50% is well below the M component, and 0% is, well, no K.
    4. AltShiftDrag a copy of that rectangle to the upper right corner of the Artboard. Fill this rectangle with the color mix shown in the upper right of the screenshot below (100c80m0k). Why? Because 80% is enough above the default 73% M.
    5. AltShiftDrag a copy of both of the rectangles downward to the bottom corners of the Artboard. Change the K component of both of those to 10%. Leave the other components unchanged.
    6. Select the two top rectangles. Create a Blend using Specified Steps: 29. This results in an array of rectangles which increase in M values from left to right in 1% increments.
    7. Similarly Blend the bottom two rectangles.
    8. Expand and Ungroup both Blends.
    9. Select the top left and bottom left rectangles. Create a Blend using Specified Steps: 9. This results in a vertical array of rectangles which increase in K values from top to bottom in 1% increments.
    10. Repeat step 9 for each corresponding pair of top and bottom rectangles.
    11. Now you have a rectangular array of test swatches. The rectangles increase in M horizontally, and increase in K vertically. Print this to your desktop composite printer.
    12. Compare the print to a Reflex Blue color chip. Note the printed rectangle that makes the best approximation.
    13. In the Illustrator file, find that rectangle. Define a spot color Swatch using the process mix of that rectangle. Name the Swatch "Reflex Blue" and standardize on that swatch for any project which involves Reflex Blue and which will be printed on your composite printer.
    I just used them for proofs, and always stated that the colors are not exact.
    Be prepared for the hard, cold reality of process printing. The above described procedure is certainly worthwhile. But you are not going to achieve a dead-ringer match to Reflex Blue or to many other standardized spot color inks (or vinyls, or paints, or dyes…). That's the ugly truth about CMYK process. Despite common misconception, process color is a "full color" methodology, but it is not capable of reproducing every color on earth. Far from it.
    So you will still end up saying to your customer, "This is just an approximation of your spot color."
    JET

  • LAB Default in "color books"?

    I work with a commercial printer and have many clients that use pms colors in their business collateral.....
    why is it that now, the default when using spot colors from color books is LAB?
    It is a complete hassel and has shifted the color on almost ALL of my client files to print.
    The conversion from the Illustrator default (LAB) to CMYK or to a PMS spot is soooooo wonky and everything looks very muted.
    EXAMPLE:
    Please someone tell me how to change this....
    I found this from an old discussion on the color shift from 5.5 - 6
    Has this not been resolved and will I have to use the old Pantone Color Library instead of the new?

    My question is now,
    although the print and screen versions will have more consistency -
    and using LAB colors should create greater consistency among various devices -
    why are the conversions to color builds very very different?
    Is there new RIP Software to go along with this?
    (This is pushing a lot of trial and error on the printers end, considering the end product is what our business is based on)
    *SIGH* what to do?
    Also I am now on Adobe CC and the link seems to inform on a "work-around" for CS6...I've been trying to do the step-by-step in the Cloud with no success, I think the step 5 & 6 differ from CS6-CC.....

  • How do I convert coloring book page to live paint group?

    Have coloring book and clip art image. How do I color them?

    Here are the steps you can use.
    Step 1: Create a new Illustrator document and insert the scan / photo of the image.
    File > New
    File > Place, navigate to the image, select it, click Place
    Click and drag on the page to insert the image.
    Step 2: Turn the pixel based image into Illustrator vector art
    With the Selection tool, click on the Image to the select it.
    Display the Image Trace panel (Window > Image Trace).
    From the Preset menu choose an option that closest resembles your image trace requirement, and select Preview and click Trace.
    Check the results, and make adjustments to the settings as required.
    Once you're happy with the result, in the Control panel, click Expand. Note that once you expand the Image Trace you will no longer be able to adjust the trace settings, and you've created Illustrator vector art.
    Step 3: Change the artwork to a Live Paint group and start colouring.
    Select the vector art, and choose Object > Live Paint > Make.
    You can now use the Live Paint Bucket and Live Paint Selection Tool to colour your artwork.
    Cari

  • Hey, How do I populate my replace colors color library in illustrator? I tried to replace color on a traced/ vectorized image and when I selected and went to the color library CC said I need to use a valid username. I was already logged into my adobe acco

    Hey, How do I populate my replace colors color library in illustrator? I tried to replace color on a traced/ vectorized image and when I selected and went to the color library CC said I need to use a valid username. I was already logged into my adobe account.

    Can you please show a screenshot of what exactly you want to replace where?

Maybe you are looking for