Illustrator Scripting :: Raster-item Didn't Get Color

Mar 22, 2012

I have written a small application in .NET that gives color to Illustrator files.I have a layer with 100 color items (paths with a fillcolor). Each one has a unique name. Through that name my program looks them up, takes the fill color and applies that color to another path.Recently there was a change in Design, the drawings that I had to provide of a Fillcolor were no no longer pathitems but rasteritems (imported from photoshop). I thought ok no problem instead of setting the Fillcolor property I'll use the Colorize method on the rasteritems. It worked fine but now and then I came across a situation where raster-item didn't get the color. After digging in to it I saw that it was because some colors are Pantone colors and the colorize method on rasteritems only takes RGBColor or CMYKcolor objects. How to do it with the pantone colors?

View 1 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 :: How To Read Swatch Used For Fill Color Of A Page Item

Mar 21, 2012

Is there a way to read the swatch used for fill color of a page item?
 
I can read the fill color but I can't read if the color is a global swatch.

View 2 Replies View Related

Illustrator Scripting :: How To Raster Object

Aug 16, 2011

How to Raster a object in illustrator with scripting?

View 7 Replies View Related

Illustrator Scripting :: Is It Possible To Access And Run A Menu Item

Feb 6, 2013

When writting scripts to Photoshop I can use the app.runMenuItem() method to acess commands in the menus. For example: app.runMenuItem (charIDToTypeID("ZoomIn")) will run the Zoom In command.
 
Does Illustrator have any such method (or accepts anything like action description) to enable us to acess it´s menu items? For example acess Expand comnand, or Object > Live Paint > Make..

View 2 Replies View Related

Illustrator Scripting :: Page Item Name Property In UI

Jan 14, 2013

Does name property of a page item appear anywhere in the user interface in Illustratpr CS6? I thought it would be the name you assign to it in the Layers palette, but it does not appear to be.

View 2 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 :: Accessing Elements Of A Page Item

Jan 6, 2014

I am working on a script that performs a series of things on all of the artwork in a document.  At one point, it needs to compare the fill color of every item to a sample color.  The problem is, the artwork is a collection of compound path items and path items.  When I look for pathItems[x]. fillColor, it works fine.  When I look for compoundPathItem[x].fillColor, it comes back undefined.  So, I've moved to looking at page items, but I seem to be unable to get to the internals on the page items.  If I have a compound path item, how would I address its properties from its parent page item?  I tried:
 
pageItem[x].compoundPathItem.pathItems[0].fillColor,
pageItems[x].fillColor,   & 
pageItems[x].compoundPathItem.fillColor. 

View 9 Replies View Related

Illustrator Scripting :: Feasible To Disable A Menu Item

Apr 10, 2012

illustrator scripting but have some knowledge in indesign scripting using javascript.In Indesign we can disable menu item thru menuActions.. Is there any object available like that to disable a existing menu (eg. File>Save).

View 1 Replies View Related

Illustrator Scripting :: Convert To Grayscale For Selected Item

Feb 4, 2014

It is possible to apply the Convert to Grayscale(Edit->Edit Colors->Convert to Grayscale) for the selected items in illustrator cs3 in script (javascript)?

View 12 Replies View Related

Illustrator Scripting :: Get Only Paths Of Embedded Placed Item (without Clipping)

Sep 23, 2012

I use my script to embeding a placed graphic (MyImage.embed();). Then I always get a group with the correct paths and two clipping paths in a grouped grouped groupItem.
 
My question is: I want to delete the two clipping paths to get only the correct paths of the graphic.

This is, what I always have:

and this is, what i want:

View 8 Replies View Related

Illustrator Scripting :: How To Change Colors Of Path Item

Nov 26, 2013

I'm trying to change the colors of a pathItem corresponding to the string value of several text fields in my document. I've been successful in changing the fill and stroke color of the pathItem, but I can not find any reference in the Illustrator Javascript Guide for accessing additional strokes and/or fills that have been applied to the object in the Appearance panel.

View 1 Replies View Related

Illustrator Scripting :: Biggest Path-item In A Document?

Sep 17, 2013

is there a way to determine the biggest item in a document using javascript?

View 4 Replies View Related

Illustrator Scripting :: Open Any Menu Item By Script

Jun 21, 2012

if there is a way to open any menu item by script (Javascript) in illustrator CS5/5.1? perhaps something like this:

"app.menuActions.itemByID(0123).invoke()".

I looked at the scripting reference, but i didn't found it.

