Author: Carlos

  • Open Multipage pdf Script, End of an Era?

    2 hours ago, on March 12 2018 Adobe released CC2018 version 22.1. This new version may mark the end of Legendary Open Multipage PDF script, since Adobe finally caught up with times and now it allows us to open multipage pdf files.

    https://helpx.adobe.com/illustrator/using/importing-pdf-files.html

    As of today, my script has been downloaded 114,841 times on this site alone. I posted it on other venues but I don’t have stats for those.

    Will this be the end?

    If you’re one of those rebels that refuse to join the CC, you’re not left behind, keep enjoying the Legend.

    Long live the King!!! http://aiscripts.com/open-multipage-pdf/

  • Match Zoom

    Match Zoom

    Match Zoom Script simply matches the Zoom and Position of the Active Document to all other open documents.

    From this

    matchzoom3

    To this

    matchzoom2

    Download Match Zoom Script

    Installing and Executing Scripts

  • Image Crop Script

    Image Crop Script

    “How do I crop a Photo in Illustrator?” is the All-Time hottest topic in the Adobe Illustrator Forum, there’s a long thread with answers that go from “not possible”, to “use Photoshop”, to “use clipping masks”, to “use Artboards”. The thread also has the real answer to the question, cropping raster images in Illustrator is possible using a “cutter” path with a blending mode other than Normal, then Flattening Transparency. Great answer!! now this script tackles on the same principle as Flattening Transparency, it rasterizes the image within the bounds of the “cutter” path and discards what’s outside of the path bounds.

    to use the script to Crop this image

    imageCrop1

    draw a rectangle on top of the image to use as “cutter” path

    imageCrop2

    select both, the image and the “cutter” path

    imageCrop3

    run the imageCrop script

    imageCrop4

    that’s all, the image gets cropped, embedded, unwanted pixels get discarded. If you don’t want your images to get destroyed, please use the other Masking methods.

    Script Features

    Press Shift Key before running the script to Rasterize using TypeOptimized option otherwise the script will use default ArtOptimized
    Press Alt Key before running the script to Rasterize using custom Resolution, otherwise the script will use an average of the base image resolution.

    Download imageCrop.jsx script

  • Apply Live Effect – applyEffect (LiveEffectXML)

    Apply Live Effect – applyEffect (LiveEffectXML)

    Scripting Adobe Illustrator is painful at times, we don’t have access to some of the most useful features available to us manually using the UI, and we also don’t have the luxury of major upgrades to the DOM as ID or PS users have enjoyed for years. With the release of CS6 some years back, Adobe surprised us with a couple of new, although undocumented commands that seemed to have great potential. One of them was  executeMenuCommand(menuCommandString), the string syntax was missing, but fortunately it was quickly found out by some talented scripters, proving its value, and becoming one of the most, if not the most powerful command available.

    The other command released with CS6 was applyEffect(liveEffectXML), which also had its string syntax missing, till now…well, without further ado, here’s an example

    // apply offset path live effect to selected path
    var idoc = app.activeDocument;
    var ipath = idoc.selection[0];
     
    xmlstring = ‘<LiveEffect name=”Adobe Offset Path”><Dict data=”R mlim 4 R ofst 20 I jntp 2 “/></LiveEffect>’;
     
    ipath.applyEffect(xmlstring);

    the important part of the string is the data, mlim is the MiterLimit Value “4”, ofst is the Offset Value “20”, jntp is the Join Type “2” for Miter.

    liveEffect1

    How to get the XML string parameter

    To get the right xml string for a particular Effect, fire up Illustrator CS5 or CS6, draw a rectangle, apply a Live Offset Path as show above, then save your file as FXG

    liveEffect2

    Make sure “Save Illustrator Private Data” is selected, then click on “Show Code…”, you’ll get the xfg text file generated.

    liveEffect3

    Look for the LiveEffect tag and get the name and the Dict data from it as shown below

    <LiveEffect name=”Adobe Offset Path”><Dict data=”R mlim 4 R ofst 20 I jntp 2 “/></LiveEffect>

    that’s all, that’s the xml string you need to add to your script.

    I would like to thank Adobe’s Sanjay Kumar, without his input this command would have not seen the light of day.

  • Create a – Text Block – out of selected Point Text Items

    Create a – Text Block – out of selected Point Text Items

    This script creates a “Block” of text out of Selected Point Text Items, that is, it re-sizes each frame so they all have the same width. Back then when I wrote the script I didn’t know this layout style was called “SlabType”, otherwise I would have picked a more suitable name, anyway, here’s my “textBlock” script. Please note that the final Block of Text is converted to Outlines.

    textBlock

     

    Download textBlock.jsx

  • Font List

    Font List

    This script simply creates a list of all Fonts seen by Illustrator

    fontList1

    fontList2

    (more…)

  • Title Case

    Title Case

    Illustrator’s Title Case function is…how do we say it nicely?…hmm…it is very straight forward, it capitalizes the first letter of every word. While it works on some scenarios, it simply doesn’t cut it for properly capitalizing titles.

     

    Illustrator’s simple Title Case

    • The Quick Brown Fox Jumps Over The Lazy Dog

    Proper Title Case

    • The Quick Brown Fox Jumps over the Lazy Dog

    to use, select a portion of text (referred as text Range) or one or more text Frames before running the script.

    Download: titleCase.zip

  • Fit Object to Artboard

    Fit Object to Artboard

    Fit Object to Artboard

    In Illustrator there’s a Fit Artboard to Selected Art feature. The next script does exactly the opposite, it fits Selected Object(s) to the Artboard.

                                ↓

    Download: fitObjectToArtboard_v2.zip

  • Insert Page Numbers v2

    Insert Page Numbers v2

    Artboards made their appearance in CS4, and ever since, users have asked the logical question “can I add page numbers to my Artboards?”. The Answers has been a quick “No”….until now, by way of a script.

    // Illustrator Insert Page Numbers v2 Script

    it’s primary use is to insert page numbers but it can insert anything you type in the input box.
    there are a few keywords to use to insert date, time, full name, and file name.

    to insert

    • page number – type – *page*
    • total pages – type –  *pages*
    • date – type –  *date*
    • time – type –  *time*
    • full name – type –  *fname*
    • file name – type –  *file*

    for example to insert “page 1 of 12” type “page *page* of *pages*” (without quotes).

    Note, in this version, pressing “Ok” does not dismiss the dialog. The idea is to be able to enter for example:
    Pages on bottom right, and file name on bottom left without having to fire the script twice.

    One more thing, press ESC to close the dialog.

    Download: insertPageNumbersV2.zip

Cookie Preferences

We use cookies to enhance your experience. Choose which types of cookies you want to allow.

Strictly Necessary

Required

Required for core site functions such as security, load balancing, login sessions and remembering your cookie choices. No data is shared with third parties. Cannot be disabled.

Functional

Remember choices you make (language, region, preferences) to provide enhanced, personalized features. May set cookies from embedded services you interact with, such as video players or maps.

Analytics

Measure how visitors use the site (pages viewed, time on page, referring source) so we can improve it. Data may be processed by analytics providers such as Google Analytics, generally in aggregated form.

Marketing

Build a profile of your interests to show relevant advertising on this and other sites, and measure ad performance. Data may be shared with advertising partners such as Google Ads and Meta (Facebook).