How to "Release Compound path"?

Is it possible to "Release Compound path" in the active document file via scripting(javascript/vbscript)? Kindly share with me the possibilities and solution.
Thanks...

This snippet should identify a CPI in your document and move one path out of the CPI into the main body of the document.
You'd need to be more sophisticated to identify a particular CPI, the specific pathItem you want to release, and where you want to put it...
var d = app.activeDocument;
var cp = d.layers[0].compoundPathItems[0]
var p = cp.pathItems[0]
p.move(d, ElementPlacement.PLACEATEND)

Similar Messages

  • How to release Compound Path in Adobe illustrator javascript

    Hi,
      How to release Comound path with java script

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

  • Calling actions and release compound path (CS4)

    Is there any way to call an action using Illustrator script?
    I can call actions in Photoshop so why is it not working for Illustrator?
    Also, how to script 'release compound path' in Illustrator. Usual method not working...
    Juz0

    Can you NOT just move the compoundPathItem's pathItems to another location before/after? Kind of like this…
    #target illustrator
    var docRef = app.activeDocument;
    with(docRef) {
         with(compoundPathItems[0]) {
              var x = pathItems.length;
              for (var i = x-1; i >= 0; i--) {
                   pathItems[i].move(compoundPathItems[0], ElementPlacement.PLACEBEFORE);

  • "Release Compound Path" grayed out

    I converted a single letter into an outline using the selection tool and "Create Oultines" in the "Type" menu. Now I want to manipulate a point in that outline. When I tried to select "Release Compound Paths" from the "Object" "Paths" menu, it was grayed out. The same thing happens when I use the same process but select the type with the Type tool instead of the Selection tool. What am I doing wrong?

    Do you have the text box selected rather than the just the outlined text itself (this is the only way that I could reproduce the problem you are describing):
    The text box seems to stay around the outlined text and this happens when you convert the text to outline while highlighting it. You need to create the outlines by selecting the text box as a whole (not just the text it contains) with the selection tool and then convert to outlines.

  • Can't release compound path

    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.

  • 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,
    Dan

    Are they all compound paths or are some of them compound shapes?
    Try release/expand compound shape?

  • 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

  • Compound Path Is Released

    Hi,
    I am confused as when a group of object's compound path (Figure 1) is released, it changed the gradient colour (Figure 2). When I clicked the path, it is formed by individual path (Figure 3). How do I get the gradient colour unchanged even when the compound path is released? Thanks for any help and guidance.

    David,
    A simple/primitive way is to drag the gradient out again with the Gradient Tool to cover all the objects; you may hold Shift to keep it horizontal.
    After that, you may move the individualpaths round, keeing the now individual gradients.

  • How to get javahelp release install path?

    How to get javahelp release install path?
    currently usage their tool <MagicHelp>.
    magichelp is multi-user help authoring tool,
    currently Support Java help 1.0/2.0.
    Home:http://www.gethelpsoft.com

    @BalusC
    ust for a reference cause i'm new in JSP This has nothing to do with JSP, but with basic knowledge of an essential API. I have given you the link to the File API. Are you saying that you refused to read the API documentation, which clearly explains you how to use the File and shows which methods are all available to you undereach the straightforward getName() method, and expecting that the others may chew the answers for you? Loser.

  • [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!
    -- Jim

    Actually, 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

  • How to create multiple gradients in a compound path?

    Hi, I am trying to color a compound path with multiple colors? Kinda similar to the effect here
    I tried using the blend tool and replace the spline but it does not give the desired effect.
    Any tips as to how to approach this?
    I have made the G by creating a compound path.
    Thank you!

    namk,
    You may:
    1) Create a simple stroke/nofill path, with a stroke at least as wide as the semicircular end parts, which follows and fully covers the G shape of the compound path;
    2) Ctrl/Cmd+X+B to bring it to the back, then give it the desired gradient along the stroke/path;
    3) Select all and Object>Clipping Mask>Make.
    If you wish to get the stroke back on top, you may:
    4) Click the compund path with the Direct Selection Tool and reapply its stroke with the original weight.

  • How to cut a hole that is part of a compound path

    I have spent many hours using all the tools available in Illustrator CS4 to reshape the hole that is part of a compound path with no success.
    The compound path consists of a square with a round hole, I want to for example, cut the round hole in half. Erase, Knife, Pathfinder do not work. I can do it if first release the compound path, cut the round hole, then make compound path again. While this method is easy for this example but not good for very complex drawing, because it would be too time consuming to convert back and forth the compound paths and remembering which holes belong to which compound path. Please help. I am to the point where I am willing to spend money to get a good cutting tool plugin, any reccomendation?

    Sure....
    Place or Open raster image.
    Live trace (whatever settings you like) I'm assuming it's a 1 color trace (line art) and not a photo or color image
    Click the "Expand" button in the Control bar
    Everything should be selected/highlighted
    Click the Merge button on the Pathfinder Panel (3rd from left, bottom row)
    *optional -- Choose Object > Ungroup from the menu (Using Pathfinder command creates Groups for some reason. These groups aren't always needed.)
    Deselect all (Command-Shift-A or Ctrl-Shift-A or just click somewhere empty to deselect the artwork)
    Select the Direct Selection Tool (the white arrow)
    Click the center of a "hole" or counter. This will select one of the superfluous white shapes.
    Choose Select > Same > Fill & Stroke from the menu. All the extra shapes should highlight.
    Hit delete.
    You should be left with just black compound paths with no superfluous shapes anywhere. In fact, after this if you Select All, the color panel shoudl show a simple black fill and no stroke. Of course, this somewhat depends upon your Live trace settings.
    What this does is merge all black and white shapes into the simplest form and at the same time it cuts through bottom objects with top objects. So if you have a white shape sitting on top of a black shape, it cuts that white shape out of the black. This ensures all the black has the correct compound shape assignments. Sometimes with Live Trace you can get white fill areas and not get the corresponding compound hole below it. Or the compound hole will not be exactly the same shape as the white object sitting on top of it. Using Merge corrects that. Then deleting the white shapes just removes all the unnecessary objects. If you want a color for the compound holes, just draw a rectangle or shape below the black and fill it with any color. All you need to is alter the counters or compound holes now to correct anything. No more double paths.
    All these steps are not always necessary. But it's sometimes good practice depending upon what you are tracing. Once you do it once or twice you'll see it's only about a 1-2 minute processes and most of that will be waiting for the Merge command to complete.

  • Compound path - what's the problem?

    I occasionally encounter compound path voodoo -2 simple shapes will not form a compound path. I have 2 closed paths that are not grouped, with the small path being completely surrounded by the larger. Nothing I do will create a compound. I have swapped items for back/front order. Pasted separately into a new file. Nothing works. If I create NEW objects, no problem. This occurs occasionally in illustrator -in an area that NEVER FAILED in previous versions (I go back to Illustrator v.1) Can't understand how this simple function can fail. I suspect it has something to do with Expanded elements, but have never fully understood that function perhaps. File attached.
    Also, where is the User Guide? F1 or Illustrator Help directs me to a searchable online database -when all I want is the user guide PDF. THis has also become unnecessarily complex. Whatever happened to intuitive interface?
    thanks.
    OS 10.5.7 Illustrator CX4

    Unfortunately, queued files can take days to be released and downloadable sometimes.
    If I had to guess, I'd say some factors which prevent compounding:
    Open paths
    Custom appearance applied to an object
    Trying to "compound" groups (note groups are automatically created if you use the pathfinder commands)
    Object stacking
    Trying to "compound" a compound shape
    These are jsut a few things and I realize you stated you checked a few of them.
    As for the help and no manuals... well.. Adobe seems to be saving money. I don't necessarily like it either. I remember getting a nicely printed and bound manual with the software when it was half it's current price.

  • Knife tool with compound paths

    Okay this is probably easy, but I haven't encountered it before. I could do this is Illustrator, but I'm betting it's easy to accomplish in InDesign.
    I've taken a word that I've converted to outlines. Now I want to remove the dot off the "i" in the word. I can't seem to do it. The letters are all stuck together (regardless of whether I use the direct select tool or not) unless I release the compound paths which messes up all the other letters. Can I use the knife tool to cut the dot off the eye? If so, I can't really figure out how to use it. Come to think of it, I never use that knife tool and am not really sure what to do with it.
    Allright let me know if you have any suggestions.
    Thanks, Phyllis

    Hm, it still selects the stroke on all of them. No matter how far in I zoom they're still stuck together. So it's something to do with the compound paths. I'd release them, delete the dot and put the paths back together -- only I can't figure out how to put the lower-case "g" back together as it has 2 holes in it. That's annoying. I guess I could put each letter in a separate box so that I'm only creating outlines for an individual letter. But in that case I might as well switch to Illustrator. I must be missing something....
    Thanks, Phyllis

  • How do you combine paths?

    Hi all.
    I had to break a closed path apart, delete a section, and re-do it.  Unfortunately Illustrator has a penchant for deselecting the path you're working on with the pen tool and starting a new one from time to time, so now I have three paths instead of one.  But they all have common end points, ready to join.
    I've searched the doc, the forums, and the Web, but haven't found how to join these paths into one.  Not a compound path that remains separable (which is what "Pathfinder" creates), but rather one path as if I'd drawn it continuously.
    What to do?
    Thanks!

    I am begining to be curious to see what kind of artwork you are drawing just to get a better understanding why joining is not working for you.
    If the main source of the problem is that the pen does not continue to draw but wants to draw a new path there might be some settings that could be adjusted so it would better suit you. Are you using a Wacom maybe?
    Anyway, take a period where you closely watch the pen icon while you are drawing. If the pen discontinues there will appear an x just beside the icon. You can then move the pen to where it left off and a slash will appear at the icon to let you know you can continue.
    Under usual conditions the pen only stops drawing the path if you hold down the Cmd key and click on a white area. If that is not the case something else is wrong.
    A key can be assigned to a scripts via the Action Panel. Make a new Action. Stop recording and from the fly-out menu: Insert a Menu Item... etc.

Maybe you are looking for