Illustrator SDK :: Fast Way To Change Fill Colour Of Many Objects?
Aug 9, 2012
I am currently navigating the document model through all objects and manually adjusting the fill colour of desired objects.For example, for each layer, I iterate through the GroupItems, CompoundPathItems, PathItems, in the GroupItems I navigate the GroupItems, CompoundPathItems, PathItems, etc.
In order to change all the colours of the objects, it ends up taking over a minute to accomplish. But in the Illustrator UI, I can select a very complicated group item and change it's colour very fast. In the SDK, GroupItem does not have a fill colour parameter, so I have to iterate through all sub-items to change the colour.
One of my Illustrator CS6 documents was intially created some time ago without paying much attention to colour management issues. I am now trying to put that right and have assigned the document a profile of Adobe RGB (i998). However, each time I open it I am warned that 'The document has an embedded color profile that does not match the current RGB working space'. It also says that the embedded profile is sRGB, while my working space is Adobe RGB. I get this message three times and am assuming that it refers to embedded objects.
Do I have to reimport all items that may have a colour profile, having first ensured that they are tagged as AdobeRGB?
I'm trying to use this command to change the colour of objects inside of a document using applescipt but i keep getting an error "adobe illustrator "can't get color"" the colour exists and is active on a document. I have read the manual on variables and i'm a little lost on what i'm doing wrong, heres what i've got so far:
tell application "Adobe Illustrator"
if color is "C=0 M=0 Y=0 K=90" then set color to "C=0 M=0 Y=0 K=90" end if end tell
i understand this is quite basic but its all i have to start with at the moment
copy specific fill colour so that it can be filled in as stroke colour in other compound path. I attached 2 screen shots as below. I want to copy the blue olour to replace he red stroke.colour.
How do I see the object selected change colour dynamically as I adjust the colour sliders?
It seems the object only changes colour when I release the slider. But I want to see it dynamically change, so I can find the colour that works best without "hit or miss" - "trial and error" behaviour.
Yes... I'm aware some of you spend hours in colour programs creating a palette to work with. Good for you.
I'm just wanting to do it LIVE. Dynamically. In 2013. In Illustrator.
Long of the short of it is, when I export a vector graphic as eps format it is changing my pantone colors to black. Not just 100% black but like 2% Magenta, 4% Yellow, 95% black. When I export rgb or cmyk objects, not a problem. It only has issues when it involves a pantone colour.
I have never had issues with this from the past 8 years I have worked with CorelDRAW. This was also something that just randomly happened, no computer upgrade, no major software changes, nothing.
I am currently running Windows 7 64bit with CorelDRAW Graphics Suite X5.
I'm having a problem with a logo I made which has a section of it that appears to be black fill with black stroke. However when I click on it and it shows the shape in that little preview box on the right panel, it appears grey. Then when I save it and open it in photoshop, the problem section is grey or transparent fill with black stroke. I can't seem to figure out why its doing this. There is no opacity on the object and it's clearly black in the colour settings. It used to be a gradient and I made it into a compound path to combine it with other sections but I released that and make it all solid color.
I have a vector shape with a gradient fill. I then gave it a gradient stroke as well, but I wanted to edit the stroke separately so I expanded the stroke from the fill. Now I have 2 objects; my shape and the separate stroke as it's own shape. This seemed necessary to be able to use the gradient tool on the stroke to manually move the gradient.
Now, I would like to merge these back into one layer, so when I go to edit the points to all move in one direction, they all move together without going all wonky.
Is this possible? Or have a screwed myself over by expanding the object?
Everytime I set the fill/stroke color of objects in a file to 75, 68,67, 90 it resets it to 0, 0, 0, 100. It isn't consistent though... some objects accept the color.
No matter how I set the interface preferences, when I make a new artboard, that artboard is white.
The brain-dead workaround to this is to put a rectangle the colour I want on a locked background layer and make it the same size as my artboard, but this turns "Shift+O, drag" into "Shift+O, drag, M, drag, set desired fill colour, deselect rectangle, restore previous fill colour and tool and selection."
It seems like there should be an interface option somewhere that lets me set the colour of new artboards, but the only guidance I can find on setting the artboard colour says to use "simulate coloured paper." Simulating coloured paper is not setting the colour of your artboard. It is simulating the way ink always lets some of the paper colour show through.
I do not want my artboard to show through. I simply want it to be a different colour. When I press Shift+O and drag out a new artboard, I want that artboard to be the same colour. If I decide I would like a different colour, I want to change a single setting somewhere and have the colours of all artboards in the document change at once.
I cannot find any setting for this in the interface. Am I missing something, or is it just not there?
I've downloaded an EPS from Shutterstock with a series of icons that look like buttons and would like to change the colour breakdown, but keep the shading/ button 'look'. When I try to select a different colour breakdown of blue it turns grey and solid.
I have a simple illustrator document with some text on it. The text is green. I wish to add additional text to the document in the exact shade of green that the current text is in. Believe it or not, I can't figure out how to do this. I can select the text I want to to be green and select a colour from the swatches menu, but the shades of green available there are not the exact shade of green that I need. I tried selecting my newly written text, click the eye dropper tool, and then clicked on my old text (which is in the shade of green that I want) but this frustratingly changes the font of my newly written text to the same font as the original text, without changing it's colour.
How do I add/change a fill to an image in illustrator? I have binary tiff images (bitmaps). In CS4 I could change the fill from the default black to any other color simply using the control panel or the appearance panel. In CS6 it has no affect at all.
In the sample below the the image originally comes into illustrator shown in black. Once I update the fill to blue in the appearance panel, the image changes to blue (in CS4).
In CS6, changing the fill does nothing. Is there an extra step that now has to be performed? This is not a problem with the image. I opened the same image in both versions, followed the same steps and only have an issue in CS6.
When I set C to 40% and MYK to 0% the program automatically change to other values in all four columns. Is it some kind of default settings? If so, how can I change it?
Im working on an object which has 4 anchor points, i would like to keep to black stroke for 2/3 segments of the object but i would like to change the colour between two anchor points (so 1/3 segments).
I have just begun using Illustrator CS6. I have a very simple image (.png file) that I would like to annotate with some arrows and some text. This file is what I guess you would consider a raster image (no vector graphics) that has a very limited color range. It has less than ten basic colors plus a gradient fill (shades of gray) in a few places.
I want to use illustrator to annotate this image with some lines with arrows and some text, but first, there are a few stray lines that I would like to eliminate. For example, there is a black line that I would like to "erase" by replacing all the black pixels in this line with white pixels. I tried to do this by selecting the "Paint Brush" tool and then selecting white as both my fill and my stroke color. After doing this, I position the cursor over the pixels I want to change but the cursor appears as a circle with a line through it, and it doesn't do anything.
I'd like to change the text colour to that of one I pick using the eye dropper tool.
This is what I do;
1. Select the text 2. Using the eye dropper tool i click on an object (lets say a square) filled object with a different colour. (no stroke) - Now I expect that the text will change to the squares colour but it does not.
The eye dropper will pick up and change its font/colour if i select other text but not other objects. I have opened the eye dropper preferences and EVERYTHING is ticked in both picks up and applies.
So i have this piece and i need to be able to colour different sections of the stroke around the whole piece with different colours. Also, i need to be able to change the width uniformly on sections between anchor points. I DO NOT want to use live paint as it takes away the sections of stroke i have tapered off already, however, the effect you get when using the live paint selection tool is exactly what i need
Is there a way of doing this at all?? It seems that i should be able to do it but i'm not able to find the right button, option or combination of both.......
Sometimes my fingers slips on certain shortcuts, but this one changed my background and paper to all white. And I can't change it back to paper being white and background being dark grey. I make a new document and it is still all white but now it shows the paper border.
How do I change the default fill color palette in Illustrator CS6? Specifically, I am opening a a new brochure template and the fill and stroke boxes on the left side of the control panel just open with the "no fill" red slash box and the registration mark "bullseye". I would like to have the default color palette load as if it were a new document.
I'm trying to create a script in CS5 mac os10.6.8 that will change the fill color of selected pathItems. I need a simple script that will change a selected pathItem to cmyk values 2,3,15,0. I will then select this script and implement the action in a batch of 600 files.
I wish this process could be recorded as an action but when I record the action "add new swatch" I have to manually input the cmyk values, which will take forever for a batch of over 600 files.
When using the blend tool to blend colour between two objects is there a way to see the anchor points so I know where to click the blend tool. I realise the cursor changes when over one but its seems very cumbersome to have to move it around until it changes rather than click directly on one which I could do if I could see it.
I sometimes need to export artwork from Flash, then edit it in Illustrator or simply save it as an .ai file for other people to use. I used to simply export an .eps file from Flash which worked perfectly asided from sometimes needed to readjust transparencies. However in CS5 I only have the FXG option - this makes editing artwork a long drawn out process of selecting movie clips and clicking "break link" then doing the same for the contents of that movie clip. Using "select all" on the artboard will not give me the break link option if anything other than a movie clip is selected.
I am working on six very similar map documents. They all are moderately complex with layering, drop shadows, and some placed raster files. I have linked rather than embedded the big tif raster files.
The confusing thing is that some of the illustrator files save in 2 seconds, and some of the files save in 2 minutes.I have compared all the settings, and I don't see what I'm doing different on the ones that take a long time to save. All big placed files are linked, not embedded.
The only clue showing a difference is that the files that are taking a long time to save are about 200mb in size. The files that are saving quickly are about 1mb in size.
How to fill an area with a colour in Xara 6, when that space is surrounded by different 'objects'?
So say I drew 3 separate lines to form a triangle. How can I fill that triangle with a colour? If I select the Fill Tool and choose a colour, then click in the centre of the triangle nothing happens.
If I were to do the same thing in Illustrator then it would simply create a new shape that fitted the space.
Perhaps this is not possible? Such a simple thing though, I feel I must be missing something. Is it perhaps available on Xara 7?