Illustrator Scripting :: How To Rename Colour Swatches

Aug 19, 2013

In Illustrator Javascript, you can use the following to rename layers:
 
var doc = app.activeDocument;
// loop through all layers
for (var i = 0; i < doc.layers.length; i++) {
 
[Code]....

Is there anyway to rename colour swatches.
 
For example, I have 20 swatches named Yellow -(Keyword). (The keyword is different for each swatch).

I would like to replace yellow with the word colour1 while replacing the -(keyword) part in tact.
 
Is this possible? My swatches are in groups, so I am not sure if it makes it more complicated.

View 4 Replies


ADVERTISEMENT

Illustrator :: Colour Swatches Disappeared When Clicked On Show All Swatches?

Mar 1, 2014

My colour swatches disappeared although I clicked on "show all swatches". What do I have to do to appear regularly when opening Illustrator?

View 3 Replies View Related

Illustrator Scripting :: Deleting Unused Swatches?

Jul 27, 2009

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.

View 11 Replies View Related

Illustrator :: Where Are Colour Swatches And Stroke Choices

Jul 22, 2013

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.

View 1 Replies View Related

Illustrator Scripting :: How To Find Darkest Color In Document Swatches

Oct 15, 2012

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?

View 2 Replies View Related

Illustrator Scripting :: How To Rename The Created Layer

Sep 27, 2012

I create with VBA an Illustrator sheet with custom size:
 
'define size
Dim B_cust, H_cust As Integer
Set appRef = CreateObject("Illustrator.Application")
B_cust = CInt(InputBox("B=", "Higth:"))
H_cust = CInt(InputBox("H=", "Width:"))
Set newDocument = appRef.Documents.Add(aiDocumentCMYKColor, B_cust, H_cust)
 
This works fine
 
I would have fore each new document the same layer order like

cadsymboltext 
Rem ###new Layer###
Set myDoc = appRef.ActiveDocument
Set myLayer = myDoc.Layers.Add()
Set myLayer.Name = "cad"
 
I'm not able to rename the created layer ?

Furthermore I would erase the default Layer LEVEL 1

View 1 Replies View Related

Illustrator Scripting :: How To Rename Layer Like Filename (with Action)

Dec 20, 2012

rename a layer of illustrator like document file name? (with an action)

View 12 Replies View Related

Illustrator Scripting :: Rename Layer Using Name Of Enclosed Object

Feb 17, 2014

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

View 5 Replies View Related

Illustrator Scripting :: Rename Artboards With Layer Names

Mar 7, 2014

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.

View 5 Replies View Related

Illustrator Scripting :: How To Renumber Or Batch Rename All Layers In File

Feb 15, 2010

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?

View 24 Replies View Related

Photoshop Elements :: Why Won't Colour Swatches Created Stay In Colour Swatch Palette

Jun 18, 2013

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?

View 1 Replies View Related

Illustrator :: Unused Deleted Swatches Come Back After Deleting / Clicking Add Used Swatches

Jul 12, 2013

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?

View 6 Replies View Related

Illustrator Scripting :: Change Colour Of Objects Inside Of Document Using Applescipt?

Mar 26, 2013

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

View 24 Replies View Related

Illustrator :: Pantone Swatches Won't Appear In Swatches Panel?

Sep 11, 2012

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.

View 4 Replies View Related

Photoshop :: Colour Swatches

Jan 8, 2005

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.

View 5 Replies View Related

AutoDesk Smoke :: Copy / Paste Colour Swatches Or Save Them To Palette?

Apr 17, 2013

Is there a way to copy/paste colour swatches or save them to a palette?

View 5 Replies View Related

GIMP :: Process Files Into Colour Swatches For Website - Single Click Crop

Oct 19, 2011

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?

View 6 Replies View Related

Illustrator Scripting :: How To Automate Importing Variable And Datasets Into Graphs Via Scripting

Dec 18, 2012

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?

View 8 Replies View Related

Illustrator :: How To See Object Selected Change Colour Dynamically As Adjust Colour Sliders

Aug 11, 2013

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.

View 4 Replies View Related

Illustrator :: (gradient Tool) Double-clicked Colour Stop But Colour Swatch Doesn't Come Out

Jun 11, 2012

[gradient tool] I double-clicked the colour stop , but the colour swatch doesn't come outI hv tried a couple of times in CS 5 and also CS 6.

View 1 Replies View Related

Illustrator Scripting :: Access Graph Data Through Scripting DOM?

May 6, 2012

Can you access graph data through the scripting DOM?

View 3 Replies View Related

Illustrator :: Copy Fill Colour To Stroke Colour?

Jul 28, 2012

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.

View 25 Replies View Related

Illustrator :: Select A Colour From Colour Wheel

Jun 4, 2013

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?

View 4 Replies View Related

Photoshop :: Illustrator Swatches

Feb 4, 2006

i need to be able to two-tone some text. like swirl green and white or red and blue... or purple and green, etc. (or stripe text watever)

View 3 Replies View Related

Illustrator :: Color Swatches In CS6

Jul 19, 2012

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.

View 17 Replies View Related

Illustrator :: No Color Swatches In AI6?

May 4, 2013

I don't have any color swatches on my Ai6 in painting or for gradents. On my Ai CS4 it came with lots of color swatches.

View 1 Replies View Related

Illustrator :: How To Add PMS 2027C To Swatches

Feb 11, 2014

It's part of the 2013 PMS Solid Coated Formula Guide, but unsearchable in the CC PMS Solid Coated Color Book.

View 1 Replies View Related

Illustrator :: Why Do Swatches Disappear

Feb 28, 2014

Why do my swatches disappear in cs6 and how do I get them back?

View 1 Replies View Related

Illustrator :: Swatches Are Not Syncing In CC

Jun 19, 2013

I have it checked, and when I sync my swatches do not show up.

View 4 Replies View Related

Illustrator :: How To Remove ASE Swatches

Jan 3, 2014

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.

View 2 Replies View Related

Illustrator :: How To Use Gradient Swatches

Oct 17, 2012

"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?

View 3 Replies View Related







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