Illustrator Scripting :: Move A Spot Color To A Layer?

Oct 10, 2013

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).
}
}

View 5 Replies


ADVERTISEMENT

Illustrator Scripting :: How To Find Out That Art Item Has Spot Color

Jul 4, 2012

I have a number of art items on a document, some of them are filled with spot colors and some of them are with process color.Is there any method by which I can find out which color type(spot or process) is applied to the selected art item?

View 4 Replies View Related

Illustrator Scripting :: Color Value Of Spot Colors Cannot Be Adjusted Via JavaScript?

Jul 17, 2012

color value of spot colors cannot be adjusted via javascript?

View 5 Replies View Related

Illustrator Scripting :: Getting Used Spot Colors In Color Legend On MAC JS Or Applescript

Mar 23, 2012

I've been looking around for a script that will take the used spot colors in a document and place them in a predetermined spot. I've came across several posts about this, such as the COLOR CHIPPER although I think it's focus was on swatches. What is confusing is the part of making New CMYKColor or RGB or if I even need to do that. I've looked at other posts and the Adobe docs, but none seem to work. Adding the text isn't difficult, it's getting these spot colors to reflect what's in the document that is. From what I'm seeing now:
 
I may have to use some other type of script such as Applescript to get rid of unused swatches first throught the actions panel, but I'm not sure.I could possibly use the getByName method to call out the specific rectangle and the and relative callout with the appropriate color instead of having to position everytime. 

View 9 Replies View Related

Illustrator Scripting :: Adding Spot Color Using JavaScript - TRY CATCH Not Working

Mar 6, 2014

I am trying to add spot color in illustrator using javascript, TRY CATCH is not woking, it is adding again and again same color value with name of "spot color 1" and "spot color 2" ... 
 
