Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Using custom scripts

From: Drawing Vector Graphics

Video: Using custom scripts

Another way to customize your user experience with Illustrator is to use custom scripts in order to make the app do what it natively can't do out of the box. A simple Google search will bring up thousands of custom scripts people have created and provided online. Once you have a script you can add it to Illustrator and start using it. Here is how you add a custom script to Illustrator. I want to show you how to use two custom scripts for Adobe Illustrator that is going to make your life a lot easier.

Using custom scripts

Another way to customize your user experience with Illustrator is to use custom scripts in order to make the app do what it natively can't do out of the box. A simple Google search will bring up thousands of custom scripts people have created and provided online. Once you have a script you can add it to Illustrator and start using it. Here is how you add a custom script to Illustrator. I want to show you how to use two custom scripts for Adobe Illustrator that is going to make your life a lot easier.

First we need to access our script. So if you go to your Exercise_Files folder and open that up, you'll find your custom AI_Scripts in the Ch 4 folder. You can see those here. So with those ready to place we now need to know where exactly do you place them. You will want to go to your hard drive, open that up, go to Applications and locate where you have Adobe Illustrator. Even though we are using CS6 here in this demo movie you can use these scripts all the way back to CS2.

So they're backwards-compatible that way. You'll then click Presets, your language, in this case English, and your Scripts folder. All you need to do is select your two custom scripts now and we're going to copy those over to that location and that's literally all it takes to load your scripts into Illustrator. Now you're ready to use them. Now I'm not a coder and I certainly don't know script.

That said, I know what I like Illustrator to do. So I hired a script expert to create two helpful scripts that I use all the time with my projects. Here's how they work. The two files we are going to use with our scripts is some Skull_Comps, some designs I put together, and an icon set I created for a company called Acme. In this case the first one I am going to demonstrate is the script to export out individual layers as PDF files and we're going to use our Comp file here in this folder.

We'll just open it and this is the file inside Illustrator each of the four skull designs are set up as their own layer. You can name those layers any way you want. In this case I just used the Design_1, Design2, _3, and _4. So we have four designs altogether each on their own layer in Illustrator. Now we're ready to export out each of these layers as a PDF file.

The way you do this with the script, it's all automated, is you go to File, down to Edit, and you select save_pdf_layers. Now as soon as I let go of this and click on it, it's immediately going to run the script. So we are going to do that now. And this is just to make sure you've saved all your changes, because sometimes if you don't do that, you're going to lose it. So I had them add this in when the script was written for me. So you'll just click Yes and now it does what computer does best.

Now if we go back to the Desktop to that Project folder you can see it has now created four individual PDF files. If we click Quick Preview, you can see that it's each one of the designs that we set up on the individual layers. So that's how the Script works for the PDF to export out PDFs from layers. We are now going to demonstrate how to export out individual layers as AI files.

So we're to open up our Acme project here. These were some actual icons I did for a company; not named Acme, by the way. I just want to show you overall the entire set. We're not going to export this out as a source AI file. I just start it just so you understand the context. This is an entire set of icons. So I just want to throw this in show you what that looked like before I run the script. We are going to actually throw that layer away and save the file again.

So, each of these layers in this file are named specifically. I can double-click on each layer and name it whatever I want. So this one is a monitor. So I named it Monitor_Icon, the next one is Security_Icon. So on and so forth for all nine icons. Now because this is a set of icons I am developing for a company, they want the source art. They don't want a PDF file. They need the source vector AI file.

So that's what I'm going to use my script now to export out each of these layers as their own individual AI file. So I'll go back to File, down to Scripts, select save_ai files, click on that. It will ask me again are you sure, did you save your file. We'll click Yes and once again it simply does what it does. Now this one is taking a little longer, because each of these files has some raster effects into it to have a nice glowing edge and that just makes the file size a little larger.

So it takes a while longer to process all these. But once it's done, if we go back to the Desktop, you can see that all of those files are now located in our Project folder and all the naming functions for our Layers are also intact with the filename. So that's how the scripts work, that's how you can automate your process, and make things go faster in Illustrator. There is a reason why they call these machines computers.

It's because they do a great job at computing. Using scripts is just one way to tap into that processing power allowing you to avoid wasting valuable creative time doing mundane tasks. To help you be more efficient, I am providing these two scripts in the Exercise_Files with this course so you can start using them with your own projects.

Show transcript

This video is part of

Image for Drawing Vector Graphics
Drawing Vector Graphics

41 video lessons · 51603 viewers

Von Glitschka
Author

 
Expand all | Collapse all
  1. 2m 31s
    1. Welcome
      1m 26s
    2. Exercise files
      1m 5s
  2. 18m 36s
    1. What is illustrative design?
      54s
    2. A systematic creative process
      1m 26s
    3. Exploring analog tools
      2m 39s
    4. Exploring digital tools
      13m 37s
  3. 18m 31s
    1. Creative preparation
      1m 13s
    2. The creative brief
      2m 25s
    3. Creative thinking methods
      1m 2s
    4. Word associations
      1m 55s
    5. Mind mapping
      1m 55s
    6. Before. During. After.
      1m 26s
    7. I think, therefore I design
      2m 46s
    8. Selecting the appropriate style
      2m 57s
    9. Using reference material
      2m 52s
  4. 8m 50s
    1. Solid creative foundation
      53s
    2. Anyone can draw
      2m 17s
    3. Thumbnail sketching
      2m 34s
    4. Refining your drawn ideas
      3m 6s
  5. 44m 40s
    1. Workflow enhancements
      57s
    2. Keyboard shortcuts and recording actions
      2m 25s
    3. Keyboard shortcuts and recording actions: Demo
      13m 15s
    4. Using custom scripts
      6m 44s
    5. Graphic styles and custom color palettes
      8m 19s
    6. Using layers
      7m 15s
    7. Toggling Smart Guides on and off
      5m 45s
  6. 38m 59s
    1. Building your vector shapes
      1m 0s
    2. A roadmap for vector building
      4m 40s
    3. The clockwork method
      7m 4s
    4. Prime point placement
      3m 40s
    5. The point-by-point method
      8m 22s
    6. The shape-building method
      6m 46s
    7. Symmetry is your friend
      6m 1s
    8. Art directing yourself
      1m 26s
  7. 19m 54s
    1. Presenting your designs
      1m 4s
    2. Presentation formats
      5m 50s
    3. Revealing your designs
      1m 36s
    4. Writing a design rationale
      1m 56s
    5. Responding to client revisions
      3m 46s
    6. Renewable creative energy
      5m 42s
  8. 49s
    1. Next steps
      49s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Drawing Vector Graphics.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.