Tag Info

Hot answers tagged

7

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

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

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

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

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

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 ...


4

As a alternate to SVG you could generate a EPS file instead, its less verbose than SVG and has less caveats. Here's a quick intro: http://paulbourke.net/dataformats/postscript/ Generating EPS EPS is a framed form of postscript meant to be included in other postscript jobs/desktop publishing applications. To handle this it needs a header to define the ...


3

The easiest way I can think of is formatting your application to output an SVG Formatted Image. Illustrator can work with SVG graphics in a number of ways. It's worth noting that in your image you are displaying more than just a cloud of points. It looks like your points have either been transformed over time (to give a 'trail' effect) or are connected to ...


3

Unfortunately, the answer is no. This has been a requested feature for years now and Adobe has done nothing to address it.


3

No problemo. #target illustrator layer = app.activeDocument.layers.getByName("Toggle") layer.visible = ! layer.visible Put this in a action and bind action to shortcut. NOTE: Adobe has no quality control for their scripting environment so the actions pallete will forget the script each time you start Illustrator so to get this working reload the default ...


2

As long as the clipped art is vector (as opposed to a raster image), you could use Object > Expand appearance on it to actually delete the parts that are clipped away. Thus, the script will no longer see the original art and work properly.


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'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 ...


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

Since the data in this question is already available inside a program it may also make sense to use a programming interface this sidesteps the need of a file. Programmatic access with COM COM is a windows technology that allows nearly any programming language to directly interface with existing windows applications. Adobe calls this the VB API but it would ...


2

No. Illustrator wouldn't know what to do with CSS and HTML.


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 post the answer with the whole script, because Gramps asked for. This script recolors the layer label color to provided RGB code - reddish tell application "Adobe Illustrator" set layersCounter to count layers in current document display dialog "In current document there are " & layersCounter & " layers." & "Recolor layers label?" ...


1

Since you'll want to export them as cropped, the one step method would be File > Export > HTML. Set the image resolution at whatever you need for your project, use jpeg export and the highest quality output (all set in the Export dialog). You can toss the HTML file and CSS folder and use just the images. If your photographs have captions (it looks ...


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

Create the action and click on the "Toggle dialog on/off" to the left of the export step. This way you'll get the export options and will be able to indicate the path.


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

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

In Adobe Illustrator CC (released June 17, 2013), you can convert between point text and area text by choosing "Convert to Area Type" or "Convert to Point Type" from the Type menu.


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

So, in computer programming terms, the kind of numbers you have are called floating point numbers (sometimes they're called real numbers, too). The kind of number that you want is called an integer. To convert a floating point number to an integer, you need to use the magic phrase as integer when getting your number. It works like this: set currentColor to ...


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

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