[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

Similar Messages

  • [AI CS4 Mac] How to Create a Layer Clipping Mask?

    Hi Folks,
    How does one go about creating a layer clipping mask using the SDK?
    What I want to do is to simulate clicking on the "Make/Release Clipping Mask" button (the left-most picture button) that is at the bottom of the Layers Panel.
    Thanks!
    -- Jim

    Clipping masks work, but they can be a little clunky (as you might tell from their weird way of being set up). You might find opacity masks more flexible. An opacity mask is basically a group attached to a layer, in which you store paths that represent holes in the mask. These holes have an opacity value for how much shows through. So anything in the mask group is a hole (there can be many) and anything in the layer (as normal) shows through those holes. Setting it up is simpler but it depends on the kind of clipping you're trying to do which is easier. We find it easier when doing knockouts for labels on lines, but clipping paths are also possible, just a little more annoying.

  • How to create own evaluation path

    Hi Experts
    Can anyone of the HR experts let me know how to create own evaluation path to be used in Function Module 'RH_STRUC_GET'.
    Thanx,
    Rahul

    Hi
    To maintain evaluation paths, choose the IMG activity SAP Web Application Server ® Business Management ® SAP Business Workflow ® Basic Settings (Organizational management) ® Number range maintenance ® Maintain evaluation paths. When the system is in operation, use transaction OOAW .
    Here you will find the maintenance view Change evaluation paths: Overview.
    Assign a name to the evaluation path (maximum of eight alphanumeric characters).
    Go to the dependent view Evaluation paths (individual maintenance).
    Describe the relationship chain to be used for the evaluation.
    To establish the permitted relationships for an object type, use report RHRELAT0 .
    REWARD POINTS

  • How to create a Virtual Path ??

    I want to know how to create a Virtual Path in My Application !!!
    that is HTTP link that refer to existing folder in the file system
    thanks

    Alias can never be mount, but the virtual drive I want to create must be able to mount and unmount.
    Desktop having both original and virtual drive.
    My system is booted from 'Snow leopard' and I've an another drive, name 'Disk Testing' so by using a software I create the virtual drivre of 'Disk Testing' as you can see in the image. Both the drives are identical to each other and both are able to mount and unmount, they are having same data and attributes.
    So I want to create exactly this kind of virtual drive by using any apple script or command.i.e without using any software.

  • Need a cookbook for creating a compound Path

    Hello together,
    has anyone a short sample for creating a compund path with to pathes inside?
    This doesn't work:
    iErr = sAIArt->NewArt( kCompoundPathArt, kPlaceInsideOnBottom, firstLayerArtHnd, &newArtHnd);    
    iErr = sAIPath->SetPathClosed( newArtHnd, isClosed);
    //Adding segments
    // Adding one child
    iErr = sAIArt->NewArt( kPathArt, kPlaceInsideOnBottom, newArtHnd, &childArtHnd);
    //Adding segments to the child
    iErr = sAIPath->SetPathClosed( childArtHnd, isClosed);
    Should I first create a group? But how to change this group to an kCompoundPathArt Element?
    best reagrds
    Michael

    In the time I tried some variations and ended with this:
    // creating compound Object
    iErr = sAIArt->NewArt( kCompoundPathArt, kPlaceInsideOnBottom, firstLayerArtHnd, &newArtHnd);
    // inserting "Masterobject" (path wich surrounds the children)
    iErr = sAIArt->NewArt( kPathArt, kPlaceInsideOnBottom, newArtHnd, &childArtHnd);
    // creating and inserting children
    iErr = sAIArt->NewArt( kPathArt, kPlaceInsideOnBottom, newArtHnd, &childArtHnd);
    iErr = sAIArt->NewArt( kPathArt, kPlaceInsideOnBottom, newArtHnd, &childArtHnd);
    iErr = sAIArt->NewArt( kPathArt, kPlaceInsideOnBottom, newArtHnd, &childArtHnd);
    at least the result looks like what it should. It's a pitty that there ist no sample how to do it the right way from adobe. Or have I overseen it in "SnippetRunner" in the CS4 SDK. Would be a good place. I will add a request for the CS-Next Thread taht we need codesnippets for every function of the API (like it was in one of the very first SDKs of Freehand. They had a big word dokument which provided such stuff for every function).

  • How to create a clipping path in PE12

    I work in Photoshop but am helping a client who has only Elements 12, which I know nothing about other than what looks like PS features.
    We want to create a clipping PATH around part of a photo and save the photo as a JPG so that type wraps around it in our layout program. I can do this in PS CC, but this response (Re: Trying to create a Clipping Path for a Photo In PE10. How is it done?) says PE can save only to PSD or TIF. I have a jpg photo with a clipping path that works fine, but can't get PE to save the clipping path with the jpg.
    Thanks.

    If you don't mind telling us, which layout program are you using?
    Yes, by default creating a Clipping Path in photoshop elements does not exist.
    That's why you would need to create/record an action using photoshop cc and then use the action in photoshop elements using Window>Actions
    Something like this:

  • Undo Pathfinder - 'Unite (Alt-click to create a Compound Path and Add to Shape Area)

    Hey,
    I am new to Illustrator and I am trying to 'release' a compound path, back into the original objects. (A body shape, including the torso, arms and legs). I can't seem to get it to work. There is no option in the Pathfinder tab as a lot of sources say, and I cannot go to Object>Paths>Release as no option exists at all. I am using CS5.
    If you need more information please ask. Can anyone help?
    Fleur

    Here you go. See the white version, I want the body to go back to being like that. To get to the selected shape I clicked the 'Unite...bla bla' button and it combined them all.
    (By the way, I am following a tutorial - they do not really specify the steps very clearly...obviously).

  • Please help! Installed fonts just stopped showing up in CS4 MAC, how do i get them back?

    Hi there,
    I'm on a MacBook Pro running OS X 10.6.8
    still on Adobe CS4, i initially had problems getting CS4 to see my installed fonts when upgraded to Snow Lepoard, googled the problem, tried several different things for hours - something worked not sure what exactly but CS4 started seeing all of my installed fonts.
    Now all of a sudden, they are not showing up again, i have not downloaded anything, installed anything, moved anything - were all there and working last week, and then this week they are not.
    I have 1060 fonts installed - work for an agency with hundreds of different clients so need a lot of fonts. Am not using any font manager - just fontbook, is that the issue? all 1060 fonts are showing up as installed in Fontbook....
    I have some fonts in HD>library>fonts, and also fonts in user>library>fonts, could this be the issue? is it best to have them in just one place? if so which folder is best to have all fonts in?
    I know indesign has its own font folder - which is now where it seems to be reading fonts from, and illustrator is reading its fonts from somewhere else - only about 30-40 are showing up there, system fonts folder i'm guessing?
    How can i get indesign and illustrator to read fonts from my actual font libraries?
    any help is much appreciated! Our graphic design team of 2 are the only ones on macs so all our IT support guys are PC based and never know anything on how to fix mac issues so i'm on my own with this issue!
    Thanks
    Mel

    If you are managing fonts with font book, then all should be well. Something else is going on. Try installing Onyx and use that to delete all your caches including your font cache. You willl need to restart your computer after clearing your caches.

  • How to create a relative path for Flash video on a CDROM

    Hello - I need to distribute a web site to a client on a
    cross-platform Hybrid CDROM so that they can edit and make
    adjustments. This website also includes 2 flash videos that need to
    be included on the CDROM.
    My problem is this: I encoded the video in the Flash Encoder
    app and brought them into the main Flash app for conversion into
    swf files. I also used the media controller parameter to add a
    control skin to the movies. I now have 2 swf files associated with
    the flv video file, and I understand that all 3 of these must stay
    together for the video to work properly. The video plays correctly
    along with the controller skin on my Mac however only the
    controller shows up but no video on the CDROM. I believe that this
    has something to do with absolute vs. relative file paths for the
    video flv file to the swf controller file.
    I do not know how to change this path - I know "where" to
    change it within the controller parameter options box but do not
    know what syntax exactly to place here. How do you specify a
    relative path here? When I try to do it I get an error saying that
    the flv file cannot be found.
    I am trying to use the following syntax: /video/welding.flv
    where video is the name of the folder and welding is the name of
    the file. I have done numerous Google searches on this subject and
    stil cannot find an answer, so any help is appreciated.

    OK - I assigned the FLVPlayback component the instance name
    of videoPlayer to keep it simple. And I copied the above code into
    an Actions - Frame on Frame 1. FYI - The name of the video has been
    changed from welding to Timet Sponge.
    Now I get the following error messages:
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 1: 1119:
    Access of possibly undefined property contentPath through a
    reference with static type fl.video:FLVPlayback.
    videoPlayer.contentPath = "";
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 2: 1120:
    Access of undefined property _global.
    _global.videoURI = "video/Timet Sponge.flv";
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 3: 1120:
    Access of undefined property _global.
    videoPlayer.contentPath = _global.videoURI;
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 3: 1119:
    Access of possibly undefined property contentPath through a
    reference with static type fl.video:FLVPlayback.
    videoPlayer.contentPath = _global.videoURI;
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 1: 1119:
    Access of possibly undefined property contentPath through a
    reference with static type fl.video:FLVPlayback.
    videoPlayer.contentPath = "";
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 2: 1120:
    Access of undefined property _global.
    _global.videoURI = "video/Timet Sponge.flv";
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 3: 1120:
    Access of undefined property _global.
    videoPlayer.contentPath = _global.videoURI;
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 3: 1119:
    Access of possibly undefined property contentPath through a
    reference with static type fl.video:FLVPlayback.
    videoPlayer.contentPath = _global.videoURI;
    Total ActionScript Errors: 4, Reported Errors: 4

  • How to create result file path and name in teststand

    Hi, 
    I would like to create specific path(folder) and file name to result files. For example ..\date\ArticleNr\DateTimeSerialNr.xml.  Thank you very much in adance.
    Kri. 

    Kri,
    You can use Configure >> Report Options, and then select the Report File Pathname tab to configure where your reports will end up, and what the file name will be. If you want to have these be different for each sequence, then add the ReportOptions Callback to each sequence and then modify the settings in the Parameters.ReportOptions container to what you want.
    This link may also be helpful as it talks about what you're are trying to do: Report File Name
    -Jack

  • How to create a link (path) from a file.

    Hello,
    I'm sending an email out and would like to tell the team where a graphic file (illustrator file) is located. I've seen in other emails where it comes in a form of a link (i.e.,  file://localhost/Volumes/creative/Active/VISUAL/.....20ENDCAP%20-%20JULY-AUG%2012.ai); click on this link and takes one directly to the graphic file. I've tried control clicking on the file (MAC platform) and didn't see anything remote indicating a link.
    Does anyone has insight to this question?
    Thanks!
    Suta

    1. Read the file using OPEN DATASET and read and fill up the segment info and fill the EDIDC header data
    and then call function
    CALL FUNCTION 'INBOUND_IDOC_PROCESS'
        TABLES
          IDOC_CONTROL       =  i_edidc
          IDOC_DATA          =  i_edid4.

  • LiveType, how to create a motion path?

    Hello again! I couldn't find an answer to this question in LiveType Central - if anyone here could help I would appreciate it!
    I am trying to do a simple maneuver in LiveType - To have text scroll onto the middle of the screen and then travel upwards to the left corner. This is simple to do in FCE, and I understand keyframes in LT, just not able to do this move. Any ideas? I'm sure I'm missing a basic step somewhere! Thank you!

    Hey there, when you have your text track go up to 'Track' and then 'Add Effect' a purple bar should apper underneath your text track. Postion your text were you want it to start and then go back to 'Track' and click 'Add Keyframe' move your time line to how long you want it and then move your text.
    P.S: You have to move you timeline 1 secound before you add the first keyframe, if you get stuck then i'll give you some screen shots.
    Regards FloPro

  • How to create a file path in OS X Mavericks that works like a link.

    Hello,
    In earlier OS, I was able to copy and paste file path (which becomes a link) into an email. Once the recipient received the email, click on the link and takes directly to the location of the file. Since I've updated to OS X Mavericks, copy and paste with link intact doesn't work.
    Is there a work-around to this problem.
    Thanks!
    sntm

    Hello,
    I've tried the option key but don't see the selection "Copy Link"
    See below:

  • How to create the right path depending from Os

    Hi all,
    I should do a simple thing
    1. Get a dir by a filechooser
    2. Get a dir by another filechooser
    3. Extract all files' name by 1.
    4. Append every filename from 3. to 2.
    5. 4.toString()
    I have problem in 4. Becouse if I append them as Strings I've to add a separator character between dir an filename. This char id \ under Windows and / under linux. Is here any way to concatate a filename and a dir indipendently from filesystem?
    This is the current version that work only on Windows:
                final JFileChooser fc = new JFileChooser();
                fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
                fc.setDialogTitle("Select Source Folder");
                returnVal = fc.showOpenDialog(this);
                File file = fc.getSelectedFile();
                final JFileChooser fc2 = new JFileChooser();
                fc2.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
                fc2.setDialogTitle("Select Destination Folder");
                returnVal2 = fc2.showOpenDialog(this);
                File file2 = fc2.getSelectedFile();
                if (returnVal2 == JFileChooser.APPROVE_OPTION &&
                    returnVal == JFileChooser.APPROVE_OPTION) {
                    File allFiles[] = file.listFiles();
                    for (int i = 0; i < allFiles.length; i++) {
                        if (allFiles.isFile()) {
    Mp3s mp3file = new Mp3s(allFiles[i].getAbsolutePath().
    toString(),
    file2.getAbsolutePath().
    toString() +
    "\\" + allFiles[i].getName());
    Mp3 is a class that gets 2 strings (1st_path/filename, 2nd_path/filename)
    or (1st_path\filename, 2nd_path\filename) depending from OS and that's the dial
    Hope everithing is clear.
    Tnx in advance
    Ciro

    The forward slash should be used, regardless of the platform. The only time this may not work under Windows is if you actually pass the string outside of the Java process. But things like:
    File x = new File("/some/directory/somefile.ext");
    should work under all OS environments. Under Windows, the above will reference whatever the current drive is (C:, for example), so it would resolve to c:\some\directory\somefile.ext when all is said and done. Java takes care of the conversion for you.

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

Maybe you are looking for

  • Wrt160nv2 wireless security help

    Hello I'm new to this forum and had some questions regarding the wireless security settings on this router (WRT160Nv2) I have the security mode set to: WPA2 and what I need to know is which Encryption is better AES or the other setting which is TKIS

  • SAP NetWeaver CE 7.1 SR5 - Trial Version

    Hello, I have been checking this on downloads section https://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/50c58b14-da6d-2a10-ca94-a3c0937828d6 I have seen some instalation guides about it, all of them mention WinXP SP2 or higher or Windows Se

  • Ringtone Assignment

    Hi, I am trying to assign a song as my ringtone. In the process, using I-tunes, I need to right-click the song, click Get Info>Options and then tick the Start and Stop boxes to set the timing of the ringtone. I can't tick these boxes, nor can I tick

  • View photos full screen

    Just updated ATV to 2.1, now the only way to view the photos in full screen is with the Ken Burns effect on. I've seen some older post that say you have to have it on to view in full screen. I like the Ken Burns effect but only when I have control. B

  • Unknown icon on screen

    I have what looks like a green leaf in the bottom right of the screen. Does anyone know what it means or how I get rid of it?