Export of layers in Illustrator files

Hello

It seems that there are some people who want to do what I do. I have a graphic made up of different elements in CS4. I have distributed to each of these elements to separate the layers by layers / release to layers (sequence). For an opinion on what I'm trying to do, I have 136 layers and I don't want to save each of them individually by hand!

I would now like to each of these layers that save Illustrator files.

There are two factors that I need to consider:

  1. As these individual files will be drawn to Apple Motion 5 comes alive, it is important that the script or plugin to save the files retains the positioning of the element compared to the artboard.
  2. Is it is not possible to maintain the positioning of the element compared to the artboard, I have placed 2, 1 pixel by 1 pixel "dots" in the corners opposite the artboard on a locked, individual layer. The script or the plugin could alternatively export every element layer in a new file, including these two points in each file to give movement to work with limitations.

I met many plugins that save as png or PDF layers, but what is important, I need to keep the images as vectors. I also need to keep the elements positioned in the artboard.

I also met two scripts here: http://forums.Adobe.com/message/2759051 , but the first script seems unnecessary (in my case, it saves 136 files with all items) and the second script gives me an error of syntax for the line " " " -get a list of the files in the files to be processed in the sourceFolder".

Any advice you could please lend would be most appreciated.

Thank you very much.

Try this

/*
* Description: An Adobe Illustrator script that export each layer as a file separated. For Illustrator CS 4 +.
* Use: Name of the layer is added in the name of the file. Rename the layers if necessary.
* It is a first version that has not been sufficiently tested. Use at your own risk.
* License: GNU General Public License Version 3. (http://www.gnu.org/licenses/gpl-3.0-standalone.html)
*
* Copyright (c) 2010, William Ngan
http://www.metaphorical.NET

This program is free software: you can redistribute it and/or modify it
it under the terms of the GNU General Public License such as published by
the Free Software Foundation, either version 3 of the license, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty
MARKET QUALITY or ADEQUACY has a SPECIAL USE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
with this program.  If not, see http://www.gnu.org/licenses/>.

*/

var doc = app.activeDocument;
var docname = (doc.name.split('.')) [0] ; name
var doc_artboard = doc.artboards [0] .artboardRect;

If (app.documents.length > 1) {}
Alert ("Please close other documents and rerun the script ');
} else {}

var ok = confirm ("Please save your original file before continue.\n\nLayer files will be saved in the same folder as the original file. Original file will be closed without saving.\n\nContinue? ») ;

If {(ok)

prepare layers
for (var i = 0; i)
doc. Layers [i]. Visible = false;
}

go through each layers
for (var i = 0; i)
app.activeDocument = doc;

If (i > 0) doc.layers [i - 1] .visible = false;
doc. Layers [i]. Visible = true;
doc.activeLayer = doc.layers [i];

saveAI (doc.path, doc.activeLayer.name, i);
}

Close the original file without saving changes
doc. Close (SaveOptions.DONOTSAVECHANGES);
   
}

}

function saveAI (path, name, id) {}
   
var currlayer = doc.layers [id];
var g = currlayer.groupItems.add ();
Group (g, currlayer.pageItems);
   
var t = g.top;
var l = g.left;

var newdoc = app.documents.add (doc.documentColorSpace, doc.width, doc.height);
newDoc.artboards [0] .artboardRect = doc_artboard;
var newlayer = newdoc.layers [0];
   
g.Duplicate (newlayer, ElementPlacement.PLACEATBEGINNING);
newlayer.pageItems [0] .top = t;
newlayer.pageItems [0] .left = l;

path.changePath (docname + "_" + name + ".ai");

newdoc.saveAs (path);
newDoc.Close (SaveOptions.DONOTSAVECHANGES);
   
           
Wait for the new file to save and close it before you continue.
A (if possible) callback function be better that a while loop for sure.
While (app.documents.length > 1) {}
continue;
}
}

function group (gg, items) {}

var newItem;
for (var i = items.length - 1; i > = 0; i--) {}
       
If (items [i]! = gg) {}
newItem is items [i] .move (gg, ElementPlacement.PLACEATBEGINNING);.
}
}
}

Tags: Illustrator

