Creating spot color in Illustrator CS4 js

Hi,
I need to create spot color in Illustrator CS4 with js, with assigned name and color values. Here what I have:
myColor = myDoc.spots.add({name:"FOIL", colorValue:[10, 0, 100, 0]});
But it comes out as process instead of spot and the color is not assigned.
Thank you for your help.
Yulia

the add function has no parameters, you have to add them 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;

Similar Messages

  • Creating Spot color in InDesign CS4, js

    Hi,
    I have this code:
    try{
    myColor = myDoc.colors.item("EMBOSS");
    myName = myColor.name;
    catch (e){
    myColor = myDoc.colors.add({name:"EMBOSS", model:ColorModel.SPOT,
    colorValue:[100, 0, 0, 0]});
    But the color created still process. How do I change it to spot color.
    Thank you.

    Never mind, it's working. I just had old colors still not deleted.

  • Please help me how to take the "Spot Color" in illustrator?

    Hi,
    Please help me how to take the "spot color in illustrator CS" using vb script (or) java script.
    Regards,
    Prabudass E.

    Prabudass,<br /><br />If you are just wanting to see if the illustrator file uses spot colors - run the Delete Unused Panel items from the default actions. then view the swatch palette in small or large List View. The color names that have a square containing a gray circle (spot) to the right of their color names are spot colors. <br /><br />The following will get the spot color name of an existing swatch named "Color1" and change it to "Nicks Swatch" and will assign the CMYK values stated.<br /><br />if (app.documents.length > 0){<br />var swatches = app.activeDocument.spots;<br />for(i=0;i<swatches.length;i++){ var currSwatch = swatches[i]; if(currSwatch.name == "Color1")<br />{currSwatch.name = "Nicks Swatch";<br />     var newColor = new CMYKColor(); <br />     newColor.cyan = 35; newColor.magenta = 0; <br />     newColor.yellow = 50; <br />     newColor.black = 0; <br />     currSwatch.color = newColor; } }}<br /><br />When this script has run the swatch palette will not immediately reflect the changes to the swatch name until you double click on a swatch and click OK or Cancel in the Edit Swatch dialog.<br /><br />I hope that I have understood your question correctly and that these responses are helpful.<br /><br />Good Luck<br /><br />Nick

  • How to create unique shapes in Illustrator CS4

    First off....
    I am new to the Adobe suite of applications and also new to owning a Macbook Pro. I have been using a design program for Windows for many years.
    I would like to master the creation and manipulation of shapes using Illustrator CS4.
    As one example, how would I create the following:
    I want to end up with a shape that is similar to one-quarter of a full moon.
    Using my Windows program (not an Adobe product), I would create a line using a line tool, and then I would be able to convert that line to a curve using a shape tool, which would enable me to drag from the midpoint of the line and have it become an arc. Then, while still using the shape tool, I could click once to select one of the endpoint nodes to then click on an "auto-close" option which would add a straight-line edge to close the shape for outline and fill purposes (so one side of the shape is straight at this point and the other side is curved). Using the shape tool, I would double-click near the midpoint of the straight edge to add a new node to the shape, and then I would use the "convert to curve" option from within the shape tool to be able to drag this straight side towards the curved side to end up with the quarter-moon shape as desired.
    How would I make this sort of shape using Illustrator, and as a general question for learning, how can I learn all about how to put lines in the design space for purposes of joining these lines, curving any part of one or more lines and then filling or outlining the finished shape made from joined lines?

    > and as a general question for learning, how can I learn all about how to put lines in the design space for purposes of joining these lines, curving any part of one or more lines and then filling or outlining the finished shape made from joined lines?
    Well, you can read the documentation. That will be much more thorough and methodical than asking a random series of "how do I..." questions in a user forum. And it will take you
    a lot less time.
    > Using my Windows program (not an Adobe product)
    You can say the name. If there's actually anyone here who doesn't know other drawing programs exist, well, they
    need to. Your description sounds like Xara Xtreme.
    > I want to end up with a shape that is similar to one-quarter of a full moon..create a line...convert that line to a curve...drag from the midpoint of the line and have it become an arc...select one of the endpoint nodes... "auto-close"...double-click near the midpoint of the straight edge to add a new node..."convert to curve"...drag...
    A similar procedure could be used in just about any vector drawing program that draws cubic Bezier curves. A much quicker procedure could also be used in just about any program, by leveraging the geometric shape tools and path combination commands that are just as ubiquitous:
    1. Draw a circle.
    2. Duplicate the circle.
    3. Overlap the circles partially.
    4. Use one circle to "punch" the other, leaving the difference (the crescent shape).
    Here are two AI-specific differences I note in your description:
    Illustrator can't bend a straght segment by dragging its middle if the straight segment has both its associated curve handles retracted. Dragging such a segment in AI just moves the segment (and its associated anchorPoints).
    Illustrator displays fills on open paths. There is no option to turn off that often unwanted behavior.
    Again, read the manual (the online Help files). It will take you decades to learn the program by asking random questions on the basic use of the tools, location of commands, organization (well, disorganization) scheme of the program, etc., etc.
    JET

  • Create spot color pdf for press

    I work in a small print shop with aging pressroom equipment.  I was able to send directly from my old Mac to the press from InDesign or photoshop and use the color separations dialog.  In order to upgrade Adobe I need to upgrade the Mac and if we do that I loose compatablity with the pressroom.  I will be able to print via pdf to the press room. How do I send files that are not CMYK?  My only thought so far is create ID files with layers for each plate and change everything to black, creating separate pdfs with layers turned off. Is there a better way?  That would mean have two color logos aligned on two layers, etc. which is not ideal. it would also mean creating a true color file for client proofs and then changing it all to black for press,  Again, no ideal.

    PDF/X-4 is an ISO printing standard. It is Adobe's recommendation for all printing.
    Press Quality produces PDF with live transparency, but all colors are (prematurely) converted to a particular CMYK color space with no ICC profiles (spot colors can be preserved depending upon your Ink Manager settings). You are effectively locked into a particular CMYK printing condition. We do not recommend this!
    High Quality Print maintains transparency and some color management. By default it does no color conversions - that's great - but it also doesn't provide all the source profiles by default, only those of placed content that have such profiles associated with them. You could change this to include all color profiles, in which case you are only a small step away from PDF/X-4.
    Again, we most strongly recommend PDF/X-4.
              - Dov

  • Converting CMYK to Spot Color (InDesign/Illustrator)

    I have come across a client that have sent files built in process or CMYK.  We want to make it a 2 color job (2 spot colors) but they have not chosen colors.  What is the most effective way to determine the spot color that matches the CMYK procees within InDesign/Ilustrator.  If it easier to do on one of the 2 programs I am completely open to using either.

    You can do it with Photoshop. Click the Foreground color picker, enter the CMYK values, choose Color Libraries, select the Pantone book you want to reference, and the closest ink will be displayed. Keep in mind that the appearance of CMYK depends on the document's color profile or the Color Settings' CMYK Working space if nothing is open. So, for example US Sheetfed Coated will likely return a different Pantone color than US SWOP Coated.

  • Multiple unknown files created when working in Illustrator CS4 on Windows 7

    Hi there,
    If this has been addressed before, I apologize. I've been googling and searching this forum for a mention of this but haven't been able to find anything.
    Whenever I'm working with a file in Illustrator, multiple unknown files are created. When I close Illustrator or reboot my computer, they remain. They have no file extension and their file size is almost always in the same range. In the screenshot below, each file ranges from 7MB to 7.99MB. I've previously had 100+ 14MB to 14.99MB files created. They can be deleted with no consequence.
    I'm currently on the most recently released Windows 7 build that you can download from Microsoft's Website. This problem seems to only occur with Illustrator.
    Any help would be greatly appreciated. Thank you!

    Either auto-save files from Illustrator or some sort of security backups created by the operating system for indexing purposes while the main file is still open. Check the respective prefs in AI and possibly your indexing settings in W7.
    Mylenium

  • Adobe Illustrator is showing CMYK in spot color document

    Hi,
    I created a PDF using Adobe Illustrator CS4, and although I am only using 2 spot colors, both, Illustrator and Acrobat are showing CMYK plates in the Separations Preview and Output Preview. When I turn off the Spot plates, there is nothing in the document. Could you please help me figure out why is this happenning?
    Thanks

    Every file has CMYK plates in Illustrator or Acrobat. I think you are over-thinking things.
    The important issue is:
    Are there any items actually on the plates??
    Just because there are plates, does not mean those plates contain artwork. Both Illustrator and Acrobat Pro will always indicate CMYK plates, but if there is no CMYK data, they won't print.

  • Created a CYMK vector shape logo in photoshop, now need to change to spot colors HELP!?

    I have created a 3 color logo with vector shapes in photoshop CS6.  The problem is the client wants it to be 3 spot colors rather than CYMK.  Does anyone have a quick and easy way for me to change the individual vector shape layers into various spot colors instead that maintains the vector quality?  I don't want to have to redraw all these shapes.  Help would be VERY appreciated with this.

    Your client is speaking in the language of Illustrator, in which spot colors represent specific, sometimes specialist colours.  I can think of no reason why you can't use Photoshop, but ask the client if they want to provide you with values for the spot colours?   If I understand it correctly, the printer will interpret each of the three spot colours you use, to represent the specific inks/colours the client needs.
    Use spot colors | Adobe Illustrator CC tutorials
    You encounter it sometimes when printing catalogs which contain sponsor logos.  I can remember once getting an incredibly detailed PDF from Canon on how we could use their logo, with warnings of dire consequences if we got it wrong.

  • User can't open a PDF created with Illustrator CS4

    I'm creating a PDF in Illustrator CS4, and I save it on a server where the user can get it. User is not able to open the file, it says acces denied. When I email that same file to several users, they can open it without a problem. I have checked that there's no restrictions on accessibility on the folder or the file. I wonder if it has to do with windows user permissions...
    Our IT guy couldn't find any problem ....
    Any clue?
    G

    Try saving locally and copying to the server.

  • Adobe Acrobat 9 Pro is showing CMYK in spot color document

    Hi,
    I created a PDF using Adobe Illustrator CS4, and although I am only using 2 spot colors, both, Illustrator and Acrobat are showing CMYK plates in the Separations Preview and Output Preview. When I turn off the Spot plates, there is nothing in the document. Could you please help me figure out why is this happenning?
    Thanks

    Acrobat will always show the CMYK framework - even if there's no CMYK in there. You'll also notice that if the file contained RGB, calRGB, LAB etc - it also shows in the Output Preview as CMYK since it's in simulation mode (enough of that for now)!
    You might want to use the SHOW feature in Output Preview or even use a preflight profile to double check ...
    Cheers,
    Jon

  • 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

  • Illustrator CS4 - when I save for web my vectors are pixelated. Help!

    I recently updated to CS4 (I know, I'm still behind the times) but ever since when I 'save for web' my vectors appear pixelated. It seems worse when I want a transparent background. My images are for web and this just won't do. 
    I've read a lot on this and can't seem to fix my problem, but here is what I have tried: Anti-Alias is checked, view > pixel preview, view > overprint preview, object > rasterize, and probably a few other things. If anyone can help me with this issue it would be GREATLY appreciated!! I've attached an image so you can see what I'm talking about. I created this schematic in Illustrator CS4 and saved for web with a transparent background and, as you can see, it appears pixelated everywhere.

    I'm not sure what you're looking for but here is my save for web options. Let me know if you're looking for something else. And thank you for trying to help!!

  • Illustrator CS4 Script

    Hi.
    I am creating a script for Illustrator CS4 using Word VBA.
    When I execute the following code,
    I get an error ,that is "ActiveX component can't create object".
    Set app = CreateObject("Illustrator.Application")
    This code works well on Illustrator CS2, but not on CS4.
    I don't know why this error occured
    Can some give me any advice?
    Best Regard.
    erieru103http://forums.adobe.com/people/erieru103

    Hi.
    My script works by using CreateObject("Illustrator.Application.CS4").
    Thank you for your advice.
    The scripting guide says
    "If you have multiple versions of Illustrator installed on the same machine and use the CreateObject
    method to obtain an application reference, using "Illustrator.Application" creates a reference
    to the latest Illustrator version. To specifically target an earlier version, use a version identifier at the
    end of the string..."
    There was CS3 version installed on my PC.
    Before installing CS4, I have unstalled CS3.
    Why the error occured??
    Best regard.
    erieru103

  • I can't delete a spot color

    Why I can't delete a spot color in Illustrator CC 18.1.0

    Select whatever it is you applied the Spot color to and change it to one of the swatches from the CMYK palette, you could even use Black.  Then, in the flyout ( Color Picker ), use Delete All Unused Colors or similar.  That should remove the Spot color swatch you had designated in the swatch palette.

Maybe you are looking for

  • Application Compatibility - 9.2.0.6 vs. 9.2.0.7

    Hi, I'm a rather newbie so please bear with me. We have an application that was QA'd against Oracle 9.2.0.6. We would like to predict how well our application will run against Oracle 9.2.0.7. That is, were any of the programmatic API's, network proto

  • I recently had to buy a new computer and want to transfer my playlists to my new computer

    I recently had to buy a new computer and want to move my playlists from my old one.  The playlists include both purchased tracks and tracks uploaded from my cd collection.  My old os is Windows XP and my new os is Windows 8 if that is of any relevanc

  • Photo Gallery - mouseover

    I am a complete noob with ajax. I used the photo gallery for a site and would like to change the default click behaviour to a mouseover/mouseout behaviour. Thanks for any help. The code for displaying the gallery looks like this: <div id="thumbContai

  • How to create a motion tween?? :S

    Hii I know it is very easy. Right click>create motion tween>drag to where I would like the text/object to move BUT Sometimes it doesn't seem to work when i drag the text. It will work the first time and for the second text on the frame it won't work.

  • Fusion.FND_Session_MGNT  Exception in JDev 11.1.1.5.0

    Hi .. I am working with ADF and Jdev. I created an EO from a table and setting a column as the history column 'Created by' , threw me the following exception, but the stack trace with the error on getting the user id. I unchecked the history column f