Illustrator Scripting :: Finishing Up With Compound Paths
Mar 11, 2014
I'm a novice here so here's my script. It works really well like it sits. It basically takes two objects in a large group and aligns them. I want to make each two objects combined into a single compound path. I have tried multiple things and they all just kick out errors and what not. I can't seem to get my head around the vocabulary for the scripting but the darkness is starting to fade the more I do.
#target Illustrator
var idoc = app.activeDocument;
var pi =idoc.compoundPathItems;
var numn = prompt ("How Many Names?", "Enter Number of Names");
var dd = prompt ("How far below name is the number?", "Enter Drop Distance");
var nH = prompt ("How tall are the names?", "Enter Name Height in Inches");
dd = parseFloat (dd);
numn = parseInt (numn);
nH = parseFloat (nH);
[code]...
Would Like to combine the aligned items into a single compound item.
View 1 Replies
ADVERTISEMENT
Dec 5, 2012
The best way I can describe what I want to do is, how do I use shapes like cookie cutters? I already know how to use clipping masks in order to achieve the visual equivalent of this, but I want to take the resulting viewable area and turn it into its own object/path. The problem is, when I, let's say, create a circle clipping mask over an image, the visual effect is a circular cutout of the image, but in Illustrator terms, what I'm actually left with is a group made up of the clipping mask and the image behind the mask. All I want is the cutout, and I want to me able to turn that into a (compound) path.
I've read a hundred different blogs/posts/tutorials, but they only teach you how to create a clipping mask, which is only half of what I want to do.
View 5 Replies
View Related
Mar 15, 2013
I have applied simple gradients to shapes. When I try to select the object with the direct selection tool, it selects paths made from the gradient, not the object itself.
View 3 Replies
View Related
Jul 20, 2010
Platform: PC/Windows XP SP2Adobe: Illustrator CS3 (13.0.2)
Is it possible to release all compound paths in an illustration at the same time (and if so - how)?
I receive drawings from engineering in either PDF or CGM format, which I edit in Illustrator and save as AI. I have to release compound paths in order to delete specific parts of the drawing.
This isn't difficult, but it is very time-consuming because the CGM(or PDF)-to-Illustrator conversion results in quite a few compound paths.
View 9 Replies
View Related
Jan 18, 2013
A strange thing happened just now that I don’t recall having seen before.
I have a number of simple objects, all the same fill colour, no stroke and none of them overlapping.
When I make them into a compound path they sometimes lose all their colour.
I have checked winding order, even/odd fill and that sort of thing but since none of the objects overlap, that shouldn’t make any difference anyway.
This doesn’t happen every time, so what could be causing it?
View 6 Replies
View Related
Oct 27, 2012
How do I use compound paths after image trace? Vector seems locked up after I create it. I have tried unlocking, ungrouping, etc. I want to knockout portions of the art. I only created part of the vector in image trace, and the knockouts are self-created.
View 4 Replies
View Related
May 18, 2012
I'd like to be able to make Clipping Paths out of (unexpanded) Compound Shapes. We can't do that already.I'd also like the Expand button to work like it did in CS4 again.
View 9 Replies
View Related
Apr 25, 2013
Does the scissor tool NOT work on compound paths? I am guessing it does not being it does not work when I use it on them, but the Adobe help section didn't specify.
Also, sometimes when I am using the pen tool, I will place an anchor point but it shifts away from where I want to place it. For example, I will put it at x = 72 & y = 1000 and it will place it at x = 95 & y = 1050.
I thought maybe it was from something I accidentally selected like snap to grid or point, but changing the settings does not correct the issue. I have to close out of the program and restart to fix it.
View 5 Replies
View Related
May 14, 2013
I am relatively new to Illustrator. I am using CS6.
I am trying to punch holes in a circle using compound paths, as you can see here :
The tadpole shape and the human shape are the holes I need created in the large circle behind them. Both the tadpole and the human are at the front and all objects are on the same layer. When I select everything and choose CRTL+8, only the tadpole gets cut into the circle. the other shape just stays white.
View 3 Replies
View Related
Feb 12, 2014
I'm working on a script for my company that sets up templates for internal use. I've been able to get most of it completed by drawing basic pathItems and textFrames. The problem I face now is adding our company logo. In the scripting reference I've found examples of duplicating art from one document to another, but that isn't what I need here.
I've approached this by trying to select our company logo in an existing document and in some way capturing the pathPoints so I can use them in the the script that is setting up the templates.However I've not had much luck with this. Ideally everything will be self contained in the one script, so that external files aren't required.
View 3 Replies
View Related
Jul 24, 2013
I'm trying to set up a script that will grab a group of objects and turn them into a compound path, then apply a clipping mask to the compound path and the next group in the layer.
View 5 Replies
View Related
Sep 10, 2013
I am wondering if there is a way to add/remove/redistribute anchor points on a compound shape so that there are evenly spaced anchors along the outline of that shape.I am aware of the "add anchor points" command. But that adds a new anchor at EVERY midpoint between two anchors. It doesn't smartly calculate where to add and where to avoid adding anchors.
View 1 Replies
View Related
May 11, 2012
I have some negative space I created(black area, see first image) that I want to fill with type, not just a simple fill.
Basically I want to create the negative space from a bunch of small minus signs(-) that need to line up as they go across. If I type on each path one at a time as the text doesn't line up that way. This needs to be one continuous path. (see second image)
Unfortunately if I add them together, it creates a compound path, which you cannot type on, unless I am mistaken? So I need them to be a path, not a compound object.
View 6 Replies
View Related
Apr 12, 2012
I need access to AI guides in AfterEffects shift+alt+ctrl double click doesn't always work.
Is there a script to convert all guides to paths?
View 2 Replies
View Related
May 2, 2009
I have hundreds of shapes filled with a pattern of lines. I am trying to figure out a way to clip the lines without ending up with the lines that have been converted to (outlines) closed shapes. It seems like a simple proceedure but Illustrator keeps converting them to closed shapes whenever I try any type of clipping or cropping technique.
I have attached a screen shot showing an example of the shape with tthe line.
View 11 Replies
View Related
Jul 10, 2012
I have created this script for selecting open paths in illustrator cs6 as the graffix plugin is not working under CS6.
Just save the following text in /Applications/Adobe Illustrator CS6/Presets/en_US/Scripts/Select Open Paths.js
if (documents.length > 0 && activeDocument.pathItems.length > 0){
var allPaths = activeDocument.pathItems;
var allPathsCount = allPaths.length;
var openPathsAreLocked = false;
[Code] ........
View 4 Replies
View Related
Jul 17, 2013
I need to create an action. A simple one. The idea: One path is selected, a user runs the action, it makes a copy of that path, moves the copy, select both the path and its copy and makes a blend.
I tried to record that action, but Illustrator does not record the paths selection/selecting.
Even a simplier task: How, in general, having one path selected, select an item/path above or below it? And how to select them both?
I can make a script for that, but the requirement is to keep it as simple as possible: have an Action only without any scripts, if possible.
View 2 Replies
View Related
Dec 19, 2005
I'm clipping out a bike wheel in photoshop with path. So after 1 hour of painstaking clipping, I have a nice compound path, a large circle path with about 20 smaller closed paths to take out each spoke. Alll paths are on one path layer. In previous Photoshop versions, I can control click(PC) this path to load a compound selection which will let me to mask out the background. But in CS, after I control click(PC), it only loads the outer circular path but not the entire compound paths.
View 4 Replies
View Related
Sep 23, 2012
I use my script to embeding a placed graphic (MyImage.embed();). Then I always get a group with the correct paths and two clipping paths in a grouped grouped groupItem.
My question is: I want to delete the two clipping paths to get only the correct paths of the graphic.
This is, what I always have:
and this is, what i want:
View 8 Replies
View Related
Feb 29, 2012
Imported some type from Illustrator as a path and trying to use Repousse to make a 3D layer from it. However, the letters that are usuallu "punched out" (a,o,r,p,etc) are solid. How do you convert so that they look correct?
View 2 Replies
View Related
Feb 1, 2013
Is there a method to return an array of paths in the order they were selected, instead of their descending z-index (default behaviour)?
I'm writing a script that "connects" the centers of currently selected objects through a stroked path, and I want it to follow the order in which I select the objects, regardless of the stacking order.
View 13 Replies
View Related
Jan 7, 2009
I'm on Illy CS2, windows xp.
I want to open a doc, run a script that selects all paths of a color, say 255,0,0 or 50,0,20,4 and changes that color to black or another color I specify and also changes the stroke. Is this possible? I can't see how i would do it?
View 6 Replies
View Related
Mar 30, 2013
I am using Illustrator CS3 on a Mac 10.5.8.
I am trying to create a compound shape from a compound shape I have prepared.
The first part works okay. I can combine the hexagon-compound-shape I have created from multiple hexagon shapes.
I then want to cut away the edges on a part of the compound shape (using a box of 4 rectangles), which is supposed to give me a rectangle with only the lines from the compund-shape inside this rectangle (image 1).
But when I cut away the box around my hexagon-compound-shape (using the Pathfinder window), the hexagon-compound shape inside behaves strangely, with only some of the lines showing and other lines missing (image 2).
I would like the rectangles to simply just cut away the lines that the rectangles are covering, and leave behind the lines in my hexagon-compound-shape, as they appeared in image 1, and not having hexagon-compound-shape changing which lines appear and disappear.
View 8 Replies
View Related
Feb 23, 2014
I want to join two paths to create a shape that I can fill but at the same time retain one of the original paths (the red one in the image below). I can copy the path I want to retain but surely there is a more elegant solution. See below for for an illustration:
View 6 Replies
View Related
Dec 4, 2012
Cannot lock other paths/unlock all paths in symbols?
View 8 Replies
View Related
Mar 1, 2010
I'm redrawing the Realtor Logo which is a simple square, and inside that are a rectangle, triangle and a semi-circle with a flat edge on the left. When combined, look like the letter R reversed out of a black box. When I select the all the elements and tell it to make a compound path, only the rectangle knocks out the background square and the semi circle and triangle just appear to be grouped with the square instead of knocked out!!! I've tried everything including moving the square to the front and the back, etc. How do you find out if the semi circle I drew is a closed path? I made the semi circle by drawing a circle and a square and then using pathfinder to edit them into a the left flat edged circle. The triangle I simply drew with the pen tool.
View 6 Replies
View Related
Nov 1, 2011
I'm trying to create a compound path in AI CS4 for Mac, but I have not been successful. What is best way to create a compound path using the SDK? I just need to make a compound path out of two non-overlapping rectangles so that I can create a clipping mask. Nothing tricky.
The SDK is not clear about the best way to go about creating a compound path, but I figured that programmitically selecting the two rectanlges and then using the built in "adobe_makeCompound" action would work, but it doesn't.
err = sAIActionManager->PlayActionEvent("adobe_makeCompound", kDialogNone, NULL);
When the above code is called while I'm debugging, I get a dialog box that reads: The object "Make Compound Path" is not currently available.
If I click the "Stop" button while debugging, the value of err is 1346458189 which is 'PARM'. So, maybe I need to set a parameter? The crazy thing is that there appears to be no parameters needed for the "adobe_makeCompound" action event. When I created the action manually, the resulting .aia file (see its contents below) has a parameterCount == 0. I've tried passing a parameter block without adding any parameters to it (instead of NULL), but still no joy.
/version 2
/name [ 5
5365742031
]
/isOpen 1
/actionCount 1
/action-1 {
[code]....
View 3 Replies
View Related
Feb 22, 2013
I need to convert an autotrace shape into a pattern i can use in cad. The problem is part of it is a compound path which will not work.
In cs3 i would have just used pathfinder used minus front expanded and had a final path, but now i just get another compound path. Saw the tip on pressing the alt key but still get a compound path.
View 5 Replies
View Related
Oct 31, 2013
I am a complete novice with Illustrator. Ok now that we have that out of the way I have a logo that I had created for me that I would like to edit one small portion of. Basically in the middle of the logo is the word/text "EDCpen" (I believe the text is made up from compund paths).
I would like to edit it FROM "EDCpen" TO "EDCpin" however cannot get it to work. I am sure that I am doing everything wrong, however cannot seem to make this what I belive to be simple change.
Attached is a sample of the logo in jpg format. I have the file in both .ai and .eps formats.
View 19 Replies
View Related
Aug 10, 2012
I drew some simple paths in Photoshop with the pen tool, then exported the paths to Illustrator. All the paths came into illustrator as compound paths, though they look like simple paths in illustrator. Because they are compound paths, I can't join the ends of the paths to the ends of other paths.
Whe I select one of these paths:
Object>Compound Path>Release is greyed out and unavailable. "Release Compound Shape" in the Pathfinde palette menu is also greyed out and unavailable.
Is there any way to make these paths back into simple paths without redrawing them? I'm using CS6 versions of both Photoshop and Illustrator.
View 4 Replies
View Related
May 23, 2013
Cs6 here.... I am trying to cut out a simple shape to allow the area under the shape to be trasnparent or Alpha. Like a Mask. Except when I use the Mask it does at it should do and mask the area where the shape is and MASKING or removing the areas not under the mask. I tried Compound path but I am not getting any result from it. My shape stays right on top of my work and does not "cut it out" to allow the Background to shine through as an alpha channel. See pics for clarity. I want to reverse this where the circle is cut out and the rest stays visible...
View 11 Replies
View Related