Illustrator Scripting :: Drawing Compound Path From Existing Artwork

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


ADVERTISEMENT

Illustrator Scripting :: Making Objects Into A Compound Path Then Clip?

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

Illustrator :: Create Single Path To Type On Not Compound Path From Many Paths?

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

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 View Related

Illustrator :: Can't Make A Compound Path

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

Illustrator SDK :: (AI CS4 Mac) How To Create A Compound Path

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

Illustrator :: Edit Compound Path

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

Illustrator :: Can't Release Compound Path

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

Illustrator Scripting :: Way To Add / Remove / Redistribute Anchor Points On Compound Shape

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

Illustrator :: Cutting Out A Shape With Compound Path?

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

Illustrator :: Compound Path Fill Rules?

Jun 20, 2012

I rarely want my Compound Paths to have voids where overlapping takes place, but sometimes (and it seems random) I get voids anyway.
 
The Attribute Panel options don't seem to do anything.

View 3 Replies View Related

Illustrator :: Stroking Only Part Of Compound Path?

Feb 11, 2014

I am working on a file where there are kangaroos that are compound paths. I need to stroke only parts of them. Is there a way to do that? Should I just manually be drawing paths that go right up to the edge of the compund path (drawing my own stroke)?

View 9 Replies View Related

Illustrator :: Making A Compound Path Permanent?

Jan 22, 2013

I am trying to cut holes permanently out of an solid oblong and although I have made a compound path I need to make this permanent

View 5 Replies View Related

Illustrator :: How To Add A Stroke To Inside Of Compound Path

Aug 27, 2013

I'm having trouble making adjustments to my compound path/shape, as I'd like to outline the inside of the shape with a stroke - but this doesn't seem possible as the stroke always surrounds the outside too.

So: I've got a simple rectangle with white fill, with a rectangle-window hole cut out of it using the compound path action so you can see the layers beneath. Now I want to stroke the window hole, but NOT the outside of the entire rectangle. I'd be happy to split the shape up and tried various options like divide, edit in isolation mode, expand (button is greyed out), all the pathfinders - but none of them allow me to do this only to the inside part of the path.
 
How I can perform this action? I'm working in CS5 and CS6.

View 6 Replies View Related

Illustrator :: How To Divide Compound Path Into Segments

Jul 13, 2013

This yellow donut is a compound path. I'd like to divide it into 10 segments, in the places where the black lines cross it.

View 5 Replies View Related

Illustrator :: Beveled Compound Path - Smooth And Unite

Aug 24, 2013

I have this compound path (green in the print screens below) which I would like to apply a bevel effect on.
 
It seems as if the compound path is fine but when I apply the bevel effect, the result is as image 2. How can I solve this so that all of the beveled effect is smoothly and unite instead of rectangles popping out etc... ?

View 4 Replies View Related

Illustrator :: How To Convert Compound Path Into Smart Object

May 25, 2013

I'm working on a project and I need to use the free distort tool + ctrl (command for mac users) but it won't work. I found out that I need to convert it to a smart object, from another disscussion, but right clicking the name of it in the layers menu isn't working. I'm using CS6 by the way.

View 10 Replies View Related

Illustrator :: How To Separate Compound Path Clipping Masks

Mar 23, 2014

I'm trying to create a clipping mask of a photograph using several separate shapes and then separate the final masked image/shapes.
 
I've made the shapes a compound path, and then applied a clipping mask (so far so good).
  
Now that I have my masked photo/shapes I want to separate the shapes so I can edit them individually and independent of one another.
 
(using Illustrator CS4)

View 8 Replies View Related

Illustrator :: Compound Path And Peeking White Lines?

Sep 19, 2012

I'm trying to create a compound path in order to mask off some bits and create letters, but there seems to be some kind of overlap and its leaving a white line where there shouldn't be one. Its all set up to snap-to and both shapes are perfectly in line, but its still leaving this white border.

The top of each letter is basically just 2 semi circles, the diameter being where the white line is. the lines are still visible on low-res monitors...
 
how to get rid of this line or if it will even print?

View 4 Replies View Related

Illustrator :: CS5 - Create Compound Path With Grunge Texture

Nov 9, 2012

I've created a logo with a grunge texture over the font in Illustrator CS5. When I try and create a compound path with the grunge texture I lose the detail. Here's one of the letter to show what it looks like before and after creating the compound path using the minus front pathfinder option. On the left is how I'd like it to look.
 
Although it doesn't look like much of a difference when printed it flattens out even more. I've tried every grouping option I could think of, used the pathfinder options and used this thread: [URL].... to try creating it using a transparency. Nothing gets the detail I need.
 
Is this something I can achieve?

View 7 Replies View Related

Illustrator :: Create 3D Visuals Using Existing Artwork?

Sep 11, 2013

I have designed some packaging artwork using Illustrator which looks fine although I would like to see the artwork as it would look when made up. The artwork will be used for pouches, bags and boxes. Is there a way of creating a generic 3D pouch, bag and box that I can wrap the existing artwork around?

