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


ADVERTISEMENT

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 :: 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 :: 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 :: Copy Text For Filename?

May 29, 2013

I've looked around for this but haven't found much. I have a server with thousands of print proof sheets, and since the beginning, long before me, the files were saved with verbal descriptive names. It would be a lot better if they were saved according to the PO number. All the proof sheets have a po number listed in pretty much the same place on the sheet... is there a way to copy that PO number from the field within the pdf, and save the file to a new folder using that number as the filename using a script?

View 28 Replies View Related

Illustrator Scripting :: Add Image Link Filename To Each Artboard

Jan 24, 2014

I have a document with several artboards. In each artboard is a different linked image. Is there a way to add the linked filename to the bottom of each artboard?

View 10 Replies View Related

Illustrator Scripting :: Relink Multiple Images And Link Filename To Artboard

Jan 21, 2014

I have been looking for a solution to automate a printing and ordering process. I have a design template with 2 pages both 8.5x11 in size. One page represents the front and other the back for double sided printing. I have 6 different images per sheet so in my links panel I have 12 total links, 2 of each. I was wondering if there is a script to update all the links with the same filename with other image? Currently I have to search through all the images and update each one.
 
I have 6 artboards dividing the 8.5x11 sheet proportionatly. Each artboard represents a different order. Is there a script to write the linked filename to the bottom corner of each artboard?

View 5 Replies View Related

Illustrator :: Rename Path As Part Of Action

May 31, 2012

Is it possible to rename a path as part of an action?

View 1 Replies View Related

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

Lightroom :: Rename Filename Without Updating Metadata?

Nov 10, 2013

I would like to find out if it is possible to rename filename in LR 5 (after importing the images) without changing the original filename in EXIF metadata? For example the original filename is DSC_1234.NEF and I would like to rename it to 'Hawaii_1234.NEF' in the catalog and also the filename in HDD, but woud like to keep the original 'DSC_1234.NEF' in Metadata.
 
Seems like LR will also rename filename in Metadata though I read previously renaming after import (through Library - Rename Photo option) will not alter the 'original' filename in Metadata.

View 7 Replies View Related

Illustrator Scripting :: Change Values In Action

Sep 13, 2012

I frequently record Illustrator Actions. My actions are quite long, but they all involve three common steps:
 
-Assigning Notes to shapes   
-Assigning Swatches to shapes   
-Selecting shapes that have a specific notes 

I often need to re-record my actions to repeat all the steps, but to change the notes/swatches that are selected/assigned during the action.
 
Illustrator has a re-record command. This command is great for changing the value of the note in number 3 of my list. However, it does not work for items 1 & 2 in my list. For these items I have to delete the old step in the action and then record a new step with the new swatch/note.
 
I know macros in Microsoft Office have an editor which allow you to change values in actions. Is there anything similar for Illustrator actions?You can save an Illustrator action and open it in Text Edit. However, all the attribute/swatch values are saved as weird strings, so I don't know how to change them.

View 4 Replies View Related

Illustrator Scripting :: Execute Action From JavaScript In CS6

Jul 10, 2013

I've seen on this forum a lot people saying that in CS6 you can now call an action from JavaScript. However, I haven't been able to find what the syntax is to do that in the reference or the guide. Can you actually do this now with Javascript?

View 2 Replies View Related

Illustrator Scripting :: How To Select 2 Paths With Action

Jul 17, 2013

I need to create an action. A simple one. The idea: One path is selected, a user runs the action, it makes a copy of that path, moves the copy, select both the path and its copy and makes a blend.
 
I tried to record that action, but Illustrator does not record the paths selection/selecting.
 
Even a simplier task: How, in general, having one path selected, select an item/path above or below it? And how to select them both?
 
I can make a script for that, but the requirement is to keep it as simple as possible: have an Action only without any scripts, if possible.

View 2 Replies View Related

Illustrator Scripting :: Action To Change Width Of Image?

Jun 8, 2012

I created an action to change the width of an image. I execute the action using DoScript javascript method.
 
The first action Obj1 will select the whole image and second action Obj2 will open the transform panel and change the width of the image.
 
app.Open("D:LWW_Castoff45991_09_03.eps")       
app.DoScript("Obj1", "LWW")       
While (app.ActionIsRunning)           
Thread.Sleep(500)       

[Code]...

In the above code, the second action 'Obj2' is not getting executed. Both the actions  are getting executed individually. Let me know  the problem and how  to execute both the actions.

View 5 Replies View Related

Illustrator Scripting :: Attaching Action To A Button In JavaScript

Sep 9, 2013

I'm playing around with attaching an action to a button in javascript but I'm just not getting it
 
I've tried putting it into a function like so
 
function deleteSwatches () {
= app.doScript("Delete Unused Swatches", "Custom Art Actions");
}
 
