Tag Info

Hot answers tagged

5

You really don't need any scripting for this. Select text object with Selection Tool Add new fill via Appearance Panel Move new fill below characters Highlight new fill and choose Effect > Convert to Shape > Rectangle Enter relative amount of points/pixels/inches etc. you want the rectangle to be offset from the text click OK drag the text object to ...


5

You can use the script from AjarProductions : Convert Illustrator Point/Path Text to Area Text This script will convert point text and text on a path into area text. You select multiple text fields and the script will convert them all. Works fine for me on Illustrator CS5. Code of the script copied below, in case the page goes missing: //Convert to ...


5

If the patterns are indeed on individual layers, you may be able to use scripting to export each layer as an individual png. Carlos Canto wrote a script for Illustrator and posted it in the Adobe forums. In case of link rot, here's Carlos' script: #target Illustrator // script.name = exportLayersAsCSS_PNGs.jsx; // script.description = mimics the Save ...


4

Turns out that the (badly named IMHO) "changeLineWidths" parameter is not a boolean but a scaling factor just like the x and y parameters. So this is solved like this: var scale = 20; // scale down to 20% item.resize( scale , // x scale , // y true, // changePositions true, // changeFillPatterns true, // changeFillGradients true, // ...


4

For simplicity and speed of workflow, I would probably use the slice tool to create slices for the individual patterns, then Save for Web, making sure that "All Slices" was selected in the "Export:" dropdown. If I were building from scratch, I'd put each pattern on its own artboard (which you could still do) and use File>Export with the "Use Artboards" ...


4

You can create an action, assign an F-key to the action, then use the F-key. Use the Insert Menu Item command located in the Action Panel Menu to insert the call to the script. But be aware, when you quit Illustrator, the action loses the connection to the script. So, each time you launch Illustrator, you have reconfigure the action. This is a long ...


2

There are different ways to achieve what you're after. You just have to decide what works best for your workflow/platform. Have the script assign all *.ai files in a given directory to an array, then loop through. If you're on OS X, set up an AppleScript droplet that will do the same as option 1 for any directory dropped on it. Create a file prompt at the ...


2

I don't believe there's any function to simply save each object in a file. It may be possible via scripting, but you would need to have either a structured layer stack or select each object individually before running a script. That may not be any faster. Obviously, it could be done if objects have individual artboards. I'm not 100% certain why you feel ...


2

I've found the answer in Adobe Scripting Guide - "the name property of the document object in most Adobe applications is read-only; therefore, you cannot use a script to define or change the name of an existing document (although you can use a save as command or method" thus, I cannot create a new document with a particular name using applescript, however ...


1

Using Adobe's ExtendScript js library, you could certainly write something without much work. I don't remember the commands off hand but you would do the following. Get the path to the document Set the JPEG export settings Export a JPEG to the path you saved Execute a basic save command Then you add that script to your scripts menu and give it a key ...


1

Option One Grab the Polar Grid Tool Click and drag on the artboard to draw an ellipse. Hold the Shift key to create a perfect circle. While still dragging with the mouse use the up and down arrows to add/subtract inner circles, use the left and right arrows to add/remove the inner crossing spines. When you're happy, simply let go of the mouse. ...


1

I don't believe so. Scripting tells the application to do something, and does not control events outside the application environment (such as database input). What you are seeking is something like a key logger or screen recorder. Photoshop does offer a history log in its preferences. It will spit out things like this, which still isn't what you are ...


1

You can try this: Open your text editor (the best is ExtendScript Toolkit, installed with Illustrator by default), then past in new document the text below. //here you can change the stroke percentual var myA = prompt("Choose your %","80","Change width stroke"); var myPercentile = myA/100; if(myA!=null){ // choose all page elements for (var ...


1

I don't know what you make with all objects, but if you wuold select all item with same graphic style you can use app.executeMenuCommand('Find Style menu item'); script after selection active on one object with choosen style. For example: choose 1 object and launch this script: app.executeMenuCommand('Find Style menu item'); for(var ...


1

Here is full version of two functions for exporting color-coded zones without anti-aliasing. The first of them adds recursively all visible objects (in all nested layers and groups) for further rasterization. function process(item){ if (item.layers) { for (var i = 0; i < item.layers.length; i++) { if(item.layers[i].visible) ...


1

I feel like I have to say this a lot with Adobe products but ... The most efficient answer is scripting. You need to get the bounds of the text, draw a box based on those numbers, and position it behind the text. With some basic math and an understanding of how to get to Illustrator's various scripting objects, it's not that tough. For starters, you need ...


1

Not sure if this will work for Illustrator, but in Photoshop I've had success using this method in a configurator panel: #include "coreFunctions.jsx"; saveImage("jpg", "", "web", "", ""); The above code is the contents of a file called "jpeg@72.jsx", which calls the function "saveImage" (a user created function), declared in the coreFunctions.jsx file.


1

Someone can correct me if I'm wrong, but I don't think Illustrator is meant for that sort of thing. But, as someone who likes to use Illustrator all the time, it's good to see if we can find a solution in it! You can probably make a script. Illustrator's Document object has a print() method that lets you set print options. If you're not familiar with ...


1

Point text and area text are such different objects under the hood that there's no instant way to convert from one to the other. Many typographic functions tied to paragraphs, such as the Single Line and Paragraph Composers, justification, text wrap and hyphenation are inapplicable to point type. As DA01 says, the simplest way to do this is to select the ...



Only top voted, non community-wiki answers of a minimum length are eligible