Illustrator Scripting :: How To (with One Click) Create Multipage PDF Consisting Of All Layers

Mar 5, 2010

Often times when designing a logo I create different versions and variable options on layers. This can result in several layers in one Illustrator file. Is there an easy way or an existing script that will allow me to (with one click) create a multi-page PDF consisting of all the layers within my .ai file? The current method is turning on each layer, performing a save-as (PDF), then turning off said layer and turning on the next layer and repeating the task and so-on-and-so-forth, etc … It becomes tedious and quite often I save over the previous version, forgetting to re-name it or forget to perform a save on a certain layer. I have never written my own script before but am not opposed to trying, where do I begin?

View 12 Replies


ADVERTISEMENT

Illustrator Scripting :: Creating Dialog Consisting Of Multiple Buttons

Apr 24, 2013

I want to create a dialog consisting of multiple buttons. As a result I want value which button was pressed by user.
 
The script (shortened to problematic part):
 
// I'm looping through elements on layer 'warstwa' from kolorStart to kolorStop, 'k' is used for number buttons

for (i = kolorStart, k = 0; i <= kolorStop; k++, i++) {
myButton[k] = myButtonGroup.add ("button", undefined, warstwa.pageItems[i].contents);
myButton[k].label = warstwa.pageItems[i].contents;
myButton[k].onClick = function () { wybranyKolor = myButton[k].label; myWindow.close(); }
}
 
The result:

But buttons don't work, wybranyKolor returning 'undefined'. If I change "wybranyKolor =  myButton[k].label" to "wybranyKolor =  myButton[k-1].label" I get proper answer but it is the same for all buttons so it looks that all buttons have the same action assigned. How to get each button to has unique name which can be passed to variable?
 
Probably I can achieve the same with radio buttons' list but with buttons it is one click less for the user.

View 7 Replies View Related

Illustrator Scripting :: Open SVGs In A Folder And Save Them To One Multipage PDF

Mar 24, 2012

I'm using Illustrator for work and I love it, I never needed scripts yet. Now I have couple houndred svgs coming in per day, I would like to have a script that opens every svg one by one in the selected directory and add them to a pdf as pages of the same size and than save it.
 
How many files I could put in 1 pdf this way?
 
I'm using Illustrator CS5 on Win7 x64.

View 7 Replies View Related

Illustrator Scripting :: Can Create Layers With CSV File?

May 9, 2013

Is there a script that can create layers with csv file?

View 5 Replies View Related

Illustrator Scripting :: Create Fitted Artboards From Layers?

Oct 8, 2012

Any script that will create artboards for each separate layer?

View 1 Replies View Related

Illustrator Scripting :: Create New Document With Profile And Multiple / Named Layers?

Mar 27, 2013

I can't figure out the proper commands to fill out and complete the script below. What I am trying to do is:
 
- Create a new document using one of the Profile presets (or have the New Document dialogue open so I could select the profile, size and bleed)
- Make 3 layers, each with a diferent name
- Create a rectangle the size of the artboard on the bottom layer, with a swatch stroke and no fill
- Create a rectangle the size of the bleed on the middle layer, with no stroke or fill
 
Like I said, I haven't gotten far at all. I've read through the basic scripting guides and I'm just not understanding all of the language needed to string things together.
  
tell application "Adobe Illustrator"
make new document
set topLayer to make new layer ¬
at beginning of document 1 with properties {name:"Vector"}
set bottomLayer to make new layer ¬
at end of document 1 with properties {name:"Through Cut"}
end tell

View 6 Replies View Related

Illustrator Scripting :: Create Individual Symbols From Individual Layers?

May 10, 2012

Is there a way to do this? Is there a script out there that can create individual Symbols from individual layers?
 
EDIT: I pasted this in the wrong forum so i moved it over here.

View 16 Replies View Related

Illustrator Scripting :: How To Add Buttons In Script Which On Click Run Different Codes

Nov 3, 2013

If we run script then it should display 6 button along with ok, cancel button. If we click on button1 then the coding assciated with button1 should execute and so on.
 
button1
button2
button3
button4
button5
button6
Ok Cancel.

View 4 Replies View Related

Illustrator :: Way To Collapse All Layers In Layers Panel With One Click

Jul 18, 2012

Is there a way to collapse all layers in the layers panel with one click?

View 1 Replies View Related

Illustrator Scripting :: ESTK 3.6 Crashes When Open Preferences And Click Fonts And Colors

Sep 10, 2012

I am using a MAC OS version 10.6.8 and ESTK 3.6.  When I open ESTK the font is very small and I want to make it larger.  I go to ExtendScript ToolKit>Preferences when I click Fonts and Colors the program crashes and sends an error report to Apple. 
 
