Break link to symbol
If I right click on a symbol instance, I get a menu item, "Break link to symbol." How can I do that same thing in Javascript? 1) That is, how do I use Javascript to break the link between a...
View ArticleAnti-aliasing Type Optimized/Art Optimized on PNG export
Hello there, I'm modifying a javascript that makes an export of each layer contained in an Illustrator document and I want to specify the method used for anti-aliasing (either Type Optimized or Art...
View ArticleHow reset the rotation of a PageItem (or access it's matrix at least) ?
I'd like to apply rotation to a few PageItem instances, but would like to reset the rotation first so it doesn't accumulate when I run the same script multiple times. I'm having a hard time trying to...
View ArticleScriptUI window.minimized = true; on Mac
I would like to make custom palettes for Illustrator which have the ability to get out of the way, similar to native palettes. On Windows, my minimized = true; command works, and the palette shrinks...
View ArticleCutting a circle
Hi all, I need to make shapes like this based on a value for graph purposes - usually I would just create a cutting shape based on trig (this shape representing around 60%) and subtract it from the...
View ArticleExtendScript Illustrator - Change color of text one character at a time.
I'm trying to write code for ExtendScript ToolKit to target Illustrator. I've been writing in JavaScript, but am open to switching to AppleScript if needed. The goal of the code is to change the...
View ArticleIs there a way to show the transparency grid in Extendscript?
I was able to find "transparencyGrid" in the OMV and documentation, although it looks like it's only for new documents, and only logs color. I like all my files to open with the transparency grid...
View ArticleCreating an AIP
Very simple: I built an extension with Javascript and HTML. I want an AIP and not a ZXP. How do I get this? Thank you.
View ArticleRenaming selection with even or odd increments
I currently have an illustrator file that requires me to rename selections of objects. Currently I'm using: var docRef = activeDocument; with (docRef){ var sel = docRef.selection; for (var i=0; i...
View ArticleIllustrator Actions (Unlock All Layers) not persistent
Hi allI hope this is the right section to post this.But like the title says I have problems with Actions and the Unlock All Layers. As soon we shut down Illustrator and start it up again this part is...
View ArticleIllustrator VBA scripting 101 - via Excel
This post will attempt to introduce newcomers to Illustrator Visual Basic Scripting (well, not actually vbs, but rather tru VBA, Visual Basic for Applications). I personally prefer vba over bvs for a...
View ArticleRotating text around a circle. Have selected Warp options selected arch but...
Using Mac Pro. Have created a vector logo. All good so far. Trying to add text to a round circle shape have got as far as selecting Warp option and typed my text but despite adjusting the scale etc it...
View ArticleCalling for objects with specific CMYK values?
Hello, I'm trying to build a script that searches for paths that have specific CMYK values within a document and then edits the opacity of that path. I can specify for it to look only for objects that...
View ArticleNode.js in CC2014 not accepting require
Hello, I'm attempting to use modules like fs and https and JSON - We upgraded to CC2014 at work and in Illustrator, I want to work with some JSON files. My error is that this one line, var http =...
View ArticleGrab location and size of guide box
I know how to get the location and size of an object that is selected; var artWidth = artGroup.width; var artHeight =artGroup.height; var artLeftPos = artGroup.pos[0]; var artTopPos = artGroup.pos[1];...
View ArticleBatch combine files into one illustrator document - how to open target document?
I am making a script which will: 1) Open a folder of Illustrator files2) Open each file in the folder (these files are called the source files)3) Select all the contents of the source file4) Copy the...
View ArticleResolution check in illustrator
How to check the raster image resolution in illustrator through script?
View ArticleNested functions not waiting
var confirmed = confirm ("You picked [ " + selected_rbutton (totalgroups) +" ]"+ "\nYou picked [ " + questionResize (rsizechoice) + " ] to resize" + "\n" +"\nContinue?"); confirm.noAsDflt ==...
View ArticleExtract text from illustrator for translation then replace with translated text
I am trying to find a way to expedite translations of our drawings. Each drawing has a series of callouts showing what that piece of the drawing is via text. I would need to do 100's of drawings for...
View Article