Tag Info

Hot answers tagged

15

You dont actually specify whether or not the image is something you have generated yourself in TK, have at hand or not. If you already have this code then you can export the TK applications canvas as EPS and open it in illustrator. All you need to do is call canvas.postscript(). If you want to use TK Simple sample in python 2: #!/usr/bin/python # -*- ...


12

There is a way with the Rotate Tool (R) Select your triangle Click the Rotate tool Pressing alt click where you want your center to be. A dialog should popup prompting for an angle. You can go on an fill it out. When ready press the "Copy" Button and then Ctrl+D for transform againas many times as you want copies. Edit: After understanding that the ...


8

If you don't care about the dots lining up... You can quickly make something similar to your example in Illustrator using a dashed stroke. To draw the evenly spaced rings easily, I'd use the Polar Grid Tool. Then it's just a matter of setting the Stroke on the rings to dashed with gaps that fit your liking: You can of course fine tune each row to ...


8

If you do care about the dots lining up... Illustrator's distort and transform effect is perfect for this sort of repeating pattern, but in order to get that exact pattern it will require some tweaking. Start with a dotted line (with 11 dots for your example) Add a Transform Effect via Effect > Distort & Transform > Transform... You'll notice ...


7

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


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


7

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


7

Use Inkscape: Create co-centric guide lines and double click the lines to rotate by equal amount (I used 30 degrees). Create a series of co-centric unfilled circles manually setting the width and height, and moving them to the center. Create a filled circle, and copy paste some number of times. Use the "Rows and Columns" tool to spread them out along a ...


6

Doesn't look like there is a way to permanently alter an object's rotate point. You can use the Rotate tool or Free Transform to change it temporarily, but it resets to the center of the object once you change to a different tool. If you just do a simple rotate using the selection tool instead of Rotate or Transform Each, it will use the bounding box. ...


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


6

I'll add my method, since it seems to me like it's the simplest. Basically, you: Computationally generate the circles in Python Render them as a simple SVG file Open file in Illustrator Here is the Python script (requires svgwrite and math): """ This script has two purposes: - Simple demonstration of using Python (specifically the svgwrite library) 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 ...


5

I realize I'm a bit late to this, but in case anyone else is wondering, there is a workaround that may be helpful. I can create a one-point object (just click with the pen tool, for example) and group it with the object that I want to be able to control the rotation center on. The new group now has a center between the original object and the "one-point" ...


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

Adobe Illustrator CC, or newer, can convert between point text and area text by choosing "Convert to Area Type" or "Convert to Point Type" from the Type menu or by using the little type widget -- the small ---[] box that appears outside of the text frame. Double-click it to convert the text.


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

You could script this. The center of a triangle is the barycentric coordinate, which is just the vector average. So: #target illustrator // CC BY SA Janne Ojala 2014 function rotate_around_vertex_average(obj, ang) { var points = obj.pathPoints; var x = 0; var y = 0; for(var i=0; i < points.length; i++){ point = points[i]; ...


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

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

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/


3

You can dynamically load text into Illustrator using an XML file. Using the Variables panel, you can import an XML file and use that to control the existence of objects, what images appear in linked image containers, and what text appears in a text frame. You can also control the data that appears in a graph. The typical workflow is to create a ...


3

You can also do this with Illustrator scripting, with same caveat as @Wrzlprmft's answer that objects have to be at top level. (you can recurse the for loop for groups compound paths etc if you wish. This is a quick example after all): #target illustrator var sel = app.activeDocument.selection; var file = File.saveDialog('save centers', 'center:*.txt'); ...


3

You can use this short little snippet of a script: #target illustrator function ChangeTextContents(){ if(app.documents.length > 0 && app.documents[0].selection != null){ var newText = prompt("Enter new text:", ""); if(newText != null){ var sel = app.activeDocument.selection; for(var i=0; ...


2

erm.. the bounding box center is the same as the object's center. The two points are always identical. The Bounding Box is drawn form the objects center to its outermost edges. You can somewhat adjust the rotation point by using the 9 point origin box in the Transform Each options dialog. But if you are looking for free form placement of the origin ...


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



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