View 4 Replies View Related

Illustrator Scripting :: Automate Action Set - Selecting Raster Images

Mar 8, 2013

I would like to automate an action set that selects a raster image (linked file) that has been grouped with vector art and then converts that selected raster image into a vector (live trace)
 
I'm using cs5 on a mac. As far as format goes I have hundreds of eps files that all have at least one raster bitmap tif which was imported as a linked file and then grouped with vector art. So I will like to run a batch script command that will select only that bitmap raster image (because I want to maintain the present vector art in the file) and convert that bitmap tif to vector- and save the file which will hopfully be in vector format.

View 2 Replies View Related

Illustrator Scripting :: Raster Multiple Layers In AI Without Flattening To 1 Layer

Aug 8, 2012

I am trying to turn every layer in my .ai file to a raster image without flattening to one layer.
 
-The big issue I am dealing with is the agency that just built a paralax site for us refuses to export to PSD. I have tried every possible way to do this but keep getting the file is to big message. To add to it they had it all on 1 layer. I was able to release to sequence, but now am trying to see if rasterizing the objects will work.

View 1 Replies View Related

Illustrator Scripting :: How To Add Script To Actions Via Insert Menu Item

Jan 14, 2013

This has been an issue since at least CS4. If you add a script to your actions via "Insert Menu Iitem" (not sure if it's for all items or just scripts) and close Illustrator, those actions disappear. Apparently, in CS6, Adobe has completely ignored improving including scripts to Actions, which really makes automation powerful. As awesome as CS6 is, that part is pretty lame.

View 1 Replies View Related

Illustrator Scripting :: Simple / Direct Method To Identify Index Of Selected Item In List Box

Jul 16, 2013

I can't seem to figure out a simple/direct method to identify the index of the selected item in a list box.

I feel like I'm missing something, but I can't seem to figure which (if any) property returns an index number if you use it with the .onChange callback for a ListBox.

The following code accomplishes what I need but isn't particularly efficient or elegant and can get muddled if you introduce multiple lists to check.

Any way to duplicate this same behavior with better code
 
var res = "palette {text: 'Example List', properties:{resizeable:true}
pnl: Panel{orientation: 'row',preferredSize: [400,600],
list1: ListBox{preferredSize: [400,550], properties:{multiselect:true,numberOfColumns:2, showHeaders:true,columnTitles: ['List 1', 'Subitem 0']}},
}}"

[Code]...

View 4 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 :: Converting Full Color Raster To Vector

Aug 27, 2012

I'm attempting to convert the following Image to vector using Illustrator CS6: URL.....

I've been messing around with Live trace for a few days, but every time I try to convert it to Vector, it destroys my gradient, and converts my Pantone to CMYK.
 
URLs.....What I need to do, is convert to vector while keeping the gradient, and pantone colors in the graphic to prepare for screen printing.Before anyone says "you don't need to use vector for screen printing". We run Corel X4 on our transparency machine, so I need to convert to vector, and keep the halftones fine, as well as keep the pantone color book.It doesn't need to be a "quick" way to do it...it just needs to be done.

View 6 Replies View Related

Illustrator Scripting :: Apply Current Fill Color To Stroke Then Adjust That Stroke Color's Build?

Apr 9, 2013

I'm trying to figure out a way to automate a simple, yet repetative process I do countless times a day. Ideally, I'd like to tie it to a keystroke to speed up my workflow.
 
I work on line art and colorways for footwear, so the way I'm coloring these shapes and strokes break apart the different materials and pieces of the shoe.
 
While coloring line art, I work with Pantone spot colors as fills for closed path objects. I then have to manually apply that same color to the stroke, set the stroke to 0.5px weight, convert that spot stroke color to CMYK, and add 15% to the K value.
 
I found some code in an older post for applying the actively selected object's fill color to the stroke, but I'm having but I'm having trouble with the next step of figuring out how to take that spot stroke color and convert it to a CMYK build that I can then add 15% black to. Is this something that's even possible? I've spent about an hour playing with the script and have only had luck matching the fill color or turning the stroke white.

View 13 Replies View Related

Illustrator Scripting :: Color Change To Various Types?

Feb 6, 2013

I am trying to change the color of all items on and under a specific layer.I have been successful changing the color of specific types of objects (paths), but I need to accommodate all the types on the layer and sub layers.
 
I can recurse to as many sub layers as I expect, but how do I accommodate the page Items, path Items, group Items, compound Path Items, etc.I was thinking of pushing everything to an array, but I have no experience with arrays...

