Because I'm unable to invoke the "Select All Unused" menu item of the Swatches panel menu I'm trying to attack it programmatically.
What I'm trying to determine is if it's sufficient to compare the Fill and Stroke Color of each Path Item (every path item of current document) or are there other items that should be examined to achieve the same results as the command in the Swatches panel menu? Page Items doesn't appear to contain a Fill Color property. I've got AppleScript code that appears to do the trick, but I'd like to get input so as to make sure I'm not missing something that my testing might not have uncovered.
I have a big problem with Illustrator and it happens all the time. I have made a pattern and although it works fine I now have no colours in my swatches just the patterns and my line choices for strokes is now limited to one choice. If I open a new doc the default materials are back and line choices. It's obviously a preference somewhere but I haven't the foggiest idea where to find it. It's very frustrating because I can't reset to the defaults and I can't append colours to the swatches or append new strokes to the line choices.
Is it possible to find out how bright is an color? I need to find the darkest color in document's swatches. My solution would be to convert (script internally, without actually making any changes in document) swatches to grayscale, compare them and pick the darkest. But how to convert swatch defined in undefined mode (they might be in lab or cmyk) to grayscale?
I found in 'js scriping reference' a method "convertSampleColor", but I have no idea how to use it. Any examples?
I'm trying to build a map of the world that includes provinces and sub-provinces (counties). I will be animating it in AE. AE only sees the top layers so it is imparative that the name of the top layer corresponds the the correct province. Unfortunately all the provinces are not layers. They are objects. I can use the "Release to Layers" command to get all objects nested into top level layers. But the top level layers have generic names (Layer 1, Layer2, Layer 3). The objects nested within these layers have the correct name.
Is there a script that will rename the top level layer using the name given to the object nested within that layer? If not, how to create one?
Here's a link to one of the files: world_all_provinces_Senegal divisions. Level 1_area.zip
I'm looking to create a script to batch rename a number of artboards.
- I have 100 named layers.
- I have 100 artboards.
- I would like to rename the artboards to match the layer names.
- The layers are organized in the same descending orderas the artboards (ignoring the actual artboard names*).
- The topmost artboard (1 in the list) would be renamed "newspaper", the second artboard would be renamed "typewriter", the third artboard would be renamed "books", etc.
*in the example below the artboard named "Artboard 7" is actually the 6th artboard in list.
is there a quick way how to renumber or batch rename all layers in a file so they would be named in consequent numbers? Doesn't have to start from exact number, I was wondering if maybe there is some sort of script that would work?
Whenever I create a new colour in the colour swatches it only stays there for a couple of actions while working on a project. I understand from others that once they create a colour it stays there. Why can't I get that to happen?
I am proficient in Illustrator, but this has been one of a few enigmas. Every once and a while in a file, I have noticed that after deleting a color that is definitely not in use(ie there are no strokes, fills, stray paths etc) using these colors. I have made sure of it. I will delete the color from the swatches and as a final pass I like to add used colors and sure enough that color will come back. I tried making sure it's not checked global, didn't work, some I don't even think are global colors, and in fact they are generally CMYK. I often notice that Black and C:0 M:0 Y:0 K:100 don't like to delete from the swatches among some other colors when you delete unused swatches. I thought perhaps they were in guides or something but it's truly unexplainable, and generally with a fresh file if all colors are deleted it'll still leave black white and gray.
Or ways to troubleshoot better other than creating a debug file and deleting lines of code as recommended in the older forums?
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
Im in the process of converting a logo to spot colors. When I open the swatches panel and choose any one of the pantone books, the panel opens to what you see below. This same thing happens with all color books except for the basic illustrator books.
Is there a way of organizing the colours in a swatch to something other than the default.
You can delete, or add, but you can't drag them to new positions to arrange.
I'm creating some swatches of my own, but the order of the colours is not to my liking. Just can't figure out if they can be organised by Hue, Brightness etc, or moved around individually.
I have a few thousand files that I need to process into colour swatches for a web site. The process entails locating a suitable area of each image, cropping that area to 25 pixels square, and saving the result. Obviously, I need to be able to do this as quickly as possible; ideally with just a single click for each image, and so I'd like to set up a script in order to batch-process the images. Unfortunately, there is no guarantee that a suitable position on one image is going to be at all suitable for another, so a limited amount of interactivity is required.
Is it possible to set up an interactive batch task, or would some other approach be required?
I'm try to automate the importing of the Varaible and datasets into my graphs via Scripting, but the ImportVaraibles() function doesn't seem to work. Here is my Script, mostly copied from the example script provided with Illustrator (CS5). And, this works manually, using the file names in the script, via Load Variable Library
Set appRef = CreateObject(strIllistratorVersion)
'Open the file and import the datasets Set docRef = appRef.Open(strTemplate & "200-500.ai") 'docRef.Datasets.RemoveAll docRef.Variables("Yearbook").Delete
Here is the problem, after I delete the previous library, then this next line, right from the example, does nothing The script then exits with 'No Datasets in this document'
docRef.ImportVariables (strXMLFolder & "Lumber_200-500.xml") 'appRef.DoJavaScript "alert('Template:" & strTemplate & strRange & ".ai | XML file:" & strXMLFolder & "" & objFile.Name & "^')" If (appRef.Documents.Count > 0) Then Set docRef = appRef.Documents(1)
[Code]....
If I remove that delete line, the script runs, but just uses whatever Variables I had last loaded, not the XML file.
It's simply not loading. What do I need to do to get it to load?
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.
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.
I would like to be able to select a colour like you can in photoshop. The swatches are very limited. I would like to select it from the colour 'wheel', where you can move up and down the slider to select the value and then move over the circle to select your colour? Or where can I find a huge swatch of colours?
I can only load some of the swatches for the color books into the swatches pallet. Most importantly I cannot load the pantone swatches. I just get a blank pallet.
I am trying to clear up my ASE library. I am having problems locating it on Finder on Mac despite trying to find it on the same path that AI shows when saving a new ASE.
"This library cannot be used because it does not have enough solid color swatches. Gradients and patterns cannot be used." What does this error message mean when I am trying to use gradient swatches and how to do I stop it?