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
ADVERTISEMENT
Jul 31, 2013
I am trying to rename/renumber a folder of 100 pictures, so they are all in 3 digits, but remain in the order & have the same number associated with the same file. Right now the folder is numbered 1, 2, 3, 4, etc.. I attempted to do the batch rename through Photoshop to make the folder 001, 002, 003.etc, BUT when I did this, the first picture 1 turned into 001..which is great...but the old 2 turns into 002, but is actually what 10 used to be.
19 turns into 011 instead of 019
40 turns into 035 instead of 040
Why is Photoshop changing the original number to a 3 digit, but changing the number it should have been. I just want it to be 001, 002, 003, 004, 005, 006, 007, 008, 009, 010, 011, 012..
View 13 Replies
View Related
Oct 9, 2012
I'm trying to find a script that batch rename/renumber a group of selected layers. So far I've been able to find a script that renames every single layer in a Photoshop document (overkill). Or there's the CS6 Tab rename trick (too slow).
I routintely export PSDs from Illustrator for use in After Effects. But in Photoshop, I'll get a couple hundred layers named <path> or <path> + <path> or <group>. Renaming by hand is out of the question. But I don't want to rename every layer the same.
View 4 Replies
View Related
Sep 19, 2012
Is there a system variable that disable the "Rename and Renumber Sheet" dialogue box from appearing when double clicking on layout tab of current drawing which is part of sheet set?
I used to be able to just double click on a layout tab and change it. This dialogue box can't seem to edit it if the drawing is open. We use the layout the tab as current revision of drawing.
I know I accidentally click on yes before when it asked me if I want to use the dialogue box to edit layout tabs but can't seem to find anything on how to disable it.
View 1 Replies
View Related
May 9, 2013
Is there a script that can create layers with csv file?
View 5 Replies
View Related
Dec 27, 2013
How to add the sheet description field into the rename & renumber window? I ask this because during the sheet set-up process we use the sheet description often, and I would like to go from sheet to sheet without having to right click and edit every sheet.
Civil 3D x64 2012
Win 7 x64 Ultimate
I7 3820 (3.6ghz quad core with HT)
32gig RAM (Corsair XMS3 4x8g)
Intel x z79 mobo (BOXDX79TO 2011 socket)
Radeon HD 7850 2gb GDDR5
View 2 Replies
View Related
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
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
Jun 21, 2013
I have about 160-ish images I scanned in as .tif's (my scanner offers .bmp, .jpg, .png, and .tif for saving scanned images as) @ 300-dpi. I'd like to batch export them all to .xcf (for future working with) and .png (I know I could have chose png to start but I thought .tif would be the better choice as a first format). Is it possible to do this with a shell-script? I'm fairly certain I could concoct something to .tif -> .png using ImageMagick (I don't think it supports .xcf) but I'd like to use The GIMP for the whole process if possible, and I'd rather not do it by hand. As it is I'm going to have to figure out how to batch-rename (well, I know how I'm going to do it, a shell script, but how to write it is going to be the tough part for me) about 100 if the images to prepend a 0 to the file name (I started with a two-digit numbering system not realizing I had so many images and would like to keep all the names listing properly on FreeBSD).
Anyway, If such a shell export-to-xcf-and-png script is even possible (I really, really do not want to do this manually).
View 6 Replies
View Related
Dec 20, 2012
rename a layer of illustrator like document file name? (with an action)
View 12 Replies
View Related
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
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
Sep 26, 2013
i can´t get any Batch script to run.For example a PDF making Batch with a folder selection.I always get the alert, no matching files found.I use cs 5 on a g 5 with osx 10.8.2..why does no file fit in the "mask" ?
Adobe permits you to use, modify, and distribute this file in accordance with the terms of the Adobe license agreement accompanying it. If you have received this file from a source other than Adobe, then your use, modification,or distribution of it requires the prior written permission of Adobe.
Export to PDFs.jsx
DESCRIPTION
This sample gets files specified by the user from the selected folder and batch processes them and saves them as PDFs.Edits by Patrick Mineault:
- only .ai files processed
- files saved in same folder as the input files
- export files have name (oldname)_export.pdf
- PDF settings: non-editable / acrobatLayers=false
for maximum compatibility with Preview
// Main Code [Execution of script begins here]
// uncomment to suppress Illustrator warning dialogs
// app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
var destFolder, sourceFolder, files, fileType, sourceDoc, targetFile, pdfSaveOpts;
// Select the source folder.
sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator .ai files you want to convert to PDF');
[code...
View 9 Replies
View Related
Jul 24, 2013
i'm totally new to scripting. i have a bunch of illustrator cs5 files (actually some of them might be older cs versions). they all have an artboard size of 200 x 200. i need to resize them to 700 x 700 and save them as png24 preserving transparency and keeping the same file name. is this possible? if so, any examples?
View 1 Replies
View Related
Jan 27, 2013
I am trying to write a script that can batch EPS to high res JPG (20 MP and over). I can set this up basically, but I have run in to a few problems.
The maximum scaling in jpeg export options is 776%, but some of my EPS files are very small in size - so 776% does not create 20MP rasters.
So, I need to find a way to enlarge both the vector and the artboard to a larger size before exporting for jpeg.
View 6 Replies
View Related
Oct 16, 2013
I'm looking for a script that can convert .ai/.eps to PNG from subfolders or multiple level of subfolders. i found this awesome script posted a year ago here by Larry G. Schneider [URL] however it doesn't get the files from subfolders, just the one folder you specify.
View 2 Replies
View Related
Nov 25, 2012
I found a script that does the job, export tones of ai files to pdf, but I have some files which are in sub folders, and I was trying to find a way to modify this script to include subfolder, but no luck.
Adobe permits you to use, modify, and distribute this file in accordance with the termsof the Adobe license agreement accompanying it. if you have received this file from a source other than Adobe, then your use, modification,or distribution of it requires the prior written permission of Adobe.
This sample gets files specified by the user from the selected folder and batch processes them and saves them as PDFs.
Edits by Patrick Mineault:
- only .ai files processed
- files saved in same folder as the input files
- export files have name (oldname).pdf
- PDF settings: editable / acrobatLayers=true for maximum compatibility with Preview
// Main Code [Execution of script begins here]
// uncomment to suppress Illustrator warning dialogs
// app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
var destFolder, sourceFolder, files, fileType, sourceDoc, targetFile, pdfSaveOpts;
// Select the source folder.
sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator .ai files you want to convert to PDF');
[code]...
View 11 Replies
View Related
Nov 20, 2012
I need to find a way to convert a LOT of ai files, individually, to low res pdf's. Preferably with the presets I want, not some defaults. I'm not interested in an action. I was hoping for a droplet, script, or something similar.
I did find this and it looked promising... [URL] ....
That almost worked. Ultimately, for some reason, it couldn't see the ai files sitting in the specified folder.
Running CS5 with MacOS 10.8.2
View 2 Replies
View Related
Nov 29, 2011
I'm looking for a script/program that if you run it, all the .eps files in a folder will batch convert to a png-24 with 250% scale.
View 20 Replies
View Related
Mar 20, 2012
I have a couple thousand AI authored EPS files with a specific swatch name (SpotBlack) that I would like to rename (black) -- is there any method to do this en masse, preferrably outside of Illy using a text editor?
View 7 Replies
View Related
Nov 1, 2013
I have a couple of thousand old cliparts in .wmf format that I have to convert to .ai. What I need to do is simply open the .wmf, store it as .ai in exactly the same location.
Actions didn´t work because the files are in mutliple folders and subfolders. "Actions" keeped saving all the ai-files in the same folder. Which is kinda weird since this doesn´t happen when using the same action in PS.
Sure, there are some quality issues with converting wmf to ai - but for what we´re plannning the quality is sufficient.
CarlosCantos script at [URL]..... looked like the thing to do. Loaded it in apple script, patched the lines to open .wmf and saved it in the Illustrator script folder, but all I got was a bunch of error messages.
View 10 Replies
View Related
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
Apr 7, 2012
Is it possible to reference layers or groups by their names instead of their index using VBA? If so, what is the sytax? I know you can do it in Extendscript, but I'm not finding info for VBA.
View 7 Replies
View Related
Feb 13, 2013
I am trying to export layers to SVG, but I need to access the "Use Artboards" option in my ExportType.SVG options. I do not see it in the Javascript reference: [URL]....
View 8 Replies
View Related
Jun 30, 2013
script that is able to do the same as this photoshop one [URL] ...., I would use that one in photoshop but its not working in CS6.
find a script that will seperate the text into layers ready for export to After Effects to be used in Kinetic Typography pieces.
View 3 Replies
View Related
Feb 18, 2013
I'm trying to create a script via javascript for Illustrator.
My problem is : I have a AI file with multiple layers, i want to create one artboard per layer, in order to export a multipage PDF ( each page contain 1 layer ).
The layers represents the differents type of print ( vernish, color, hot gold, pressure ... ) and/or color type ( Pantone, CMYK, cut, kisscut ... ). My client want a PDF for see each type of print or color type per page.
I'm trying 2 ways :
1st solution : Create new artboards, and duplicate ( or move ) layers content on the new artboad, but the function move/duplicate don't work to move content on another artboard.
2nd solution : Create new document with the same number of layers as artboard and duplicate layer to the new artboard on the new document.
View 6 Replies
View Related
Mar 4, 2013
Whenever I open a file, Layers are randomly expanded in the Layers palette.
Is there a way to run a script that collapses and/or expands all layers?
View 3 Replies
View Related
Feb 6, 2014
make a script for layers to pdf?
ADHESIVE, WHITE, Layer-8, Layer-7, Layer-6, Layer-5, Layer-4, Layer-3, Layer-2 and Layer-1 needs to be on seperate pages.
Jobbnr and Passmerk / Registrationm. (incl. sub-layers) needs to be on all pages!!
HJELPELINJER, COLOR, CARRIER, Guides and Field Background don`t need a page.
Is it possible to make such a script?
View 1 Replies
View Related
Apr 26, 2012
is there a way that I can loop through all layers and sublayers looking for a name of a layer? I have one that loops through only top level layers. I am thinking I have to somehow incorperate all pathItems, groupItems and the like to incorperate all types of "layers" there might be, since a group is technically not a layer but a groupItem.
this is what I am doing so far:
for (var i = 0; i < numberOfLayers; i++) {
var customName = "div structure";
var myLayer = app.activeDocument.layers[i];
[Code]....
View 6 Replies
View Related
Jan 24, 2013
I am trying to add a prototype to the Layers object so I can do something like try{ .getByName(name) catch{ return null. For when the named layer doesn't exist. (It gives an error for me in CS5). So unfortunately me trying to go Layers.prototype. my method doesn't seem to work at all.
View 3 Replies
View Related
Jul 6, 2013
Is there a way to open a file as a layer? I want to open multiple files in the same window to make a collage. Currently, as I open each file they all open in separate windows. The "Open Document As Tabs" option in the User Interface preferences is not selected.
View 1 Replies
View Related