Compound Path Trouble in CS3
I'm working on a tracing project and haven't had a hitch. Until now.
I'm working on tracing, filling and colouring hair and have been using the compound path tool for chopping out areas.
This has been successful for the entirety of the project until suddenly it doesn't work any longer. I'm not sure if I've accidentally altered the
hair/compound path in some fundamental way but here's the problem as it appears:
Previously, I'd draw the shape I wanted deleted, select the shape and the hair, and bingo--the shape disappears.
Now, the shape does not disappear. I've tried a few different things to discover what I may have done wrong for this to suddenly not work the way
it did just before but I can't figure out what I've done.
I've tried the subtract shape in Pathfinders, but this doesn't seem to quite work very well.
I don't know what I've done wrong and could rally use some advice from the gurus here on the forum.
I hope I've provided enough bacjground to give an idea as to what the problem might be to those more better informed than I am.
Thanks for the suggestion, Wade. It seems what I needed to do was release and recreate the compound path.
I really appreciate you taking the time to look into it!
Similar Messages
-
Compound Path Trouble - Type to Outlines
I've had these issues for years, wherein I'll convert some type to outlines, and the counters of letterforms that have them are filled in!
The paths are still there, but no amount of futzing or making compound, or releasing and trying again, will make them come back.*
Has anyone developed a fix to this problem?
If so, thank you for sharing it with me!
katt
*Sometimes it turns out that a duplicate path is directly on top of another, but most of the time, the "compoundness" seems broken, for lack of better phrasing..If you
Create outliens form type
Release compound path
then try to make this a compound path again
your result wil be broken compoiunf paths
If you
Create outliens form type
Release compound path
Ungroup
then try to make this a compound path again
your result will be good -
I'm having trouble finishing up with Compound Paths
OK, 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 combinded 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);
for (j=0; j<numn; j++) {
var num = j + numn;
var numpath = pi[num];
var npath = pi[j];
var nName = 'name' + j;
var numName = 'number' + j;
var centWidth = pi[j].width / 72;
var centN = pi[num].width / 72;
var adjNum = (centWidth - centN) / 2;
var fhp = j*9.5*72;
var fvp = 0;
var nhp = (j*9.5*72) + (adjNum * 72);
var nvp = ((dd*72) + (nH * 72))*-1;
pi[j].name = nName;
pi[num].name = numName;
npath.position = [fhp,fvp];
numpath.position = [nhp,nvp];
// Would Like to combine the aligned items into a single compound item.select few objects and try this to build up a new compound path.
#target illustrator
var doc = activeDocument;
var sel = doc.selection;
var newCompPath = doc.activeLayer.compoundPathItems.add()
if (sel.length > 0) {
for (var i=0; i<sel.length; i++) {
sel[i].evenodd = true;
sel[i].move(newCompPath, ElementPlacement.INSIDE); -
Compound path inside/outside test
Is there an API for testing if a point is inside or outside of a specific compound path? I've found stuff for the length/area, but not inside outside. I supposed I could implement it myself but that kind of code tends to have a lot of fiddly <= vs < sensitivity when implementing the winding rule, and I'd rather not re-invent the wheel when illustrator is obviously already able to do this test. (Plus I could take advantage of whatever acceleration code illustrator already has for this test.)
If there's a individual path inside outside test, I don't mind tallying things up for the components of the compound path, but I didn't even find that. I'm probably just missing something obvious.
Thanks,
PS (I'm still back using CS2 since that's the suite I have and I'm unable to shell out the big bucks to upgrade.)Well, I think the problem with that is that the hit test will also report a "hit" when you're on things like control points outside of the fill region. Now you could say "well then check the hit type and don't report a hit if it's over a control point" but then you're just in trouble because you might be over an internal control point.
So I don't think it can reliably be used for that.
I guess you might be able to make it work by manually making sure no control points are visible, and that fill is on, and then use the hit test lib. I'll look into it, but my gut feeling is that this is going to have issues. Interesting though. Thanks for the suggestion!
-Kurt -
Release all compound paths at the same time?
Platform: PC/Windows XP SP2
Adobe: 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.
Thanks - I appreciate your help,
DanAre they all compound paths or are some of them compound shapes?
Try release/expand compound shape? -
Help needed to make a compound path of text in rectangle
Hello, I hope some one will really solve my problem.
Im trying to make a compound path (text inside a rectangle). I had done this previously with success but now the whole shape and text is showing same color. Although text should be transparent! And now due to the similarity in colors i cannot see any font.
I don't know why this is happening?
I made outlines of text, ungrouped it, released their compound paths, placed all fonts and rectangle in seperated layer and then made it a compound path.
Please let me know if im following all the steps.
Also, please forgive my bad English as im not native.adobied,
As you know now, Larry answered the Compound question while you were still typing.
We do have quite a few cross postings in this busy forum, especially at this time of day with natives present both over there and over here.
You can use Opacity Masks for a whole range of purposes, and they can act as (inverted) Clipping Masks, and also for partial/varying transparency.
In this case, the suggested use corresponds to an inverted Clipping Mask.
I quite understand your wish to have the Compound under control, and I believe that is sorted with the advice from Larry. -
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.Okay, here's the screen shot.
-
How to release Compound Path in Adobe illustrator javascript
Hi,
How to release Comound path with java scriptThanks For answer
Actually i want to take .PNG image for compound path Items.
But when i release compound path Items then it is break in small small object.
When i save compound path items separately it saved as a blank image...
What am i do now. -
Combining closed paths in Illustrator CS3
Dunno how simple this one is, but I have two closed paths of the same colour that overlap to appear as one object when printed. I'm trying to combine these two paths into one object so that if I apply a stroke weight to it, it outlines the whole object, instead of individually. Is there a simple way of doing this or do I have to add points manually?
Keep in mind I'm not asking about a compound path.You use the pathfinder selecting both objects and clicking on the first icon at the top left if you wish you can keep this alive or you can expand it. In either case you can now apply a stroke to the new shape.
Ore you can select both and then click on the live paint bucket and turn it into a live paint group and choose the option to paint both fills and strokes. and paint away. -
[AI CS4 Mac] How to create a Compound Path?
Hi Folks,
I'm trying to create a compound path in AI CS4 for Mac, but I have not been successful. One would think this would be easy, so maybe I'm missing the obvious solution...
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 {
/name [ 12
436f6d706f756e6450617468
/keyIndex 0
/colorIndex 0
/isOpen 0
/eventCount 1
/event-1 {
/internalName (adobe_makeCompound)
/localizedName [ 18
4d616b6520436f6d706f756e642050617468
/isOpen 0
/isOn 1
/hasDialog 0
/parameterCount 0
Any help or suggestions on how to create a compound path would be greatly appreciated!
Thanks in advance!
-- JimActually, here's a more useful variation
// rectangle1 & rectangle2 are the AIArtHandles for your existing paths
AIArtHandle compound = 0;
sArt->NewArt(kCompoundPathArt, kPlaceAbove, rectangle1, &compound);
sArt->sReorderArt(rectangle1, kPlaceInsideOnTop, compound);
sArt->sReorderArt(rectangle2, kPlaceInsideOnTop, compound);
// this will create the compound right next to wherever rectangle1 is, much simpler and more likely what you want -
Compound path selection in Photoshop CC
Hi
I have a compound path (item silhouette together with inner hole). But for some reason am not able to make selection with the hole excluded from outer path selection any more as I was able to do in previous versions of Photoshop (photoshop selects outer path only). Please let me know if it's still possible to do.Now it's OK. nvm
-
Compound Path - determine winding rules
I have a compound path, and i need to parse all points, for export to CANVAS HTML , for this I wrote this script:
But the problem is how to detect the holes. I find information, and i think that i need the fill rule or clockwise fill, but in the reference doesn't exist.
Somebody can help me. Thanks
Compound Path fill rules: http://forums.adobe.com/message/4507598?tstart=0#4507598
Nonzero winding fill rule
Uses mathematical equations to determine if a point is outside or inside a shape. Illustrator uses the nonzero winding rule as the default rule.
Even-odd fill rule
Uses mathematical equations to determine if a point is outside or inside a shape. This rule is the more predictable rule because every other region within an even‑odd compound path is a hole, regardless of path direction. Some applications, such as Adobe Photoshop, use the even‑odd rule by default, so compound paths imported from these applications will use the even‑odd rule.
http://help.adobe.com/en_US/illustrator/cs/using/WS714a382cdf7d304e7e07d0100196cbc5f-6462a .html#WS714a382cdf7d304e7e07d0100196cbc5f-644ea
http://www.fireworkszone.com/tuts/476/fill_rules.pdf
/*bool*/ Polygon.prototype.collideShapes = function(/*Polygon*/ _poly)
// Ret. TRUE if the shapes intersect
// slow method
try {
this.intersectPath(_poly);
app.activeDocument.undo();
return(true);
catch(ex)
return(false);
var selection = app.activeDocument.selection;
var a= selection[0]
var b= selection[1]
//alert( a.collideShapes(b))
function inArray(agulla, paller){
var length = paller.length;
for(var i = 0; i < length; i++) {
if(paller[i] == agulla) return true;
return false;
var item = app.activeDocument.selection;
var items = item[0].releaseCompoundPath();
var restantes = items;
var groups={}
var i = items.length;
// while( i-- )
for (var i=0;i< items.length;i++)
a = items[i];
try{
$.writeln( items[i].LocalDisplaySetting )
}catch(e){$.writeln( e)}
for (var s=0;s< restantes.length;s++){
var b = restantes[s]
if(a!=b){
if(inArray(b, restantes)== true){
try{
if(a.collideShapes(b)){
if(typeof groups[i]== "undefined"){
groups[i]=[]
groups[i].push(i)
groups[i].push(s)
restantes[i]= "void";
items[i]= "void";
restantes[s]= "void";
items[s]= "void";
catch(e){}
app.activeDocument.undo();
for (var t=0;t< restantes.length;t++){
if(restantes[t]!= "void")
$.writeln ( "_" + t +",");
for(var g in groups){
var group = groups[g]
$.writeln ("var compoundPath = new CompoundPath( _" + group.join(", _") +").fillColor = 'red';");I just want all inner shape and overlapping shape areas to be considered the composite fill of the compound shape - so in my example above, the three red rectangles lacking a centerpoint I want to contribute to compound path's composite fill, instead of knocking it out.
BTW, that example up there has a big outer stroke, no fill. Maybe confusing, but that's how I'm currently using the shape (to mask the outsides of 3 different designs). -
Compound path (or similar) but without "holes"
Hi guys
I'm designing a logo in which I use the letter C but I would like to "extend" the upper part of it with an extra "curl".
So I expanded the C (text to outlines) and added a line which should be the extension. Now I would like them to be one item together. I tried compound path but that makes the overcrossing parts of the letter "blank". How do I solve this?
See print screens below.
Thanks!
BobHi John Mensinger,
Indeed, it worked!! Thanks! I forgot to use the Pathfinder! I should learn to use it more
Thanks!!!
Bob -
Every year we do a fundraiser to help my job, but my co-worker is getting frustrated. We receive outside files laid out in Illustrator, but the person who does the file sets all of the text using compound path. These aren't one or two lines of text to be manipulated but whole paragraphs of text. This person does this every year, and it is time consuming if my co-worker can't manipulate a paragraph without going to each individual layer that has a letter. Is there a way to make these compound paths merge as one without altering the document i.e. make some element disappear. Any kind of help is appreciated.
ikaika,
As I (mis)understand it, you should simply ask this outside person to keep all text as Live Type, using a font that you have on your machines (in the exact same version) so there will be no font substitution issue(s).
That way, you could get the job done without silly waste of time.
Failing to comply would seem quite uncooperative.
I presume there is no copyright question onvolved in this. -
Compound path envelope disort - urgent - please help!
So, I really need to do a "car of the year" type of badge in illustrator.
I have the flags vector (grouped) and the hallow circle created whith the shape builder tool as a compound path. (see image).
And now, the obvoius problem. The only thing I could think of to achieve this result wast the envelope disort tool - make with top object. But then, ctrl-alt-c, bag!, error:
Now, obviously I understand why I get the error, my "hallow circle" is a compound path, but how do I convert it into a compatible shape?
Or is it an other way to get the same effect? I've tried the warp option but it just doesn't have a circle, just arch and it doesn't suit my needs. It looks crapy with warp.
Please help me! I've tryed everyting I could've think of, even importing photoshop paths... how can I make this badge work? I just couln't find a way to transform the compound path into an admitted shape. And my client really needs this badge for a franchise event at the end of the month.
This is where I got by using the warp tool but it looks bad, I want lager flags and I can't do that whitout screwing the arch meshed into a crappy circle... plese help meArt brushes won't repeat.
Look for the element that's not allowed, because brushes are an ideal way to do this.
Look for gradients, pixel art or type.
Try this art:
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1045620
Maybe you are looking for
-
HOW TO SHOW ONE PAGE AT A TIME
Does anybody have a clue how to show one page at a time? I clicked Facing Pages in the Inspector and 2 columns of pages showed up. Now, I can't get it back to just one page showing up at a time. There must be a fix, but I don't' want to spend days on
-
Hi Experts, I have to do validations in ME51N on save. For this I have found the user exit MEREQ001 and its components EXIT_SAPMLEREQ_005 where I can make the validations. in one of the validation I have to use FM ME_SEARCH_SOURCE_OFSUPPLY by passing
-
How do I access reading list???
How do I access reading list???
-
Finding specific files in TimeMachine. I've somehow deleted all iCal content.
I've somehow deleted all Calendar content (historical and future). I wish to restore from TimeMachine. How do I find and restore the last iCal file?
-
Is it possible to connect Apache Server (Oracle HTTP Server is iAS) to IIS? How? What are the components that could be connected so load sources in IIS? Thanks in Advance