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


6

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


6

This question contains two separate issues, how to do things programmatically and how do you model precise shapes. For all intents and purposes these are unrelated. Seems to me that the only reason you ask the first question is because you are not aware of how to precisely position items within the GUI, but I may be wrong. I will be demonstrating Adobe ...


6

As per request, a script to do this on selected paths. This is an alternative for @CConroy answer that may make things easier to do in the long run. It draws symbols on points and tangents and connects the tangents with lines, You can use symbols palette to change how they look after the fact. Might be useful for somebody. Put following in a .jsx file and ...


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


5

Start by drawing a line and circle and style each how you would like the polygon sides and vertices to look. Drag the line to the Brushes panel and choose Pattern Brush. In the Pattern Brush Options dialog, set the first tile (Outer Corner) to None and hit OK. Then, Option-drag your circle onto the Brushes Panel into that first tile slot. You'll return to ...


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


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

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


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

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


3

All Points v.1.3 This script simply draws a line from every point to every other point of your selected pathitem. Handy for making Mandalas. Try on polygons, stars or even freehand shapes. From: http://www.wundes.com/JS4AI/


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

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


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

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


2

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.


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

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


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.


2

I am not aware about automatic option for that. But if you need this effect only for small task, so you can create it by yourself. I've got the circle in 5 minutes, so if you play with options, probably you can create this on your own. I don't know if you need only square or circle is ok too. I've just copied the colors to gradient panel and applied this ...


2

Type one object with the numbers 1 to 31 with a tab between each number, then set up 7 tabs (use a tab before the first day of the week to make it easier) to position them vertically and use the Space After or Space Before options in the Paragraph Panel to align them horizontally. This only took a minute to set up. With the proper tab and spacing options ...


2

here's another way to draw circles or squares at each anchor point (no direction handles though) select your path Ctrl+C to copy Ctrl+F to paste the copy in front Select->Object->Direction Handles Ctrl+X to delete the segments and keep the Anchors only Effect->Convert to Shape->Ellipse...2 pts extra width/height you can do circles or squares


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



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