Then calling the action with said function but it doesn't respond.

View 2 Replies View Related

Illustrator Scripting :: Can Execute Action From Command-line Using AI?

Oct 9, 2012

I need to do a form of automation, but wanting to execute this from another process (self-made application). Adobe Photoshop has this mechanism called "Droplets" that are executable based upon Actions defined in Photoshop (as far as I can understand). Is it possible to let AI do some work for you from an external application as with Photoshop (assuming you are able to execute the executable once it has been created)?

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 :: How To Trigger Actions From Action Panel Using JavaScript

Jun 3, 2012

Is it possible to trigger actions from the actions panel using javascript? I see that you can do this with AppleScript but I've written everyting so far in javascript and don't know AppleScript, though could learn it if I need to.
 
I'm writing a script that creates a lot of complex graphic files and have all the prototypes done except for wanting to change the color of a few of the points in a mesh object. Apparently this can't be done in javascript, so I was hoping to mid point in the script, trigger an action from the panel to edit the mesh, then let the script carry on its way.
 
Is this possible?

View 5 Replies View Related

Illustrator Scripting :: How To Use Action Script To Save PDF File With Color Profile

Apr 16, 2013

I tried following action script code to save PDF file with color profile attached:
 
                   var saveOps: PDFSaveOptions  = new PDFSaveOptions();
                   saveOps.colorConversionID  = ColorConversion.COLORCONVERSIONTODEST;
           saveOps.colorDestinationID = ColorDestination.COLORDESTINATIONWORKINGCMYK;
           saveOps.colorProfileID = ColorProfile.INCLUDEDESTPROFILE;
                                       
           doc.saveAs(pdfFile, saveOps);
 
But got following errors: error an Illustrator error occurred: 1346458189 ('PARM').  What is the correct way to save PDF file with color profile?

View 1 Replies View Related

Illustrator Scripting :: Action To Batch Export Folder Of AI Files To Create 300dpi PNG

Oct 3, 2011

I created an Action to batch export a folder of .ai files to create 300dpi .png's of the .ai file's artboard. I did this by simply recording "Export...as png" with my desired settings then Batch running the Action on desired folder of .ai files.  The files were successfully exported, the trouble is that the exported files lack a .png file extension. My intent is to take these PNG files and merge them into a single PDF using Acrobat Pro. Unfortunatly, without the .PNG extension, Acrobat Pro does not recognize the file types and does not let me use the Combine Files feature on them. Going back and manually adding a .png at the end of the exported files defeats the time-saving purpose of Batch Processing all together. Is there something I am missing or doing incorrectly? I have included screenshots of 1) My Batch Action settings 2) folders showing files without .png extension and 3) visual of what I see when I am trying to combine PNGs into a PDF.

View 4 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 :: Can't Get Add Layer To Stay In Action

Jun 8, 2012

Actions in CS6 have a lot of bugs. Can not get an action to not have a stroke on it, can not get the "add layer below" to stay in an action.

View 3 Replies View Related

Illustrator Scripting :: How To Delete Layer

Apr 3, 2012

I am writing my own Illustrator scripts.
 
How do I write a script to delete layer with ".ARD" name.

View 8 Replies View Related

Illustrator Scripting :: Import PSD To AI Layer

Sep 8, 2012

I am new to scripting in Illustrator.I am trying to import PSD files into an AI layer.So far this is my solution.
 
var TRGdoc = app.documents.add(DocumentColorSpace.RGB, "1920", "1080");
var onFile = File( '~/Desktop/jpeger/illDanceREFon_00642.psd' );
var REFon = app.open(onFile);
var LAYon = REFon.layers[0];
var LAYstuffon = LAYon.pageItems[0];
LAYstuffon.selected = true;
app.copy();
TRGdoc.activate();
var TRGlayer = TRGdoc.layers[0];
TRGlayer.selected = true;
app.paste();
 
It works most of the time but sometimes it hangs up on the paste. 

View 4 Replies View Related

Illustrator :: Select Last Layer In File With Action?

Nov 1, 2012

How can you select the last layer in an Illustrator file with an action?
 
It must be possible. After all it's 2012....

View 4 Replies View Related

Illustrator Scripting :: How To Script Using Highlighted Layer

Dec 19, 2012

Is it possible to script using a highlighted layer.
 
I know that selected items can be used for scripting, but I would like to just highlight the layers I want to process but not directly select the items on those layers.

View 2 Replies View Related

Illustrator Scripting :: Delete Some Text From Layer

Jan 3, 2013

what is the script to delete some letters from layer?For ex. I've "Layer XYZ" and I want "Layer XY".

View 9 Replies View Related

Illustrator Scripting :: Making Layer Visible By Its Name?

Mar 3, 2013

How to make a layer visible by using the name of the layer, with javascript?

View 2 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







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