Similar Questions

  • Export a page to the photoshop/illustrator file with the same structure of layer?

    Hello

    Currently freelancing for a company that create using the indesign work and I try to streamline the process of splitting the outside inside work is separate to import directly into damage layers. I know you can use a script to separate the outside layers and then export as interactive pdf, this opening in illustrator and then releasing to layers (build) I'm looking for an effective way more time to get to this point? Sometimes the work does not seem to import correctly into illustrator, because there clipping masks and weird stuff out there (their marketing team is huge and those working on the same things that make things way differently). I tried two script to split the work out in components, but they don't seem to not remember the position or just produce the element of the unique work.

    A typical file would be 640 x 640 page with multiple Indesign pages with 6 layers of each placed exactly and signed illustration of positional for. The perfect scenario would be to run a script to export directly into photoshop (keeping the culture and position) if it is then just one case to draw only a file directly in ae.

    There are various forums and I got asked in all of scripts but InDesign and in particular script is not my forte. It is one that could do the trick, but the link is no longer active: http://www.zenodesign.com/forum/PageToPSLayersV3.zip

    I know it may seem as it is lazy, but there are many things to animate by project in different sizes, so any help and pointers would be great!

    Thank you

    A

    It is one that could do the trick, but the link is no longer active:

    The latest version is here. This is an AppleScript script if OSX only:

    http://www.zenodesign.com/Forum/PageToPSLayersV7.zip

    If you have any questions see this thread:

    How to export indesign layers in photoshop (same structure) layers

  • Export of several paths from photoshop to several illustrator files

    Hello

    I have a task that I often repeat, and I know that there should be a way to write a script for the same photoshop thing. But my level of technology in scripts is zero and I was hoping that someone could help me?

    Background: I am an artist and convert image Posterization files paths to feed a laser CNC cutter. The image is broken down into separate layers (which are glued on paper), and each layer is converted to describe paths (which needs to be cut by the machine). for each image that I do there are about 3-8 paths that I create, each the name of a particular name. Then I manually export each path one to an illustrator file (export > traces to Illustrator), the files are named with a prefix_ < the path name >.

    Sometimes one large image is made upwards of 25 small sections (each section is a separate photoshop file) each with 3-8 paths and it's all of them adds up to a lot of manual work each time.

    is it possible to write a script that will export each individual path from phtoshop file to an illustrator file separated with the name prefix_ < path name > in a given directory (or on the desktop if that is too complicated a foler)?

    I searched the web but have not found a result that meets this particular need. And as I mentioned my knowledge scripts is not good enough to create/change myself.

    Thanks in advance...

    Avinash,

    I think Photoshop is not the best tool for your job. I would use Adobe Illustrator,

    Vectorization or Trace of Image (since CS6).

    The vectorization of a raster image is entirely under control many parameters. Export to EPS

    shows in blocks of text like this file:

    991.532 1.85205 MB
    993.008 1.61035 992,592 3.26025 992,643 4.44482 cv
    991.515 4.21387 990,75 3.62207 990,791 2.22217 cv
    991.221 2.28271 991,45 2.14063 991.532 1.85205 cv
    CP
    . 031373.65098.501961 0 CMYK
    EF

    MO = moveto

    CV = curveto (Bezier curve)

    CP = closepath

    CMYK color =

    EF = eofill (fill mode)

    Occasionally, for straight lines:

    Li = lineto

    Ignoring the color and fill mode, it should be 'simple' extract the Bézier path information.

    Why is it necessary to separate all these paths in single files?

    Laser cutting can be controlled for all the work in a stream, because button

    and closepath do not correspond to the "move without cutting" and "end of cut this way.

    Of course I am lack of knowledge of your actual task. Please consider my contribution

    as a suggestion for an alternative.

    Cordially - Gernot Hoffmann

  • Is it possible to export each layer of an Illustrator file in PNG files automatically?

    Is it possible to automatically export each layer of an Illustrator file in PNG files, with PNG files, taking the name of the layer in the Illustrator file?

    I found this useful script before:

    http://www.Ericson.NET/content/2011/06/export-Illustrator-layers-andor-artboards-as-PNGs-a nd - PDF.

    It is very versatile

  • Export Illustrator file to PDF - 'Create PDF Compatible file' where is this option?

    Where the Option 'Create a compatible PDF file' when export us an Illustrator file to PDF? Hernani thanks

    hernanif,

    The option is only save you as or save a copy in the format I.

    Its purpose is to create a file PDF file inside HAVE.

    If you save as PDF, you have the additional option preserve Illustratot editing capabilities, which creates a file HAVE in the PDF file.

    Whatever it is, you get a file in both formats, with some differences.

  • How to import Illustrator files in Premiere Pro (maintenance of layers)

    Hi guys help me please. How can I import files have for Premiere Pro and keep all layers!

    Thank you!

    Illustrator download rasterized during import files.

    Illustrator files "loose" their layers in first but

    If you need to change the layers you can open the first scenario file in Illustrator and do.

  • Saving return CC illustrator file to CS6 without losing the layers?

    How can I save save illustrator files created in CC (CS7 version?) to CS6 without losing the layers?  When I open the files in CS6 he says "some information will be lost ' Ha!  all the layers and the separation is lost, so is unable to separate the parts... everything seems grouped and cannot be separated?

    When I return to my computer (other) where I was stupid enough to upgrade to CC, I can't figure out a way to save money as soon as I can with InDesign and save as a file idml.  Help!

    The first dialog box offers the location and the type of file to save. You want a .ai file. The second dialog box that mentions Monica is the dialog box Options of Illustrator in which you choose the version of Illustrator by the drop-down list at the top. It is in this area that you want to choose Illustrator CS6 version to save.

  • What is a structured layered illustrator file?

    Hello

    IM currently converting vector images, they asked some images can I supply in a 'illustrator file structured in layers ".

    IM relatively experienced with Illustrator and have never come across the term before im assuming they mean simply that they want the AI. file with all layers maintained?

    Any help would be greatly appreciated.

    Thank you

    Hello

    I enclose the image. The image was redrawn at first and then I manually drew on each piece of the picture then yes it is pulled manually there are approximately 50-70 layers.

    Thank you

  • Possible to spend several layers of an Illustrator file to another?

    I have 2 great illustrator files (say version 1 and version 2). If I have 40 layers on version 2 I want to send/add to version 1, is - it possible (without copying and pasting in place each individual layer?)

    Thank you

    in the layers menu: "paste remembers layers" is checked. Select the illustration, the copy paste into the new document. It will recreate the layer like prev doc structure.

    G

  • Cannot print illustrator files

    Hello

    •The problem:

    I have some illustrator files - I cannot print. I tried many different things to make impression (details below).

    The files I have problems with all use models (model no standard color chart). 1 group of files use a jpg-model, other models of vector group.

    Those with the vector model does not print (print printer spools, RIP printer file (I checked it on the printer) after this nothing happens, it does ' t get in the joblist). File jpg-jacquard prints only 1 of 4 pages after over an hour of treatment. All files are multi-page files. File sizes are between 20 MB and 80 MB. It is only a minority of the files with problems.

    Version •Illustrator:

    I'm using CS5, some of my colleagues use CS4/CS3.

    •That I tried, failure:

    AI:

    -Flatten layers.

    -Deselected "create a PDF Compatible".

    "- Used the 'remove items unused palette"-action. "

    -I can't select 'Print as Bitmap' when printing under Advanced (it appears gray).

    PDF:

    -Record in PDF format (help with a few files)

    I've tried different settings:

    -Deselect "Preserve Illustrator editing capabilities"

    -Different standard pdf (PDF/X-...)

    -Different compression settings: interpolation of 600ppi/300 PPI/150ppi /..., compression: zip, also tried jpeg.

    -Tried to print PDFs with Adobe Acrobat Pro and Apple Preview.

    -Use advanced > optimization PDF from Adobe Acrobat Pro.

    •Imprimante-info:

    The two printers-netwerk, two Konica Minolta.

    Use the Fiery Image controllers.

    One is a bizhub C450, the other is a bizhub C360.

    Used another more professional printer (bizhub Pro C6500) too much for one of the vector-model files, without result.

    The latest drivers are installed.

    •Compatible, but not a good solution for everybody:

    Export to jpg, using plans 'work' selected, maximum quality.

    It works, for CS4 and CS5 it works more or less well, but in my understanding CS3 does not work with multiple work plans, this is a real problem (copy/paste of simple pages then export all the pages...) So I hope a transverse normal, more elegant solution. It's a minority of the files, but still enough to be a serious problem.

    Thanks in advance for the help!

    I think I would try save on an Illustrator PDF file and open it in Acrobat (I know you've tried this, just stick with me). Once opened in Acrobat, hit print and the print dialog box under Advanced select the impression that the image checkbox.

  • Cannot convert or save files Flash CS6 in an Illustrator file

    I'm in a project using Flash CS6 vector contour drawing. My customer wants Illustrator files for their needs, I can't save or export all my work in Illustrator format.

    How can I go to get a result, I am I missing some kind of plugin? Can I export JPEGs and other shaped images but cannot make or open my Flash files in Illustrator format files, any help.

    You can export a svg (file > export > image > svg) and which can be opened and edited in artificial intelligence.

  • Is it possible to export the layers of work plans?

    I was so happy when Adobe introduced plans to work in Photoshop. And was impatient to try it on the practice. And earlier I finished Web site design that has by page 3 work plans. And a lot of layer comps on every page.

    And it turned into a nightmare...

    I can't export all the layers automatically. I have to manually put in each layer comp, click on "export as...". ». In the same file names are the same (called as a work plan). So I have to rename the exported images before the switch then layer comp and export it.

    If I use the command "export > Layer Comps to files...". ', it exports all work plans in 1 file for each layer comp. But the worst thing is that these files look like this:layouts.jpg

    -with huge space empty around work plans.

    I spent a lot of time designing the site and now I even can't show the client!

    So my question is:

    Is there a way to export the layers of each work separately plan with corresponding file names? (as it works for the old "Layer Comps to files... ("without work plans).

    But if there is no solution I think it's a major issue in usability.

    Thank you in advance for your help!

    If nothing else arises perhaps you should ask for help on to

    Photoshop scripts

  • Floating head of Illustrator file

    Hello. I'm trying to fix the head of my character to the body that it floats in the air right now. In the illustrator file, it is attached, but when they are imported into Ch it is floating in the air. I am able to put it in the Properties menu, but head still floats around the body of characters and not remains attached to the "neck." I'm still working on the snap then this is definitely a work in progress. I'd be happy to send a staff member a file if that would help.Screen Shot 2015-07-21 at 10.37.41 AM.pngScreen Shot 2015-07-21 at 10.43.54 AM.png

    Remove the "+" of the head, neck and body layers. With '+' you say character to deform this subpuppet regardless. Without it, they all belong to the same mesh.

  • Attract importing Illustrator files in Adobe

    Hey all,.

    I am a bit new for adobe draw and love it a lot. However, I can't find out how to import illustrations I created in I draw from Adobe. I'd like to change these files with my pen and give the drawing a more natural feel. Also, if I import an idea file in illustrator and make changes, those changes will appear in the draw?

    Thank you!

    Currently, there is no workflow in support of .ai files layers in layers .draw.

    the only way you can bring your illustrator file in a project of drawing lots is reference as a layer of bgd raster/photo.

    But if you're already starting in Illustrator, you can easily go back to illustrator to draw.  Once your drawing is open, move the layers in your existing AI project.

    regarding the file Adobe ideas (idea), all your layers meet discreetly as they were in the ideas.  The transparency of each layer is also honored in the transfer of ideas to draw, but there is no way to switch to illustrator between ideas in the draw... It's a direct hit.

    Slightly off topic: you can imitate the draw brush styles in Illustrator using a mouse.  If you want to use a pen with your computer, Wacom works well with illustrator.  If you want to dig deeper, there are 3 large part plugins for AI such as AstuteGraphics

  • Illustrator file missing objects when placed in InDesign

    I created an Illustrator file that contains text converted to outlines. Some of it is white, and some of it is other colors. When I save the eps file, pdf or export in jpg format and then place the files in InDesign, the text shown in white is not. Advice?

    Verify that the attributes Panel if it is set for a recovery

Maybe you are looking for