View 2 Replies View Related

Illustrator :: Gradient Annotator Doesn't Work On Compound Path - CS6

May 21, 2012

I'm trying to use the gradient annotator on a compound path. Moving the sliders and rotating the annotator works fine, but if I double click a slider and change the color the annotator disappears and the color of the slider stays the same. It works fine on non compound paths.

View 7 Replies View Related

Illustrator :: How To Make Compound Path Of Inner Area Or Negative Space Of Objects

Feb 25, 2014

Like in a Circle I need to make the compound path the inner area or negative space of my objects. I have expanded letters and joined their paths so that there are negative space, I was wondering if it were possible to fill in the negative space with a clipping mask? (like one would with an object like a circle or rectangle) The letter that I am using is an A and I have connected two A's together like a diamond reflecting each other... Is it possible to create a clipping mask to cover the negative space of the inside of the letters...?

View 6 Replies View Related

Illustrator :: Transform Tool Fails To Rotate Gradients - Especially When Inside Compound Path

May 17, 2013

Using transform tool to rotate, often gradients  do not rotate. In the example below only the "w" gradient did. Good news is the rotate tool works fine.
 
Appears this has something to do with compound paths, as this normally does not happen on a new single path. Releasing the compound also rotates the gradient unexpectedly.

View 21 Replies View Related

Illustrator :: Create Compound Path The Result Appears Lighter Than Originally Outlined Text

Jun 24, 2013

I placed text on a shape and outlined it. As soon as I create a compound path, the result appears lighter than the originally outlined text (on screen and printed), although the paths seem to be identical when I overlay them. Same happens when I divide the paths.

View 21 Replies View Related

Illustrator Scripting :: How To Add PDF On Top Of Existing PDF

Jun 20, 2012

Im trying to add a pdf on top of an existing PDF in illustrator using a script. This is supposed to be done by anyone at my firm so that is why I want it in a script. I also have a lot of other functions that works that will do some other stuff with this document.
 
Created this from the scripting guide but it doesnt work. Im pretty sure its the embedDoc var thats empty and i dont understand why. Im not sure if the File "points" to the directory of the script or the original file but Ive tried both ofcoarse.
 
This is the masterpiece
 
var embedDoc = new File("/temp/testfile1.pdf");
if ( app.documents.length > 0 && embedDoc.exists ) {
var doc = app.activeDocument;
var placed = doc.groupItems.createFromFile( embedDoc );
}else {alert("suck")}

View 4 Replies View Related

Illustrator Scripting :: Add Artboard To Existing Document?

Mar 2, 2014

What is the javascript to add a new artboard to an existing Illustrator document?

View 2 Replies View Related

Illustrator Scripting :: Run Script That Pastes Set Background Into Existing PDF

Nov 16, 2012

In Illustrator, I run a script that pastes a set background into existing PDFs that each contain about 200,000 circles. This then gets saved as a new file. That part of the project works fine.
 
My problem is that the viewer of these PDF's will want to view them on their screen in landscape mode and I'd like them to open up that way. All my files output in portrait mode, eventhough the original file (with the 200,000 circles) was created as landscape. I do not see PDFSaveOptions() that changes the orientation.
 
Is my only solution to rotate every item in the file 90° and then resize the artboard to landscape mode?

View 4 Replies View Related

Illustrator Scripting :: (JavaScript) Want To Group In Existing Pathitem?

May 8, 2013

<ai cs5><javascript>

I creat 5 pathitem in the K_layer, i want to group them.

code:
        var myDoc =  app.activeDocument;       
        var K_layer = myDoc.layers.add();
        var k01 = K_layer.pathItems.add();  k01.name='01';[code].....

View 3 Replies View Related

Illustrator Scripting :: How To Access Text Boxes In Existing Document And Replace With New Value

Jun 28, 2012

Is there a way to access text boxes in an existing document and replace them with a new value taken from an excel table? I've been able to create new documents from scratch and populate them with excel data, but formating these new documents to look like those we already made is proving more difficult than I thought using just Javascript.
 
Ideally I'd be able specific an index for each text box and replace them in order as i itterate through the excel(or CSV) document.
 
I already have a way to pull from the table, another question asked here, but can't figure out the object model to put the new info in a specific place.
 
Below is what I came up with to create a very rough looking document from scratch:
 
#target Illustrator
var csvFile = new File('C:/users/whatever/spreadsheet.csv');
if(!csvFile.exists){
          alert('notafile');
          app.quit(); }
 
[Code].....

View 3 Replies View Related

Illustrator Scripting :: Get Source Path Of AI File?

Sep 7, 2012

Have searched but i cant find a good way of retrieving the source path of the current .AI file. Is it possible?
 
IE: If i am working with a file in C:adobeIllustratoreautifulfile.ai i want a function that retrieve C:adobeIllustrator 
// Clint

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved