16

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


13

That kind of tight, uniform spiral is called an Archimedean spiral (aka Archimedes spiral). They can't be made by the regular spiral tool which only makes expanding (logarithmic) spirals. There are two ways to make them I know of: A method using art brushes described on vector guru: Take as many parrallel lines as you want loops Nudge one end of the lines ...


13

3rd party solutions Automator ( Mac - Native app ) Recently made a video about this. Create a new Service At the top: Service receives [no input] in [Adove Illustrator CC 2015.app] If you don't specify application here, you can launch the script when any window is active, which can be useful. Search and add action: Get Specified Finder Items. Add the ....


12

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


12

I have a published a script that can do this, and more. The script can be found in my scripts bundle. Located in jooillustratorscripts bundle specifically the jooGraphFunction.jsx script. This script allows you to graph any mathematical function. The GUI is a bit rough along the edges at writing of this message but I'm planning to overhaul that some day. ...


12

You want to create whatever you want to be linked as a Symbol. Open the Symbols Panel, then select your object and drag it over to the Symbols Panel. Choose a "Graphic" unless you're doing this for Adobe Flash, either Dynamic or Static. Static would make every instance of that symbol exactly the same Dynamic would be like if you had a hat, but you have a ...


10

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


10

To get started, easy dotted line creation and ordering can be accomplished using this script as explained by joojaa here. The importance of arrangement is because the Document.selection array respects the order that the objects are stacked. You can take advantage of that to create a new text object for each object currently selected. Here's a very simple ...


9

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


9

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


8

Which part are you referring to? If it's the spiral, don't use the spiral tool. You'll want a linear/Archimedean spiral for that. You can find a tutorial on creating those here: http://vectorguru.com/tutorials/013-archimedean-spiral-in-illustrator.html If it's the circled segments of the spiral, just split your spiral into individual paths and give them ...


8

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


8

You don't need a script to release all clipping mask in one step, just do: Select->Object->Clipping Mask Edit->Clear But it can also be done via script: app.executeMenuCommand("Clipping Masks menu item"); app.executeMenuCommand("clear"); The same for ungroupping all objects and release all compound paths: app.executeMenuCommand("selectall"); app....


8

Use "Recolor Artwork" With the text area selected, click on the "Recolor Artwork" button (or go to Edit → Edit Colors → Reclor Artwork): Under "Current Colors" is a list of all the colors present in the selected artwork. The "New" column is where you set the colors to change to. You can also combine or swap colors: Clicking the new color box will bring up ...


8

We can approach this problem in many ways. Using a plotting app First approach is to get hold of the original data and turn the rotation to isometric, i would use this approach. The original image is probably done in matlab (and I prefer not deal with it). But I prefer Mathematica as it makes better graphs in my oppinion, and is in this case nicer overall. ...


8

This took about an hour to write, one step at a time: Handle either one single item, or a selection of items. Loop through the single path (for a simple object) or through all component paths (for a compound object) and gather all anchor points into a single array. Test every point against every other. I've thought about it and I don't think there is clever ...


8

Yes, this script exists, find and replace by nvkelso. To use, make sure the pin (or object to replace with) is on top, select all to replace (including the pin) and run the script. @joojaa also made a great point. If you make the pin a symbol, it will be very easy to make changes later on (which will apply to all of them). If you use the centered one, it'...


7

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


7

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


7

Colliderscribe is a great option. Another method of doing it is through the "transform each" feature. Make several copies of the object you want to create a background of. Select them all. Select Object>Transform>Transform Each Type a number of pixels to move the objects horizontally and vertically Type a percentage to scale the objects Tick the "random" ...


7

Use scripting! As others have answered, you should use scripting. But some of the other solutions here only use RGB, whereas mine uses colours you choose from your document. Also some solutions didn't produce even colour at the wraparound point, or had too many and/or overlapping gradient stops, so my script addresses those issues. To use it, select 2 or ...


7

You have to select more than one object. Both the path/shape that you want as clipping mask, and the object(s) you want to mask. The mask path/shape must be the top object in the layer.


6

You can achieve this with Illustrator scripting. Checking the documentation for CC15.3 in the JavaScript Reference PDF under Gradients on page 68. Create the colors: // Create the colors var startColor = new RGBColor(); startColor.red = 0; startColor.green = 100; startColor.blue = 255; var middleColor = new RGBColor(); middleColor.red = 252; ...


5

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


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


5

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


5

Here you go, make sure the paths that you want to snap are selected: // jooSnapToDocumentGrid.jsx #target illustrator main(); function main(){ var grid = getDocumentGrid(); snapSelectedPathToDocumentGrid(activeDocument.selection, grid); } function snapSelectedPathToDocumentGrid(sel, grid){ for(var i = 0; i < sel.length; i++){ ...


5

This will only work if you are using the gradient as a stroke (as in your question). If you want to repeat the gradient endlessly (as opposed to a specific number of repeats) then you can skip steps 2 and 3 and use a pattern brush instead of an art brush. In CC you can now use images in brushes so you may be able to rasterize the gradient instead of ...


5

Based on the Illustrator JS manual I've come up with the code below. This code does exactly what you want: Creates a gradient with two color stops: black and white Repeats it five times Applies it as a stroke to the active (selected) element A more generalistic version can be found below the line. (1) First we set the desired number of colors and the ...


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