I would like to script Illustrator with .jsx instead of AppleScript because I am more familiar with JavaScript (plus it's cross platform compatible). 

View 4 Replies View Related

GIMP :: Make Logo Consisting Of Bunch Of Simple Shapes Which Are All Individual Layers

Sep 2, 2013

I'm trying to make a logo consisting of a bunch of simple shapes which are all individual layers. All of these layers are on top of a transparent canvas. I'm not sure if canvas is the right word, but basically what I mean is that I launched GIMP and made a new image that's 512x512 filled with transparency, and by default that became a layer titled background which I consider to be the canvas of my entire Image.

I can't seem to draw on new layers anymore. I've been trying to make new layers filled with transparency and draw on them with the free select tool, ensuring that the opacity is not 0 and that the layer is selected, but its drawing on the background layer rather than the layer I made to draw on. So now when I try to adjust the position of the layer, the shape I drew stays in the same spot because its not part of the layer.

View 1 Replies View Related

AutoCAD Civil 3D :: Create Assembly Consisting Of Two Curbs Subassemblies

Jun 7, 2012

I'm trying to create an assembly that consists of two curbs sub-assemblies that are tied to independent alignments with a pavement section in between them.  I have been successful in actually creating an assembly with the two curb sections, but I cannot figure out how to define a line or pavement section that will connect one gutter to the other.

I have one curb tied to the main baseline and the other tied to an offset.  I have assigned horizontal alignments and profiles to the baseline and the offset.  The curbs actually place where I want them when viewed with the section editor.  I had thought that I could use the LinkToMarkedPoint subassembly and simply attach it to the gutter of one curb and to a marked point on the gutter of the other curb, but I can't get it to actually work.

Again, the curb alignment and profiles are completely in independent one another, and I need a way to define a pavement section (or just a surface) between the two gutters.

View 2 Replies View Related

Illustrator Scripting :: Get Layers By Name VBA?

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

Illustrator Scripting :: How To Export Layers To SVG

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

Illustrator Scripting :: Create Mirror Text And Stroke Text In AI Scripting

Mar 16, 2013

the Script of creating mirror text and stroke text in Adobe illustrator scripting.

View 4 Replies View Related

Illustrator Scripting :: Split Text Into Layers?

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

Illustrator Scripting :: Move Layers To New Artboard

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

Illustrator Scripting :: Expand And / Or Collapse Layers?

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

Illustrator Scripting :: How To Make A Script For Layers To PDF

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

Illustrator Scripting :: Loop Through All Layers And Sublayers?

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

Illustrator Scripting :: How To Add Prototype To Layers Object

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

Illustrator Scripting :: Opening Files As Layers?

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

Illustrator Scripting :: Deleting And Replacing Layers?

May 1, 2013

So I'm trying to create a fairly simple script that will measure the size of art on the artboard for making printing plates. That part I have working. But once I have made one file, I have to delete the measurements layer manually (which is where the script puts them) so that I can make the next one. I need the script to check and see if there is a layer called "measurements" delete it and then create a new one called "measurements" in which to put the dimensions of the (new) artwork. This way I can keep making files and "saving as" with a new name.

View 1 Replies View Related

Illustrator Scripting :: Removing Empty Layers

Feb 13, 2014

I am looking for a script that will look through all the layers in my file and if there are no objects on the layer I would like it to delete them.how to remove a layer with a script, just not how to identify a layer or many layers that may no have objects on them.

View 6 Replies View Related

Illustrator Scripting :: Placing All Symbols Into Layers

May 14, 2012

How I can place all my symbols at one time in the File and on there on layers? is this possible?
 
The only dialog box i could find is in the corner of the symbols palette is "Place symbol"... I tried to create an action but it wont go to the next symbol.

View 2 Replies View Related

Illustrator Scripting :: Moving All Layers Into Single Layer

Nov 20, 2013

I'm new in scripting and i need to make a script that moving all layers into a single layer (in Illustrator i press CTRL+A then CTRL+G in layers and works) but i need that in script.

View 2 Replies View Related

Illustrator Scripting :: Group Items Are Returning As Layers

Apr 5, 2012

I have a layer that contains two clipping groups (groups with a clip mask and other art).  When I call layer.groupItems it returns an empty array.  When I call layer.layers it returns the two clipping groups.  I need to know if these layers are clipping groups, but if they are coming back as layers how can I figure that out?

View 8 Replies View Related

Illustrator Scripting :: Renaming Layers To Be The Text Inside

Oct 9, 2013

I've got an Illustrator CS6 document that has 500+ layers with individual words on them (a word cloud).  I'm needing to animate this in AE.  When I "Release to Layers (Sequence)", all of the layers become Layer 1, Layer 2, etc.  Is there a script that will rename all of those layers to be the text inside them? 
 
i.e. Layer 1 has the word "Pencil" as a sub-layer, editable text.. I need to rename the Top-Layer Layer 1 to "Pencil".  I'm hoping there is a script that can do this so I don't have to manually rename all of the layers.I have found this script:
 
var idoc = app.activeDocument;
var ilayer = idoc.activeLayer;
for (i=0; i<ilayer.layers.length; i++) {
    var isublayer = ilayer.layers[i];
    isublayer.name = isublayer.pageItems[0].name;
}
 
But is doesn't seem to do what I need.

View 8 Replies View Related

Illustrator Scripting :: Convert Layers In Document To Artboards?

Sep 24, 2013

Script which would convert the layers in a document to artboards? At present I have a lot of documents with a couple of hundred layers on each of them, but I've decided to change the way that I organise my workflow and started using artboards instead. I don't really have the time to spend moving them individually from a layer over on to an artboard as there are a lot.

View 1 Replies View Related

Illustrator Scripting :: Paste In Place Across Layers Script

Jun 1, 2012

I'm looking for a script to paste an object (paste in place) on top of all other layers in a file.
 
I know I can position a single object on the top layer and then turn the bottom layers on and off, but for my needs (and in this situation) I need to actually paste that object onto each layer.

View 1 Replies View Related

Illustrator Scripting :: Hide Layers Based On List?

Apr 8, 2011

I have a very complex graphic with many elements and I would like to find a way to hide layers based on a list.  In the documentation that there is a way to tell if a layer is hidden, but didn't see anything about a way to actually to control the hide/unhide property.  Is this possible?

View 15 Replies View Related







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