How to batch generate hundreds of color swatches?

- i need to get hundreds of color swatech in tiff (Lab color) format.
- i have table with name of color and its Lab values (columns: name; L value; a value; b value) - table i can save as .csv etc.; script can ask for path to .csv file or can be fixed path and filename
- tiff document can be e.g. 10x10 px or 100x100 px.
- tiff file should be naming according to table value (column "name")
- files can by saved e.g. on disc C: (or user can be ask at the start of the batch)
I am not programmer and I will be thankful if somebody write this script (JavaScript).
I think that it will be useful for many graphic designers.
(Sorry for my English)

Hello,
i prepare color swatches palette in InDesign.
Generated tiffs (with appropriate description) i linking with data merging engine to specific layout.
I have spectrometer measurement in Lab color space (439 colors).
part of the list:
name
  L*
  a*
  b*
005.8.4
86
0
15
012.4.5
93
-1
11
015.5.5
92
1
12
015.9.4
86
2
12
026.5.5
92
1
9
124.8.5
94
1
1
317.4.5
94
-5
8
345.9.4
86
-3
9
0101-0
93
-1
3
0100-1
95
-1
3
025-1
95
-4
13
026-1
94
-2
6
054-1
89
3
21
055-1
92
1
13
056-1
93
0
7
064-1
89
2
19
065-1
92
0
12
083-1
77
7
15
084-1
84
4
11
085-1
90
2
8
093-1
76
9
14
094-1
85
5
10

