Creation of spot color in Illustrator CS4 js

Hello

I need to create tones in Illustrator CS4 with js, with values assigned to name and color. Here what I have:

myColor = myDoc.spots.add({name:"FOIL", colorValue:[10, 0, 100, 0]});

But it comes out as a process instead of square and the color is not affected.

Thank you for your help.

Yulia

the add function has no parameters, you need to add after

addSpot ('FOIL', 10, 0, 100, 0);

function addSpot(name, c, m, y, k) {
    try {
        swatch = app.activeDocument.swatches[name]; // if swatch exists....
        addSpot (name+='1', c, m, y, k); // ...add 1 to swatch name
    }
    catch (e) {
        var newSpot = app.activeDocument.spots.add();
        newSpot.name = name;

        var newColor = new CMYKColor();
        newColor.cyan = c;
        newColor.magenta = m;
        newColor.yellow = y;
        newColor.black = k;

        newSpot.colorType = ColorModel.SPOT;
        newSpot.color = newColor;
        var newSpotColor = new SpotColor();
        newSpotColor.spot = newSpot;
    }
}

Tags: Illustrator

Similar Questions

  • What is the difference between the PANTONE and spot colors

    I need help understanding a concept. In Illustrator, when I double click a nuance I get shade options. In this example, let's say it's one of the default witnesses. When I change the type of color in "Tones" and click OK, I've created a spot color, Yes? Nuance now has the white border with the triangle in the corner indicating. When I send to a printer they tell me that they need a pantone. I was under the impression that a printer would ink custom of my place and that would be printed as a color. Isn't this true? If spot colors must be Pantone, why the color type drop-down open PANTONE books?

    Can someone please explain what a spot color in Illustrator?

    Thank you

    You cannot arbitrarily mix most of the inks in the real world, and so any custom mix formula is mostly meaningless. It is largely the point here.

    (a) it is much easier for main stores order just the premixed colors

    (b) if they mix custom colors, they still need to use specific base inks which are not only CMYK, since there is no way to obtain certain colors in other

    (c) only using correct formulae can ensure the appropriate density / saturation / brightness

    (d) you need to check against a reference color book / strip

    (e) simple chemical and physical factors prevent some mixes of color work

    This might be explained away constantly, but suffice it to say that, in all my years, I have not met a single printing could have mixed colors custom outside Pantone or here in Germany HKS and other systems. Not to say that it is impossible for some colors, but nobody does anymore.

    Mylenium

  • Cannot delete unused spot colors.

    I can't delete some nuances of unused spot colors in Illustrator. I can also convert them to CMYK process. When I try to remove the color, the trash is grayed out.

    You have all placed files or raster files, which could use the tones? What happens if you try to select all unused from the Swatch Panel flyout?

  • Printing process requires that I use a spot color for black. Recolor work percentages changes.

    Illustrator CS6 (other users on 5)

    Mac OS 10.6

    Screen Shot 2013-08-01 at 2.49.54 PM.png

    I need go of tones of K and K to a task of color and tones of a spot color.

    I use Recolor work because I can't merge into K. The art comes our customers K so we cannot conceive just differently.

    Edit: for clairification. The rectangles on the right are tones of k and k. Rectangles on the left are results after its conversion to a spot color with illustrations to redefine colors. I'm honestly not married to the idea of using Recolor art. I just need a way to move with precision k tones to a place.

    Here you go, the script targets only the PathItems with the default black CMYK [0,0,0, value], locked or hidden objects will be ignored, as well as objects in locked or hidden layers.

    // script.name = cmykBlackToSpotBlack.jsx;
    // script.description = changes art color from standard CMYK Black to an EXISTING Spot swatch named "spot black";
    // script.requirements = an opened document;
    // script.parent = CarlosCanto // 08/07/13;
    // script.elegant = false;
    
    // reference http://forums.adobe.com/thread/1267562?tstart=0
    
    // Note: color values get rounded to the nearest integer, to avoid values like black = 99.99999999999999
    //            Hidden and/or Locked Objects will be ignored, as well as objects in Hidden and/or Locked Layers
    
    #target Illustrator
    
    var idoc = app.activeDocument;
    var pi = idoc.pathItems;
    var sw = idoc.swatches["spot black"];
    var fcounter = 0;
    var scounter = 0;
    
    for (j=0; j		   
  • PANTONE + does not match the previous Pantone spot color chart. I have several customers who are using spot colors in logos etc and now these colors are a mess. Can I get and use the old color for Illustrator books?

    PANTONE + does not match the previous Pantone spot color chart. I have several customers who are using spot colors in logos etc and now these colors are a mess. Can I get and use the old color for Illustrator books?

    Well, the spot color has not changed, but the way they were simulated four-color changed, they now use color management to get to the nearest ink possible task.

    Here is some info:

    https://helpx.Adobe.com/Illustrator/KB/PANTONE-plus.html

  • If an illustrator file has links with spot colors, how can I create PDF files with process colors?

    My file has shades of tones that came with the linked logo, I could not find a way to convert those shades of colors quadri.

    I need to send PDF on a printer with only process colors, I know that the printer can choose to convert spot colors to process when printing with printer within Acrobat Panel, but since we do not print, we need to send files to print ready with process colors only.

    Is there a way or a script to make PDF file generated from Illustrator with process colors only?

    You could try object > flatten transparency and clear colors to preserve overprints and Spot.

    I set the preset high resolution and turn on the preview to see if something dramatic is going to happen.

    After that, you can check the file of color dot in the separations Preview Panel.

  • Where is the cursor color in Illustrator need to do a tint of a spot color?

    Where is the cursor color in Illustrator need to do a tint of a spot color? Can not find it or any reference anywhere?

    Create a global sample (swatch spot) and then you can use a cursor to hue.

  • Illustrator CS4 or CC, effect that allows you to quickly change vector vector colored grayscale?

    In Illustrator CS4, or CC, there is an effect that allows you to quickly change a color vector illustration in a grayscale vector illustration?

    Edit > edit colors >. convert to grayscale

  • Spot color CMYK implemented using linked in Illustrator from Photoshop

    I need to use a black spot on some packaging. The black spot will be a sticker on the top a picture of the product that is made in Photoshop. I created the packaging in Illustrator and you need to import this file, but it must have the intact spot color. So far, I created a PSD with a spot channel, I thought was the answer but Illustrator can't read PSD files with spot channels. Then I taped an earnings per share, but when I import an EPS it shows a white rectangle as opposed to the real work.

    Can someone help me with this? Thank you!!

    Ok. To the CS5 version you must register a DCS 2.0

  • New on Illustrator CS4: How can I change the color of the artboard?

    Hello

    I'm new to Illustrator CS4 and have not been able to find out how to change the color of the artboard. Does anyone know how to do this?

    Thank you.

    With nothing selected, click the configuration Document button in the control bar.  Check the "Simulate paper color" under the Section of transparency. Then click on the white and gray squares and put them in the same color. It will give a color that does not print to the artboard.

    Or...

    Draw a rectangle of the same size as your work plan. Place it on the bottom most layer and lock it so it does not move.

  • Creation of shades of colors in Illustrator

    I want to create the halftone color with Adobe Illustrator cc 2015 for a look of comic strip. Why the black and white gradient turns into a halftone color which is the color? Shouldn't be black and white? In addition, what tool is better to use shades of color, Adobe Illustrator or Adobe Photoshop?

    Thank you

    2016-06-30_9-08-00.png

    because in RGB color mode represents fire. all colors are red, green and blue. in CMYK mode, it represents the inks. This black can consist of a single black ink or a combination of the other inks. in your case, it seems as if it was only in black.

  • Creation of production files with spot color layered screens

    I'm the task of recreating a job 2 colors (cyan and magenta) , after a thorough inspection of the printed sample submitted with a magnifying glass, magnifying glass, I see a certain part is dark purple as the cyan and magenta used on-site are layered in this area.

    How should I design the production folder so that it is clear that the 2 plates that will be created from said file will result in plates, which have screens of the dowry of two colors in one place so that when it is used the press to produce the purple shadow combined?

    Thank you

    Mathias (master of convolutedly long sentences)

    With cyan and magenta, only it isn't a problem. Sure just your design contains no black or yellow. Use the panels of color and color chart to produce and store mixtures of cyan and magenta to color your design elements.

    But in your title, you say 'spot color screens' which is a little more complex because Illie stores not mixtures of spot colors in the color chart.

    So you will have to work with overprints and saw the overlay turned on while you are working.

    The other possibility is to work in false color, using magenta saying for red and cyan for blue spot.

    Nothing prevents you to work this way and I did occasionally, but you will need to carefully explain what you do to your printer, and is not a bad idea to add a color legend to your work to make sure that your false color is printed in tones right.

  • A way to determine where they use spot colors in color?

    Hello

    Is it possible to determine where a spot color is used in your art?

    I know in InDesign, you can open the separation Preview Panel and cut the rest of the colors.  Is there a method similar to Illustrator?

    Thank you

    Ed

    Since CS4 there.  What version do you use?

    If cs3 or below, save in pdf format and open in acrobat (pro, no player) to see the separations.

  • using transparency multiply with spot colors

    Does anyone know if spot colors can be used with transparency are multiplying in illustrator CC. I want to create a third color of pieces that overlap / two forms of spot color printing?

    Not agree with John, you just have to watch you preview separations to get your answer. Here the 7691 dark blue gradient is on multiply on 7688 blue light, so we get more degraded rich e, rather than the color is dull where the 2 colors meet.

    At the same appearance with CMYK, showing that Nothing's going to CMYK.

    Nothing else in CMYK mode, except for the black

  • Library spot colors?

    Hello

    When you use the libraries in Illustrator CC 2014 (version 1.1) Panel, whenever I click on 'Add the fill color' when using a spot for example color Pantone 2756C appears in the color library 60 # 262 and, when used in a document is converted in the process (C - 100_ %, M-92.77%, Y - 32_ %, K-17.15%).

    Is it possible to keep it as a spot color when adding to the CC library?

    Any help would be appreciated.

    Libraries.jpg

    Thank you

    Simon

    Currently, no tones are working in the library.

Maybe you are looking for

  • Safari

    Hi, Im using a mini mack (10.10.5) with double monitors and have Safari in my dock. When I right click on Safari there are 7 safari open windows that say Top Sites, that do I delete them so I don't have 1 open all the time. Thank you Martin

  • HP Pavilion Notebook PC g6: MUTE button light order 10 Windows Installer of workstation

    Post install Windows 10 working stopped button light MUTE. Button still works, just does not shine. I saw old Questions and answer to this anomaly, but for different models and Audio Drivers (Realtek HD Audio install). I think this model has ' AMD hi

  • How are added to the HP Officejet Pro 8600 printing solution Center

    The center of printing solutions shows my Photosmart C5580.  No idea how to add an OfficeJet Pro 8600?

  • Remove password SYSKEY startup

    I had activated the SYSKEY password at startup in windows XP Professional. I forgot my password SYSKEY and now I am unable to log - on my windows XP Professional. I want to remove password SYSKEY, please help me. K M JAI Support general (INDIA)

  • Windows Aero interface

    HOW Windows Aero interface is turned on / off IN VISTA PLEASE STEP BY STEP GUIDE