View 3 Replies View Related

Illustrator Scripting :: Changing Color Of A Selection To HEX

Sep 6, 2012

I'm new to illustrator scripting (but not to javascript or programming. I have an AI file that has multiple layers. each layer has several items that are supposed to be of same color. I have an array of HEX values.

I would like to loop over all items in a single layer, select them and change their color to some given HEX. Once that works, I will run on all HEX entries in array and save each variation in a separate PNG file.
 
For the first part i wrote some script (see below), but i do not see any change in the file after i run the script. No errors and no change. I run the script once i select all items in a specific layer.
 
My code:

function hexToRgb(hex) {
    var result = /^#?([a-fd]{2})([a-fd]{2})([a-fd]{2})$/i.exec(hex);
    return result ? {
        r: parseInt(result[1], 16),
        g: parseInt(result[2], 16),
        b: parseInt(result[3], 16)

[Code] ......

View 3 Replies View Related

Illustrator Scripting :: Typename Of The Filled Color?

Jul 18, 2012

I am trying to use the property "typename" with the fillcolor. I am using following statement:
 
grp.compoundPathItems.index(j+1).pathItems.index(0).fillColor.typenam e
 
It'll give error i.e. access of undefined property typename.
 
Is there any way of finding the typename of fillcolor?
 
Actually, I want to get the type of fillcolor used in pathitem, i.e. is it "GradientColor", "PatternColor" or "SpotColor".

View 4 Replies View Related

Illustrator Scripting :: Eye Dropper Or Color Sampling?

May 2, 2012

I'm trying to make a script to transform shape by a value of below object.

(look sample image below)

And I'd like to know how to sample color from gradient-mesh or bitmap photo.
 
 Does illustrator script have eyedropper or color sampling tool?

View 3 Replies View Related

Illustrator Scripting :: Color Change Command In JavaScript

Feb 4, 2013

I managed to write this javascript. It automatically changes the colors from one swatch (byName) to another (byName) in my opened illustrator file. But if this one color doesn't exist as a fill or outline color in a file, I get an error message, because the script can not detect the color. The script stops. I am working on a batch of Illustrator files with 3 colors to change, but some files contain just 1 or 2 of the colors.Is there a command for javascript which says: "Only change the color, if the color appears"?

Here is the script:
 
var docRef = app.activeDocument;
with (docRef) {
var findColor = swatches.getByName('TSB Dark Blue').color;
var replaceColor = swatches.getByName('TSBDB').color;
[code]....

View 2 Replies View Related

Illustrator Scripting :: Syntax To Check Pantone Color?

Aug 16, 2013

Syntax to check pantone color

eg (list.fillColor=="[CMYKColor]")

like that how to find pantone color and how to get the name of the pantone used

View 3 Replies View Related

Illustrator Scripting :: Change Overprint Of Color With Applescript

May 4, 2012

I want to overprint a PMS colors using Applescript. I though if I changed the property of the selected items fill color from (fill overprint:false) to (fill overprint:true) it would work. This doesn't seem to change a thing.
 
This is the script I am currently using:
 
script ChangeOverprint
tell application "Adobe Illustrator"
local docRef

[Code]....
 
This is the picture of a simple document I created. The elipse has fill overprint:true. The polygon has filr overprint:false. The original value for the property fill overprint was false. I changed it in the script to true. Which the log shows it changed.

View 1 Replies View Related

Illustrator Scripting :: How To Fill Gradient Color In Textframe

Sep 3, 2013

I am working with scripting in Ai, fill gradient color in TextFrame. I search in this forum but the other topics fill color to path or line. For now, I can make a gradient color, but I don't know how to apply it to textframe.

View 6 Replies View Related

Illustrator Scripting :: How To Show The Color Picker Dialog

Feb 22, 2014

how to show the color picker dialog in Illustrator programmatically?

In photoshop that's really easy, just:
 
app.showColorPicker(true);
 
In Illustrator I couldn't find any reference to such a method or other possibility to show the dialog programmatically, that you would normally get when double clicking on the fill color square within Illustrator.
 
Is that possible by using app.executeMenuCommand or some other method?
 
I am writing a script that opens the color picker dialog in reaction to a click on a button. I want to be able to get the chosen color and use it within the script.

View 21 Replies View Related

Illustrator Scripting :: Select Same Fill And Stroke Color

Aug 8, 2013

Select same fill color with java script and stroke color tool.

View 1 Replies View Related







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