try {
var myDoc = app.activeDocument;
var spotName = "FINISHING";
var spot = myDoc.spots.add();
 
[Code] .......

View 1 Replies View Related

Illustrator Scripting :: Can Tint Be Adjusted For Items On Page That Have Spot Color Applied

Sep 27, 2012

I have been trying to mess with and target "tints" via javascript but either I am not understanding something or it cant be targeted as I had hoped, so I am looking for direction and guidance. I have a spot color assigned in the color swatches palette, and have drawn a few boxes on the page using this spot swatch. I then try to alter the tint using JS code.
 
sel[i].tint = // whatever number
alert(sel[i].tint) // This alerts fine
 
The alert shows a change taking place but it never gets applied to the item, the actual item never gets changed. I know things are properly targeted as I can change other attributes fine. When I look in the JS documentation it just shows for when creating a new spot, not for ones that already exist on items, I cant seem to find an example otherwise.
 
Can tint be adjusted for items on the page that have a spot color applied?

View 8 Replies View Related

Illustrator Scripting :: Move PageItems From One Layer To Another?

Dec 19, 2012

I am working on a script to standardize layers and I need to move all the pageItems from a layer called "PART_NUMBER" to a layer named "STATIC".
 
following code at the arrow...
 
I am using "test" to troubleshoot the move.
 
standardizeLayerNames() // This function verifies that the Layer names conform to the standard Layer names.
function standardizeLayerNames()      {  
var myDoc7=app.activeDocument  
var myLayerCount7 = myDoc7.layers.length

[Code] ........

View 4 Replies View Related

Illustrator Scripting :: Copy / Move And Paste Into Different Layer

Nov 12, 2013

I have a script that measures the repeat interval and gap between print impressions printed using a print cylinder (for the production team to know which print cylinders to use, and what to expect once it prints, when looking at the proof sheet). Basically it just measures the distance from the beginning of one print impression to the beginning of the next (these are printed with a cylinder, so every time the cylinder rotates a new print impression happens) as well as the distance in between prints. That part works great.
 
In order to get these meaurements, Illustrator is measuring the distance from a zero point on the artboard to the left side of a marker I made called "repeat", and it is assigned a variable called rawRepeat. What I'd like to do is have the script take that rawRepeat value and use it to move a copy of the print impression to the right by exactly that variable amount and paste it beneath the marker called "repeat". I have been doing this part manually, but haven't been able to figure out how to get illustrator to do this for me.
 
Here's the script I am using:
 
var myDocument = app.activeDocument;
var selectedObject = myDocument.selection;
var activeLayer = app.activeDocument.activeLayer;
var layerName = activeLayer.name;
activeLayer.name = "plate";
 
[Code] ..... 

View 11 Replies View Related

Illustrator Scripting :: CS5 - Action Or Script To Move Selection To Specified Layer?

May 17, 2013

I have a piece of art on "Layer 1" that i need to shrink and duplicate to "Layer 2". The two layers are always named the same. I'm working in CS5.

View 6 Replies View Related

Illustrator Scripting :: Change Color Of Text Frames On Active Layer?

Mar 3, 2013

Okay my script to change text frame color changes the color of all text frames hidden or not.

I need it to only change visible text frames.
 
if ( app.documents.length > 0 ) {
newCMYKColor = new CMYKColor();
newCMYKColor.black = 0;
newCMYKColor.cyan = 0;
newCMYKColor.magenta = 0;
newCMYKColor.yellow = 0;
 
[Code]...
 
How to go about making it only change the color of text frames on the active layer? In the final script I will hide all other layers so if it could be done by a visible attribute more easily that would work just as well.

View 4 Replies View Related

Illustrator Scripting :: Adding Custom Spot Colors

Dec 2, 2013

I am trying to create a script that adds custom spot colours to the swatch pallet. I've manage to put together something that works (I've adapted an existing script), but the colours added are not spots, just CMYK colour swatches.Also, I need the script not to error if the swatch already exists.
 
//Add Custom Swatches
var docRef = app.activeDocument;
function cmykColor(c, m, y, k) {
     var newCMYK = new CMYKColor();
     newCMYK.cyan = c;
     newCMYK.magenta = m;
     newCMYK.yellow = y;
     newCMYK.black = k;
     return newCMYK;
[code]....

View 2 Replies View Related

Illustrator :: How To Move Square To Another Spot

Jul 11, 2013

I have two different macs, both intel with 4 gigs of ram. I open illustrator CC with a new clean document then just draw a square. When I try move the square to another spot the blue outline moves but the the square is still in the old spot. I have to click several times for the square to show up in the new spot even then it takes a few seconds for the square to move.
 
Also I can't close the window I am working on. When I click the red button in the upper left corner of the canvas the window won't close.
 
I can't quit illustrator CC either. I have to force quit it to close it.

View 9 Replies View Related

Illustrator :: Spot Color Swatches In AICS6 And AICC Do Not Match Color In Design

Feb 24, 2014

Some of the lighter, saturated colors in the PANTONE+ swatches library appear to be a different color in the swatch list than they are when applied to a design. see below for screen shots.
 
i can duplicate this situation on calibrated NEC MultiSync monitors and uncalibrated laptops. We are running on Mac OS X.8x and above.
 
Designers are complaining about not being able to pick a color from the Swatch Library in AICS6 or AICC. InDesignCC does not seem to have the same issue.

View 1 Replies View Related

Illustrator :: Change Default Text Color To Pantone Spot Color?

Nov 24, 2013

I need to change the default text color to a pantone spot color.

View 5 Replies View Related

Illustrator Scripting :: Write A Script That Renames A Layer And Group Within The Layer?

Jul 25, 2013

I'm trying to write a script that renames a layer, and group within the layer, then an object within the layer (but not a part of the group) and have it run in a loop.
 
Here's what I've got so far, the group rename doesn't work.
 
 #target Illustrator 
var doc = app.activeDocument;
 idLayers(doc)//IRename layers
idGroups(doc)//Rename groups
 function idLayers(doc){

[code]....
 
I haven't put in anthing to rename the single object yet since I cant even get the group rename to work. I suspect that the group re-name section isn't working because I'm either using bad syntax or an invalid command.

View 3 Replies View Related

Illustrator Scripting :: Move Layers To New Artboard

Feb 18, 2013

I'm trying to create a script via javascript for Illustrator.
 
My problem is : I have a AI file with multiple layers, i want to create one artboard per layer, in order to export a multipage PDF ( each page contain 1 layer ).
 
The layers represents the differents type of print ( vernish, color, hot gold, pressure ... ) and/or color type ( Pantone, CMYK, cut, kisscut ... ). My client want a PDF for see each type of print or color type per page.
 
I'm trying 2 ways :
 
1st solution : Create new artboards, and duplicate ( or move ) layers content on the new artboad, but the function move/duplicate don't work to move content on another artboard.
 
2nd solution : Create new document with the same number of layers as artboard and duplicate layer to the new artboard on the new document.

View 6 Replies View Related

Illustrator Scripting :: Move Anchor On Path Item

Jun 21, 2013

All I am trying to do is move an anchor from one location to another using vbscript.  I have searched everywhere and scoured the scripting references but I have not been able to figure this out as of yet.
 
I am able to select anchor points without an issue....moving those points seems to be a problem. 

View 5 Replies View Related

Illustrator Scripting :: How To Move / Translate / Reposition The Group

Jul 10, 2013

I have a document with a single layer and a single group (GroupItem) in that layer.

Unfortunately, I didn't create the .ai file, so I don't know exactly what is in the group; however, there appears to be a bunch of complex clipping masks and gradient effects, etc. deeply nested within it.

I've successfully scripted a few tasks like resizing the group with no ill effect... in other words, this works as expected:
 
app.activeDocument.activeLayer.pathItems[0].resize(50,50);
 
However, as soon as I try to move/translate/reposition the group, all the effects/masks seem to go wonky, I've tried all of the below with no success (200 is just arbitrary as a test):
 
app.activeDocument.activeLayer.pathItems[0].left = 200;
app.activeDocument.activeLayer.pathItems[0].translate(200,0);
 
I have no problem moving the group around on the document with my mouse... all the effects/masks are still nice and clean, so I'm confused as to why I can't do the same thing via JavaScript.

View 3 Replies View Related

Illustrator Scripting :: How To Duplicate Artboard And Move It Relative To Original

Oct 23, 2013

Basically, I have an open AI document and would like to duplicate its artboard and then move it to a new position(X axis, 50pixels away from the original). Doesn't seem too hard, but I can't figure it out. This is for CS5.  
 
var docRef = app.activeDocument;
var abSrc = docRef.artboards[0];
var abSrcX = abSrc.artboardRect[0];

[Code]...
 
Taking that into account if I add (1224 + 144) to abSrcX and abSrxW it creates another artboard 2" away from the previous at 17" x 11". If I want to run it again, I just to add (1224 + 144) to abSrcX and abSrxW again. Now to figure out how to do this dynamically on the fly.

View 5 Replies View Related

Illustrator :: Spot Color Specifications

Nov 7, 2013

I created an ad using one PMS color after orginially being told that it was a "Thanksgiving 4 column x 4.5” spot color ad”. I received the following message from the newspaper printer today:
 
"Please relay to your corporate art department that the newspaper does not print in PMS/Pantone colors, except on a full color page, which requires an additional color charge. For spot color, we print in primary colors such as red or green, or in cyan or magenta alone.
 
As I understood it, spot color meant pantone, and CMYK was process. Am I wrong here or are the printers using the term "spot color" incorrectly?

View 2 Replies View Related

Illustrator :: Spot Color PDFs

Sep 10, 2013

How do I create a PDF that only incluse my PMS spot colors and process black?

View 2 Replies View Related

Illustrator Scripting :: Move Direction Handles In Sync With Anchor Point?

Aug 17, 2012

I'm trying to nudge the anchor points on an object randomly (to get an informal look). (I know some Effects do this already.)
 
Maintaining corner points is no problem - you just set the direction handles to the same coordinates as their anchor.
 
But I can't nudge a smooth point in the way I want to, which is to move the anchor but maintain the direction handles in exactly the same relation to their anchor as they had before. That is to say, they should remain smooth points.
 
My script calculates the difference between 'before' and 'after' positions of the anchor, and applies that difference to the direction handles… but in practice the smooth points are converted to corners, because the direction handles don't maintain their relation with the anchor.
 
var docRef = activeDocument;
var objects = activeDocument.selection.length;
var cShift = prompt("Point shift (pt)",5);
// loop through all objects
for(var count=0;count<objects;count++)

[Code] .....

View 2 Replies View Related

Illustrator :: Spot Color Gradients - How To Preserve EPS

Aug 21, 2013

I create a logo in Illustrator.  It is 2 colors, black and pantone 287.  The gradient is only with the blue color. I save the file as a EPS.  I place the EPS into another program, and generate a new EPS file with all the elements and type combined.  My printer requires that all the fonts be converted to outline so I open the EPS again in Illustrator.  The logo with the gradients has been converted to CMYK and the gradients now appear in the LINKS panel but they are not editable.
 
Why is this happening?  How can I preserve the EPS so that I don't have to manually replace the converted gradient logo EVERY time I have to make a new EPS file?

View 1 Replies View Related

Illustrator SDK :: How To Find That Art Item Has Spot Color

Jul 4, 2012

I have a number of art items on a document, some of them are filled with spot colors and some of them are with process color.Is there any api or method by which I can find out which color type(spot or process) is applied to the selected art item?

View 4 Replies View Related

Illustrator :: Spot Color Definitions Choice Persistent?

May 29, 2012

How can I make my spot color definitions choice persistent? I read a kb item that said how to swap out the new Pantone Plus color books for the old ones, to maintain color parity with older versions. One of the steps has me going to "Spot colors" on the swatches pallette and selecting "Use CMYK Values..." instead of "Use LAB Values...". I don't want to have to do this with every file. Is there a way to make this choice persistent?

View 4 Replies View Related

Illustrator :: How To Export Spot Color (Pantone) To PhotoShop

Sep 28, 2009

I have 5 spot color ( Pantone) and CMYK color at my design. How can i export this 9 color ( seperate and with Pantone) to photoshop cs4? I want see 5 pantone color and cmyk at photoshop channel list!

View 4 Replies View Related

Illustrator :: Ungroup And Change PS Spot Color Channels?

Oct 22, 2013

In illustrator, how do you change a photoshop spot color channel that has been imported into illustrator. Ever since Illustrator CS2 you could import a psd into Illustrator and you could ungroup the channels and change the colors. How do you do that in CS3-6? I have been trying to figure this out for years. My old computer with Illustrator 10 is about to die and so will my ability to do what I descried above.

View 1 Replies View Related

Illustrator :: How To Preview Overprinting White Ink (spot Color) Or A Tint

Jun 21, 2013

how do I preview overprinting white ink (spot color) or a tint thereof?

View 13 Replies View Related

Illustrator Scripting :: Create JS Script To Move Objects Away From Common Center Based Upon Their Current Position

Jan 17, 2014

I was hoping to create a JS script to move objects away from common center based upon their current position. I was thinking to use a single selected path item as the center based on its position x/y and width/height. Using this reference point the script would then move away all other path items from this center point based on a desired amount and with uniform increments given their current location from this center. I was thinking cos and sin would be my friend in this case, however they seem to have become my foe instead. ;-)
 
Does this sound doable? What am I missing, doing wrong, misinterpreting? Below is a non-working attempt, I can't seem to sort things out, perhaps I was close and missed it or maybe I am super way off and its more complex than I thought. However at this point I am confused across my various failed attempts this only being one of them. 
 
// Example failed code, nonworking concept
var docID = app.activeDocument;
var s0 = docID.selection[0];
pID = docID.pathItems;
var xn, yn;
var stepNum = 20;

[Code]....

View 13 Replies View Related

Photoshop :: Import Illustrator File Which Has Spot Color As Smart Object

Dec 27, 2012

I'm trying to import an illustrator file which has a spot color into photoshop as a smart object.  The spot color converts to four color when imported. 

View 2 Replies View Related

Photoshop :: Exporting Spot Color Channels As Paths With Fill To Illustrator

Mar 17, 2003

I need to send vectorized art to this company that only uses Illustrator. I have never used or even opened Illustrator. Ok, I'm very familiar with Freehand so I get the basic idea about vector. I have a 3 color logo that I have saved as a Photoshop DCS .eps file with the channels saved as spot colors so I can print separations with Pantone colors. According to what I have translated from the Photoshop guide what I need to do is figure out how to get my clipping paths of each channel to retain its fill when I export paths to Illustrator. I've tried and when I open the vectorized paths in say Freehand there is only lines and no fills. Do you guys have any ideas on how I can get these file seperations to this company with Illustrator?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved