Rename the layer using the name of the enclosed object
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...
View ArticleimportPrintPreset, is it broken?
Hi everyone, has anyone had any luck with importPrintPreset()? I can't get it to import any presets, I get no errors, it just doesn't do anything... var idoc = app.activeDocument; var file = new...
View ArticleShear / Skew using shear angle and axis angle
Hi, I want to skew/shear the selected object using shear angle and axis angle. I am using below code for shear the object, var skewMatrix = app.getIdentityMatrix();skewMatrix..mValueB = .5 But i dont...
View ArticleJS - Center Selection to Artboard / New Document with certain Artboard size
TL;DR:how do I center my current selection to the artboard?just like hitting the "horizontal align-center" and "vertical align-center" buttons. Hi, I've been searching for the last two hours and...
View ArticleApplying Style Effects with vba script
Hello, I've been doing a lot of scripting with VBA to create data driven graphics with good results so far. Now I want to try and fancy things up a bit. For example I'm trying to add an Effect to an...
View ArticleFilled area on left or right side of path – make path clockwise - reverse path
Hello, for a script I'm writing, which will select path points at specific angles (all angles with less than 180°) I need to know, if the inner part of my shape (namely the filled area) is to the left...
View ArticleStrange crash after exporting PDF...
I have a script with the following at the end: var pathName = "~/Desktop/salesChartEMC.pdf";var saveName = new File (pathName);saveOpts = new PDFSaveOptions();saveOpts.compatibility =...
View ArticlePut objects on artboard that are enclosed by a path in one layer
I have several maps of the world with various adminstrative boarders. The states/provinces their own sub-layer but the counties/districts are not within layers of the corresponding state/provinces in...
View ArticleSelect ALL objects directly below an object
Is there a way to simply select all object directly below an objects? I found this script here but it doesn't seem to work. Any ideas? //DESCRIPTION:Select Below// A Jongware Scriptif...
View ArticleShow color picker dialog JSX / CSAW
Can someone guide me on how to show the color picker dialog in Illustrator programmatically?In photoshop that's really easy, just: app.showColorPicker(true); In Illustrator I couldn't find any...
View Articleillustrator Spiral Shrinking/Growin text, scaling down/up on spiral path
First of all thanks in advance for anyone who may assist, or make this even possible...... (please contanct me ADAM razo.ad1985 --->G.mail) In dire need of expertise assistante. Years ago I...
View ArticleColor Swap Between Libraries: Is this Possible?
I work with a large number of Illustrator files daily that all use the Pantone Solid Coated library for their swatch color scheme. This color library will be used whether customers provide the art...
View ArticleIllustrator Timestamp
Is it possible to create a script for Illustrator that would "timestamp" the file when edits/changes have been made?
View ArticleScript to add an artboard
What is the javascript to add a new artboard to an existing Illustrator document?
View ArticleAI Scripting Online Resource?
Hi - I have a CS6 script written to drop a die line on top of a JPG then save the file as an AI. It's clunky and needs optimizing. Is there a source online for finding solid scriptors that can help? A...
View Articleillustrator CC ScriptUI addEventListener('click', …) doesn't work.
Hello, It just a report for others.I tried to catch 'click' event on Button of ScriptUI through 'addEventListener' on illustratorCC.However it doesn't work. CS6 and under the version, it works well....
View ArticleCan I set Actions Default Playback Options to Step x Step
We're running a script that requires this to be set to Step x Step by default, does anyone know a way for this to happen? Tx much, Scott
View Articlequick syntax question
in the extendscript documentation it says you can assign a name to UI elements at creation like the example given below dlg.btnPnl.cancelBtn = dlg.btnPnl.add('button', undefined,...
View ArticleApplescript & Scaling
Hi All, I have a pretty basic applescript that I wrote that sees a selection made in Illustrator and scales the artwork to a specific percentage based on a few variables. The script works great,...
View ArticleTRY CATCH not working
Hi All, I am trying to add spot color in illustrator using javascript, TRY CATCH is not woking, it is adding again and again same color value with name of "spot color 1" and "spot color 2" ...can any...
View Article