Similar Messages

  • How do I save a new color swatch?

    I am trying to create a style for my charts and have created CMYK swatches to do so. How do i save the swatch information so i dont have to reenter the CMYK information every time i create a chart?

    on your color pallette, there is a row of little white squares. If you drag the color swatch to one of those squares, it will stay there until you remove it. It will even stay there as you open more documents.
    Hope it helps.

  • How do I update my PMS color swatches within Adobe CC 2014 to the latest PMS colors?

    I have the latest version of CC, and the PMS color swatches I'm trying to see on my computer are not there (They are in the printed version of the PMS Color Bridge book). There's a lot missing. For example PMS 2002 C.

    According to what I see at this Google search link, I think you need to obtain what you want from Pantone

  • How can I change the default colors swatches?

    Too many CMYK colors for the Print Profile.
    How to I make it that only 3 colors show up?

    Open one of the actual default profiles change the colors save the document close now go to FileNew and choose that profile and ityou open asthe you lastto saved it withwould colors you selected.-

  • How do I generate a random color? Here's my code...

    I'm trying to color a rectangle one of four colors, randomly. I can't figure out what I'm doing wrong. Here's my code:
    import javax.swing.*;
    import java.awt.*;
    public class Rectangle extends JComponent  {
         private static final long serialVersionUID = 1L;
         public Rectangle(int x, int y, int w, int h)  {
            super();
              setBounds(x, y, w, h);
            setBackground(Color.RED);
        public void paint(Graphics g)  {
            g.setColor( getBackground() );
            g.fillRect(0, 0, getWidth()-1, getHeight()-1);
            repaint();
            paintChildren(g);
    }Basically, I need "g.setColor( getBackground() );" to be one of four random colors. I have a seperate class that this is used for.
    Here is some code I was throwing around, but it doesn't seem to work at all:
    public void randomcolor(int too) {
         Random ran = new Random();
         too=ran.nextInt(4)+1;
         switch (too)     {
         case 1: color=Color.blue;
         break;
         case 2: color= Color.green;
         break;
         case 3:color=Color.orange;
         break;
         case 4: color=Color.green;
         break;
         default: System.out.println("wrong number, pick another ");
         top.setBackground(color);
         left.setBackground(color);
         right.setBackground(color);
         bottom.setBackground(color);
    }     Any help would be amazing. Thanks!

    Thanks! Your code worked exactly as it was supposed
    to. =D
    Unfortunately, mine's kind of messed up at the core.
    You see, I have 4 rectangles (forming a square) that
    flash in a random position at a random size in a
    window (like a screen saver.)
    Each time the square flashes, I need it to be a
    different color, preferably with all the sides the
    same random color. However, where I put the random
    code, it chose random colors for each side and stuck
    with them throughout the whole animation of the
    square bouncing around.
    I'm not sure what to do, now. If you want, I'll post
    my code, if you think you can help.
    ~DacWhat you could do then is move the responsibility of changing the Color of a Rectangle away from the Rectangle class and let one class control the four Rectangles. Something like this:
    import java.awt.Color;
    import java.util.Random;
    public class RectangleController {
        private static Random rand = new Random();
        private Color[] colors = {Color.blue, Color.green, Color.orange, Color.green};
        private Rectangle[] rectangles;
        public RectangleController() {
            rectangles = new Rectangle[4];
        public void changeColors() {
            Color newColor = getRandomColor();
            for(Rectangle rect : rectangles) {
                rect.setBackground(newColor);
        private Color getRandomColor() {
            return colors[rand.nextInt(colors.length)];
    }

  • How do I remove/manage a custom color swatch?

    My color window is getting overly crowded with custom color swatches. How do I remove a custom color swatch?

    You do know you can drag the Motion color chooser's color swatch window to reveal a great number of squares, right?
    Patrick

  • Saving Color Swatch Sets with Files

    I don't know why this is so hard to do in Photoshop. How can I save a custom color swatch window for all my different files individually. I am wanting to do exactly what Indesign and Illustrator does. I open a file in Photoshop and it brings in the last color pallet I used, instead of the color pallet I used for that file. Is there any way around this?

    ID and AI are using simpler objects and colors associated with those objects.
    Photoshop works with images with millions of pixels, none of which may directly relate to specific swatches.
    You can save and switch swatch preset files if you like. But swatches are not carried along with the document in Photoshop (because it's like trying to carry every grain of sand on every beach in the world).

  • How Do I Mass Search and Replace Swatch Colors In Entire Indesign CS6 Document?

    I've jumped from CS4 to CS6 and its been a little while since, but just trying to refamiliarize myself with the many Features of Indesign CS6.
    Here's my issue: I have a really old CS4 document I've opened up and saved in CS6. I have to change all swatch colors throughout the document from pantone swatch 295 C to updated pantone swatch 293 C.
    Question, without my having to go through the entire document one object at a time looking for each object, HOW do i perform a Mass search and replace of Color swatch references from 295 C to 293C.
    I thought i could just click swatch properties and update the color... but No... that doesnt work as swatch properties is just grayed out
    I'm sure i've overlooked something but a refresher on how to mass find and replace color in a document would be great.
    Thanks and looking forward to hearing from someone.

    Thanks for the tips.... both seem like good options without my having to purchase a 3rd party software to accomplish this...
    I must admit... Because I've been stuck in Web Design and Motion Graphics for the past couple of years, when I re-opened my old print work from the CS4 days into CS6 it is obvious I have some catch up to do....
    I was almost embarrassed to admit I had forgotten the technique of Alias one color to another using Ink Manager... I had to look it up and found this helpful tutorial http://indesignsecrets.com/alias-one-color-swatch-to-another.php
    Thanks for both solutions....

  • How can one create a paint color generated from a photo using Kuler?

    How can one create a paint color generated from a photo using Kuler?

    The best way to remove a pattern is to use a Fast Fourier Transform.  There's a free plugin (as well as examples and instructions) here:
    http://dl.dropboxusercontent.com/u/6795661/4N6site/improc/fftplugin/examples.htm
    Using the plugin requires editing the individual colour channels, which PSE does not natively allow.  You'll need the reasonably-priced Elements+ addin:
    http://elementsplus.net/
    Here's a crop at 100% of the result I got:
    The pattern is much reduced.  With some experimenting, you can probably do a little better.
    Ken

  • How can i print a color swatch chart of photoshop swatches? [was:jasrhodes]

    how can i print a color swatch chart of photoshop swatches?

    The forum hosts have corrected your post title, but for next time, please give your threads a sensible topic title.
    Also more information would be appreciated.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers: 
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • How to delete all color swatches?

    How can one delete all color swatches in a palette, or delete all "unused" swatches, such as one can do with Muse?
    Or: how can one create a new set of swatches, that would be blank?

    I believe you can do it in the Presets Manager.

  • How do I delete a color swatch library in photoshop?

    Hi I created a color swatch library which I want to delete since I don't use it. Anyone who knows how to do this? I tried Preset Manager but that doesn't give me any options.

    You would first select the library and then select Delete Library in the Panel menu. I think that's what you want.

  • [JS] How do you set change GREP preferences to a custom color swatch?

    Hi All
    I am having difficulty with setting the 'changeGrepPreferences' to a specific color swatch in an InDesign CS3 document.
    The code below is meant to search within text styled with the Character Style "Hyperlink" and change any spaces (which import from Word as black text, i.e. have a black underscore) to the font color of the Character Style (which is a spot color that I've named 'Hyperlinks grey'). I think I have cracked it except for the changeGrepPreferences line; but I'll let the experts be the judge of that.
    app.findGrepPreferences = null;
    app.changeGrepPreferences = null;
    app.findGrepPreferences.appliedCharacterStyle = 'Hyperlink';
    app.findGrepPreferences.fillColor = 'Black';
    app.findGrepPreferences.findWhat = ' ';
    app.changeGrepPreferences.fillColor = app.activeDocument.swatches.itemByName('Hyperlinks grey');
    app.changeGrepPreferences.changeTo = '$0';
    app.activeDocument.changeGrep();
    Any help will be greatly received.
    Simon

    Hi Ole
    Thanks for the quick response. Your workaround works well up to a point. However, because the color 'Hyperlinks grey' already exists in the document I'm working on, when you add a new swatch it creates 'Hyperlinks grey 2'. I really need the text to be colored with the original color: in our production workflow we use a system called Odystar to create a Web and a Print PDF. For a print PDF, Odystar first looks for text in the spot color 'Hyperlinks grey' and turns it to black and removes the underscore. It means that hyperlinks look like hyperlinks for a Web PDF, but not for a print PDF.
    Also, the line of code that removes the created color only works if no replacements were made. When replacements have been made Hyperlinks grey 2 stays in the swatch. And if you ran the script again in which a replacement was made, it would make Hyperlinks grey 3 etc etc.
    So... do you have any further tricks up your sleeve?
    Thanks again for you help so far.
    With kind regards
    Simon

  • HOW can I change Indesign's default 'New color Swatch'?

    It always comes up as 100C, 100M, 100Y, 100B and I usually have to drag all the sliders down to zero. BLACK in particular is the one that bugs me because a new color swatch is NEVER going to have 100% black unless you want a black swatch - you get a black swatch with every document whether you want it or not so what's the point?

    You new swatch will start with whatever the definition is of the currently highlighted swatch in the panel.

  • How do I input a specific color value for a shape?

    I've been trying to figure out why I cannot input a specific color that I want for a shape. I'm not just choosing a color that looks nice, I'm trying to match it to a solid color in the next clip. Ive tried to use the eye dropper to get the color from the next clip but I cannot copy anything outside of the color pallete provided. I know the value of the color (from 0-255 it's R:191, G:211, B:217) but all FCPX has is 0 - 1, which is some other kind of color value system I've never seen before. Does anyone know how I can put that specific color value into the shape generator?

    Click the color swatch to open the Apple color picker. This is common to all Mac apps.
    Click the second tab for color sliders. Change the popup to RGB.

Maybe you are looking for