Move a Spot color to a layer

I am very new to this, but am excited to unlock the power of scripting Adobe products. I have search through the forum for a similar issue but couldn't quite find the answer. This is my problem:
I am trying to grab specific spot colors and move them to separate layers for our cutting software. In this case I am trying to grab "perimeter cut" and move it to a layer called "tc 1"
I get the following error when I try to run the script.
#target Illustrator
var idoc = app.activeDocument;
var ipath = idoc.pathItems;
    if (ipath.typename == "SpotColor") {
        if (ipath.spot.name == "perimeter cut") {
                    ipath.move(tc 1, ElementPlacement.PLACEATBEGINNING).

Sure, try this alternative (sorry for not checking the previous script before posting):
#target Illustrator
var doc = app.activeDocument;
var paths = doc.pathItems;
var destLayer = doc.layers.getByName ("tc 1");
var spotItems = new Array();
for (var g=0; g<paths.length;g++){
    if (paths[g].fillColor.typename == "SpotColor" && paths[g].fillColor.spot.name == "perimeter cut") {
        spotItems.push(paths[g]);
for (g=0; g<spotItems.length;g++){
     spotItems[g].move(destLayer, ElementPlacement.PLACEATBEGINNING);

Similar Messages

  • Overprint preview spot colors

    Hey All,
    one of my collegues brought something to my attention and we are wondering why Illustrator does it. Here is the situation.
    We create two layers. Layer one contains some objects filled with process colors.
    The second layer contains an object filled with a spot color and the layer is set to non-printing.
    When you open the separations panel and turn on overprint preview it seems that the spot color is converted (temporarily) to process. When you turn of the spot plate the object still show and starts to disappear when you turn of the process plates.
    The spot object does however disappear when it's plate is hidden once it's layer is set to printing.
    Why does Illustrator do this?
    We expect the spot object to disappear when the plate is turned off in any situation.

    You are right experiencing the same here, and agree with you that the spot should not show in cmyk when the layer is set to not print. 
    Turn off show (or the visibility eyeball) for the spot layer if this bothers you.
    Looks like a bug, I believe have originally seen many versions ago, and never been resolved cause not many people asked to get this fixed.

  • After saving a PDF with a Spot UV layer, all of the highlights and detail under the spot color are flattened in Overprint Preview. What am I missing here?

    I'm attempting to print some business cards with a Spot UV coating. I have a layer above the artwork with a spot color (set to green per the printer's request). Underneath is a logo, essentially a red circle with some highlights and depth. My issue is that, after exporting a PDF, all of the highlights and detail on the red circle disappear in Overprint Preview (it's there when I hide the Spot UV layer, but missing when I hide the Spot Color). What can I do to retain that information?
    Thanks!

    Let me know if you need different screen grabs. Thanks in advance.

  • IMPOSSIBLE TO SELECT SPOT COLOR LAYER AS I DID WITH CS2

    Hello, I'm a french user (sorry for my english). I'm used to proceed with jobs that are using PSD files with spot colors layers. With AI CS2,
    a PSD file with spot color layer I was able to select each layer to change its color, its transparency or its order. With CS4, all spot channels are embedded in a single layer. It's really a problem for me. May somebody help me. Thank you. Pierre-Yves

    Yes, in CS4 it is all one layer in CS 5 it is on different layers if they are spot channels.
    This is CS 5 so you have to either go back or upgrade to CS 5 if this is an issue.

  • Spot colors now missing in PDF!

    Issue: spot color channel not showing up in Photoshop generated PDFs. Worked previously, this just started last week.
    Workflow: receive PDF ads from client via email. Open file, usually Jpg, Tiff or PDF, in photoshop CS4. save as PSD, with new name, grayscale, 300 dpi for newspaper printing.
    some ads  get spot/PMS color added.  add spot channel. move art from grayscale layer to spot color layer. save file as PSD with spot colors. (for import to InDesign.) Photoshop file looks fine on screen.
    for Client proof, Save As "ad proof", turn OFF photoshop editing, so client does not change ad. Turn ON "as a copy", "spot color" and "view PDF".
    It worked fine for the past year, now, NOT. The PMS spot channel is not showing on the photoshop generated PDF, If I import the psd file into Indesign, and generate the PDF 1x version, same thing.
    Spent 7 hours on phone with tech support, they did not have a clue as to why or what was going on. I have uninstalled, deleted everything Adobe, and spent 7 hours reinstalling CS4.
    Newly installed Photoshop not working, same issue. Print to PDF using PDF 9.0 "printer"  not working.
    HELP!

    I just had a very similar problem using CS5 Master Suite.
    I had a CMYK job (a business card) that needed converting into a spot colour job.
    There was a logo in CMYK that was red, blue and black, so I created 3 new channels in Photoshop and separated the colours into each specific channel. I saved the logo as a Tiff file and imported the logo file into Indesign. On-screen it looked fine (black, red, blue) and I could see the new spot colours had imported into the swatches correctly. However, when I exported the Indesign file as a PDF, one of the spot colours was missing (the red one).
    So I changed the logo file (Tiff) into a Photoshop file hoping it would fix the bug, but no such luck.
    Out of interest, I duplicated the Red channel and repeated my procedure, this time when I made the PDF the blue channel that was there previously disappeared!!!
    When I checked the forum and heard that the poor person spent 7 hours with tech support, I thought bugger that, I just saved each channel as a separate Tiff file, dropped the black file onto the logo so that it was in place, then did a Step&Repeat (ie copied a duplicate of the logo ontop of itself), then dropped the new Tiff file on top of that and changed its colour to Red in the Swatches, and did the same with the blue file.
    Now I have a PDF file that shows all the different spot colours and I can go home on time tonight.
    I could do all this stuff on CS1. The only 'improvements' I have found in CS5 so far is that my beloved 'Variations' option in Photoshop has now disappeared because they couldn't be bothered to create this feature in 64 bit.

  • Is it possible to change the color of a layer of a Customs CSS from an External Style sheet?

    Hi,
    I have sucessfully link External .css  file to my HTML page and able to change the font size of the headlines and the paragraph.
    What I am not able to do is to ADD the color my Custom CSS from the External sheet.  I have difined the color attribute as a 'Advance'
    and gave it the same name "#bigwraper" that is has in my HTML file.
    Attached is the color outline of my 'Blank Layout' with colors?
    Thank you.
    Dreamer101.1

    Hi Murray,
    I am building a web site on which the entire content would be changed at least daily. The website would have similar design to www.Helium.com
    The page will have CCS layout boxes in which different content would  be pasted.
    To re-phrase my question:  I want to know how to change the color of a layer from an external style sheet?
    Because my home page 'Sidebar' and colors would be the same for all page, only the content of different pages would be different.  If I want to change a color of my web side pages, I need to learn how to do it in one spot through an External Style Sheet.
    I am amble to link my external style sheet and to change H1 tag and to give it different colors. But I was not sucess with change the color of a layer on which my content sits around.
    I took out the color from my HTML page and gave the same name to the layer in my External Style Sheet with the same color.
    Hope my question and the reason I was able to clarify.
    cheers,
    Dreamer101.1

  • Dear Spot Color Printing Gods......... Please Help Me!

    Ok so here is my story...
    I have been doing graphic design and 3D work for about 7 years. I have NEVER worked in print before, and no NOTHING of color separation or spot color, etc... I am learning all this right now on the fly for my new job, and its not going well.  I was hired and expected to hit the ground running, even though I made it clear I did not have any screen printing experience. (I was mainly hired to help with web design) I have had some mistakes doing the color separation (not 4 color) and its costing the printer money to see if I did it wrong or not.  The printer has no experience with the software (and only speaks English fairly well), nor does my boss know the software, but they both know how its SUPPOSED to look, and they are getting impatient.. Needless to say, I have to turn to the internet for help, so please be gentle with me not knowing much...
    SO....Im a PC user working on a Mac & Illustrator Cs3(I know Mac fairly well).  I have learned the basics pretty fast for screen printing.  The printer is using spot colors only.  After I get the Illustrator file (yes its vector), I delete all swatches except the "Pantone Solid Coated" colors used in the art - or I have to add them from the Solid Coated color book.  After that, I would separate the colors by 1) Duplicating the image however many times that there are colors. (So a splat of soup has 3 colors, I duplicate it 3 times with register marks)  2) I remove all the color except the one Im trying to show. (Im showing the green peas, so I remove the red and yellow colors from the other objects) 3) then I make what the printer calls the "Flash" (the white undertone that the paint adheres to on the garment)  I make this by taking the art, and reducing the size to 1pt smaller.  Once all the colors are seperated, I make each color 100% black, convert the image to grayscale and THEN Im done.  Problems I have been running into have been registration marks somehow not lining up and some colors do not end up 100% spot tones.. One other wierd thing is when I convert to grayscale on the Mac, the art work retains its color on the screen.  When I tried to do that at home on my PC, the artwork turns gray????
    WHEW!  So what I am asking for is a fast, simple way to color seperate a vector file and then create the flash.  And/or how to create a template that I can reuse, that is ready for me to just drop artwork into for spot color seperation.   I have included an image to show you a project I am working on.  Its an  ice cream spill on a shirt.  I have tried to start a template with reg. marks, and that is what you will see here.  There are 5 colors that I have to specify.  The printer actually told me that I do not need to split up the art work the way I have been, nor do I need to change it to black, and all that I have to do is specify all the colors,(spot colors/100% only) and then the printer does the seperation on the clear film. (it only prints in black)  I was also curious why my PC would change the artwork gray and the Mac does not when converting to grayscale.  I thank you VERY MUCH for even reading this maddness that is my life right now, and hope you can give me some helpful wisdom to assist and lead me on my journey.  The job pays well, and I need the money badly!  Thank you very much for any and all help you can give me!
    ~LiQ

    Some misconceptions evidenced in your post.
    You don't have to use a Pantone library to create spot colors. Pantone is just one brand of spot color definitions and inks intended for offset lithography; not screen printing. You can define any color you want as a Swatch and then specify it as Spot. A Spot color is simply a color that represents an individual ink that will be physically used in the printing process. Therefore, if you want to please your boss:
    1. Get the color chip brochure for the particular brand(s) of screen ink your operation uses.
    2. Open Illustrator. New CMYK document. Delete all the Swatches that can be deleted.
    3. In the Swatches palette, for each color of your screen inks, create a new Swatch. Use the CMYK sliders to make its color match the ink as best you can. Name the swatch according to the name of the actual screen ink (ex: Nazdar_BrilliantBlue). In fact, the ink manufacturer(s) you use may already provide a ready-made Illustrator Swatch Library for their various series of inks. Check their websites to see.
    4. After creating the swatches, save the Library, and/or save the file as a tempate file. Now you'll always have your Spot colors available for new projects.
    Now just draw your design and apply the spot colors to the paths as fills and/or strokes. When you print the file as separations, you'll get a separate print for each spot color used. One of the simplest ways to "proof" (test) this is to "print" as separations to the Adobe PDF virtual printer. That will result in a PDF file that has one grayscale page for each ink in your design. That way, you can check what overprints and what knocks out on screen without wasting time or materials. Once confident everything is right, you can then use the PDF to print the actual film positives.
    One of your swatches should be a spot white for your underprint. ( "Flash" is not actually an ink color. It's a production step in which a dryer semi-dries an imprinted ink before overprinting it with another. You usually flash a white underprint, but you just as often flash any color with significant density that needs to be overprinted with a following color.) Understand, you don't have to make this swatch actually appear white. For example, I often make it a pale magenta just so I can see it on screen when working with it.
    Just because the white underprint is going to be printed underneath the other colors, doesn't mean it has to be layered under your other colors in your Illustrator document. Remember, each ink is going to be printed to its own plate anyway. So it's simpler to just put your white underprint objects on a Layer above the rest of the artwork, and set it to overprint, so that it doesn't knock out the rest of the artwork on layers below it in the stacking order.
    Assuming the white underprint has to underprint all the other colors, creating the white underprint should be the near-last step. It's simply a matter of duplicating the colored artwork objects, moving them to the Underprint layer, filling/stroking them with the spot white color and (for efficiency) merging them into as few paths as possible. The Merge or Union Pathfinder commands are typically used for that.
    JET

  • Converting CYMK to spot color?

    Alright, i just read the 'how to get help quickly', and will attempt to not let my panic show through too much:
    I designed graphics to go into my college's literary magazine. I used only two colors: brown and green (8dc63f and 603913). However, last week he informed us (the magazine production people) that RGB wasn't acceptable, since he was going to print in something called 'spot color'. Never heard of it before, but after reasearching, I think I have a vague grasp on it: basically instead of CYMK printing process, he's just going to have two plates, one with each color, and stamp them on the pages (like screen printing). That's fine, but I don't understand how it relates to my files. So we sent the psd files to the printer's "photoshop specialist" and then yesterday I was informed that there was no way to seperate the colors into pantone plates, and that either the book was now going to be blank (thankfully the cover is going to be printed seperately in CYMK so that's fine), or we could use clipart (!!thanks for discrediting a semester of my work), or I could learn to use illustrator and redesign the whole book by monday.
    I panic, obviuosly, because after downloading the trial version of illustrator I realized that it's actually nothing like working in photoshop (where's my tablet sensitivity? this is NOTHING like 'illustrating'), and at the end of last night's terror, this is all i could produce:  http://img576.imageshack.us/img576/2993/illustrator.jpg
    Now for reference, the image I originally made in photoshop looks like this (when placed on a brown background to simulate paper): http://img829.imageshack.us/img829/7015/photoshopf.jpg
    I am very confused, because I don't understand why the printing company can seperate the illustrator file into two color plates, but not the photoshop file. Both use the same colors (Pantone 375 and Pantone 161 C, I've learned). I have no clue how to save ANYTHING in 'spot format', the only difference between photoshop and illustrator is that I can click on the pantone swatch in illustrator.
    Obviously I'm ignorant and confused, and I appologise for that, since it only makes this situation worse (who knows if I'm using the right terminology).
    tl;dr:
    I have a whole bunch of psd files that need to be converted to something called 'spot color format'
    the images are graphics to be placed in an indesign file, not to be printed on their own, so really, they have to be in the spot color format.
    Is there any way in reality to maintain the quality of these images and convert them into 'spot color format'?
    I'm still trying to understand illustrator (I'm really a painter, not a designer -- wtf is a vector), but would love to convert the psd files I already have into something usable. the printer people didn't know how, I don't know how (or even understand the issue), but maybe you will?

    I tried this with the image you posted, so I can describe in detail the steps.
    From the image menu choose Duplicate to keep the original for reference.
    From the Image menu choose Mode > CMYK Color.
    In the Channels palette, delete (by dragging to the trash there) all channels except the Yellow and Black channels.
    Double click the icon of the Black channel and in the window that opens click on the color swatch, then in the next window that opens click the Color Libraries button, and when the next window opens type quickly on your keyboard 161, make sure the desired color is picked and press OK on this and previous window to apply.
    Repeat the same for the Yellow channel but choose 375.
    Select the 161 channel (former Black) and press Ctrl + L to open Levels. Drag the middle arrow of Input Levels referring to the original to get similar darkness (to me around 0.30 looks similar shade). Press OK to apply and close.
    Hold Ctrl and click on the icon of the 375 (former Yellow) channel to load its shading as a selection, and press Ctrl + Shift + I to invert the selection.
    Make sure the 161 (former Black) channel is selected and press Ctrl + L to open Levels again. Move the right (white) arrow of the Output Levels (at the bottom) until the background matches in brightness the background of the original (to me 150 looks similar).
    That's basically it based on my quick try with your image. This example should help you understand the basic idea and from there if you like, you can further play with the image if you feel you can make it any better with these two colors.
    Regarding Spot colors, the idea is that a printing press uses 4 color plates (in Photoshop represented as the four CMYK channels when the image is in CMYK color mode) to print all possible process colors by mixing these four colors (inks). Spot colors are pure inks in cans and each spot color (ink) requires its own plate. Sometimes people print 4 process color plus an additional spot color for achieving a special effect like gold ink or pure corporate color to ensure color consistency which may not be as good when using the four colors mix. But very often, spot colors are used for printing with less than 4 plates to save money and sometimes for artistic effect with special inks.
    Following the above example converts the CMYK document to Multichannel Color mode and you have only a few file formats available for saving in the Save As options. From these, practical ones are DCS and PSD files. Both are OK for printing but you may want to confirm with your printer. However if you want to place Multichannel image in programs like Illustrator or inDesign you have to use DCS.

  • Spot colors not being saved.

    In CS6 I have been having random situations where the spot color channels are not saved when saving a .psd, regardless of the settings in the save dialog box. Any idea of why this might be happening? I've even had the program dump the spot colors from a multichannel document today while trying to find a workaround. I considered converting the spot colors to alpha channels as well, but there doesn't seem to be an obvious way to do that. Odd, as alpha to spot color conversion is just a radio button away. Any help would be appreciated, thanks!

    This is on an Intel I Mac running Maverics 10.91 (lots of problems with that).
    These are RGD documents at 8 bits per channel. The layers have always been merged at this point.
    The spot colors involved are mostly book colors (Pantone Solid coated), though the program drops custom spot colors (u-white in the screen shot) as well on the occasions when it happens. This began occuring with CS6. I have noted in the forums that the book definitions may have changed, I am revising my actions to move to the current book definitions, though why this would affect a user defined spot color is unclear.In the cases where this occurs, only the "Art Mask" channel would be saved (it's an alpha).

  • Can't apply tint or spot color to graphic

    I have a grayscale, 1-layer graphic in a layout that will not let me apply a tint or spot color.
    I must be missing something basic here.
    ID CS2

    If there's any transparency, it won't work.
    Otherwise, make sure you're doing this properly.
    Select the graphic with the direct selection tool (white arrow) and then
    apply the color or
    Drag the color from the swatches panel onto the graphic.
    Bob

  • Spot colors to be turned on/off

    10.6.3. CS4. I have created a mask in a spot color and want to be able to turn it off and on in InDesign.
    What method would you use?
    I added a new spot color and used it to crate the maske i a new layer. It seems that I don't need to choose Multichannelmode?
    When I place the image in InDesign I can see in Separation Preview that the spotcolor is ok, but I cannot place it on a special layer together with other similar spot color masks. What would be the best way to acomplish that?
    I thought I could place the image twice and use the obect layer option, but I cannot as it is a channel, not simply a layer.
    :-) Nina Storm

    Hmmm - no. I haved asked about a similar issue, I think I know the possibilities, but I will try.
    In PhotoShop I haven't uset spot or pantone together with colors since the .eps or DCS2 days.
    Do you know if DCS2 is still a posibility if you use multicolors?
    :-) Nina Storm

  • How to ouput a fine WITHOUT the spot color in it.

    I made a file with a spot uv.  My graphics came from photoshop and i made my spot uv as a channel.  Now I am in In design I have my layout and my finished brochure.  I have the copy to send to the printer.  Now i need a copy to send online to the web.  I can not find a way to output it only showing cmyk.  No matter what I try the spout uv shade stays with my pdf i output.  I can see it by clciking off the eyeball wit the spot uv color but there is no way that I can find to output it without that color in it.  I need help I am stuck.

    If i go to ink manager and convert it to process it will still be in the graphic.  I want to be able to export a pdf version of my brochure.  1 version for the printer that would have the spot uv.  I can do this no problem.  The other version would be for the web.  I do not want the uv color showing up over all my graphics.  I just want the cmyk to show through.  To create my spot color i read a bunch of tutirals on the web they all had me doing it rhough a channel.  I can see now how having it as a layer would help my sitation if I had dont that to start.  At this time I would have to start over to do it that way.  There must be a way from indesign or acrobat to turn off a plate/color and export or save a version without it.

  • How do I color an entire layer?

    G'day.
    I'm new to scripting illustrator, and I'd like to be able to set the color of everything on a layer to red ( or any other color). Is it possible?
    I've tried selecting all with the GUI, and setting the default stroke color while the layer is selected, but that process adds extra width to the image parts, and only works on some parts.
    Regards
    Brian

    The above JavaScript actually loops thru page items not path items (unless you only have path items on the page)
    You did not state any particular language to do this in but were using AppleScript in another post (I think) so here's something that should get you started. This is only for path items only but you could include other elements of your layer.
    BTW in the GUI you could just draw a big rectangle behind all your layer items then select all and 'make opacity mask'
    I can't get this to work in script even by calling on an action.
    tell application "Adobe Illustrator"
    activate
    set Doc_Ref to the current document
    tell Doc_Ref
    set Swatch_Ref to index of swatch named "Mars Red"
    -- See if we have used global color for tints
    if class of color of swatch Swatch_Ref = spot color info then
    set Global_Color to true
    else
    set Global_Color to false
    end if
    repeat with i from 1 to count of path items of layer "Marks"
    set This_Path_Item to path item i of layer "Marks"
    if filled of This_Path_Item = true then
    -- See if we have used global color for tints
    if class of fill color of This_Path_Item = spot color info and Global_Color = true then
    set This_Fill_Tint to tint of fill color of This_Path_Item
    set fill color of This_Path_Item to color of swatch Swatch_Ref
    set tint of fill color of This_Path_Item to This_Fill_Tint
    else
    set fill color of This_Path_Item to color of swatch Swatch_Ref
    end if
    end if
    if stroked of This_Path_Item = true then
    -- See if we have used global color for tints
    if class of stroke color of This_Path_Item = spot color info and Global_Color = true then
    set This_Stroke_Tint to tint of stroke color of This_Path_Item
    set stroke color of This_Path_Item to color of swatch Swatch_Ref
    set tint of stroke color of This_Path_Item to This_Stroke_Tint
    else
    set stroke color of This_Path_Item to color of swatch Swatch_Ref
    end if
    end if
    end repeat
    end tell
    end tell

  • Is it possible to create a gradient mesh object with 2 spot colors which separates & prints as a 2 color print job?

    I have a gradient mesh object which uses 2 spot color values (including some tints of those 2 colours) which I'd like to print as a 2 color print job. Is this possible? If not, any suggestions as to how I should proceed? The print job MUST be 2 color. Ideally I don't want to use raster objects but if I have to would appreciate any advice on the easiest way to transform my 2 color mesh object into a matching duotone raster object.

    I'd really say it's that PPD with the new n-space features of CS3 and CS4. If I use your PPD I get the same shoddy results you do with the postscript file. In fact, Acrobat Distiller errors with a log...
    <PDFX ISO="15930-1:2001" COMPLIANT="false">
    PDF/X Compliance Report
    1.  Color
       The following pages are separated plates:
          Page 1, Occurrences: 1
          Page 2, Occurrences: 1
          Page 3, Occurrences: 1
          Page 4, Occurrences: 1
       Violation.  The use of %%PlateColor is not permitted and was found in the document.  Occurrences: 7
       Violations: The total found in this section was 11.
    2.  Summary
       Warnings: The total found in this document was 0.
       Violations: The total found in this document was 11.
       This document does not pass PDF/X-1a:2001 compliance checks.
    </PDFX>
    %%[ Warning: Did not pass PDF/X compliance tests. No PDF file produced. ] %%
    If I use your PPD, print your AI file to a postscript file, then simply open the resulting Postscript file with AICS4, I see the same bad results that I showed in the movie. I think the PPD can't handle the new method of breaking out spots in gradients. Just to test this theory... try a different PPD and see if that works, at least to show the seps properly.

  • Problems with spots colors and printing

    Hello everyone,
    I am currently working on a business card for a client.  The design calls for white text with an inner shadow to sit above a bar with a gradient. One of the colors in the gradient is reflex blue. When I export the file to a pdf and try to print it the text box fills with white and the graident bar changes colors and a portion of it becomes solid. I can fix the problem by printing the pdf as an image or removing the reflex blue and substituing it for another dark blue.  However there really isn't a close match in cymk to Reflex Blue C. Is there a way I could continue using reflex blue ( incidentally that is one of the company colors) without these short of issues? If it helps I am using Indesign cs5,  Acrobat X, Mac OS 10.6.8, using Creo Rip Software and Printing on a Xerox 700 digital press. 

    I tried putting the text on another layer but it didn't change anything. The only solution that has worked so far is changing the spot color, reflex blue, to a cmyk color. Here is a screen shot of the problem and some of my export options
    Hopfully that helps. In a realted issue, is there a way of lowering the transperancy of a graphic that uses spot colors without changing the color? Once again the problem is reflex blue. When I lower the transparacy the color turns purplish.  Thanks for the help

Maybe you are looking for