Illustrator Scripting :: Drawing PathItems That End Up Grouped

Sep 12, 2012

How do I go about drawing many items that end up grouped?
 
I have:
 
cropMark.setEntirePath([[(tl.x-offset), tl.y], [(tl.x-lineLength),tl.y]]);
 
I'm obviously going to end up with 8 of them; how do I script their such that they end up grouped once I'm done?

View 1 Replies


ADVERTISEMENT

Illustrator Scripting :: Finding PathItems That Have No Fill And No Stroke

Jan 10, 2014

So here's what I wrote to try and find and delete all pathItems within a document that lack a fill and lack a stroke.
 
var doc = app.activeDocument;
for (i=0; doc.pathItems.length>i;i++) {
alert(doc.pathItems[i].name + " " + doc.pathItems[i].fillColor.name)

[Code]....
 
But alas, neither seems to do the trick, the first one makes sense why it wouldnt work since it says that the color is "undefined" but it isnt a string called "undefined." So I'm not sure how to go about this at all now.

View 3 Replies View Related

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

Illustrator Scripting :: Mass Enable / Disable Appearance Effects In Several Layers Of Drawing?

Aug 21, 2012

How can I mass enable/disable all drop shadow appearance effects existing in several layers of my drawing?

View 3 Replies View Related

Illustrator :: Graphic (Logo) Grouped In AI - How To Ungroup

Jan 5, 2014

I have a small graphic (logo) 'grouped' (in .ai) and it won't 'ungroup'? Never happened b4.  ???

View 4 Replies View Related

Illustrator :: How To Scatter Grouped Objects - State Map

Dec 16, 2013

I have a state map that is made up individual vector files of each county in the state. They are grouped together. I want to make it seem as if though there is more space between each of the counties as if there they've all been separated just a little bit more than. Is there a way I can do this efficiently in Illustrator? I'm working in CS 6 on a mac.

View 7 Replies View Related

Illustrator :: Setting That Allows Grouped Objects From Different Layers To Be Ungrouped?

Jul 20, 2012

Is there a setting that allows grouped objects from different layers to be ungrouped and they return to their original layers?

View 3 Replies View Related

Illustrator :: Creating Outline / Border Around Grouped Objects

May 22, 2013

In the link below you will find a jpeg of a sew on patch, then a pdf of just the logo.  I am wanting to learn how to create the outline look of the patch around the group of objects that form the logo.  I have tried the appearance, outline trick but for thsi project it does not even come close. [URL]

View 8 Replies View Related

Illustrator :: Applying Color Groups To Grouped Art Gets Randomized

Nov 30, 2012

I have a collection of color groups, that I am applying to grouped objects, but every time I change out the color group, it randomizes the order which the colors are applied.
 
In the kind of bulk work I'm doing, its really turning into an hours burner.
  
The specific process I'm using (I've tried several different ways with the same result)

1) Draw my art
2) Group the art
3) Create a new color group with my art selected.
4) Double click the color group and recolor.
5) Save the swatches ----- so far so good
6) Double Click a different color group (or select from the Recolor panel) -- here the other color group (swatches) get applied, but every time I do it, the order of which color is applied to

View 7 Replies View Related

Illustrator :: When Copy Layers - Objects Grouped And Layer Information Disappeared

Oct 17, 2012

I have a single file with couple objects on different layers. When I copy/paste into other files, the objects seem to be grouped and layer information disappeared. Can I move around objects with layer setting as well?

View 4 Replies View Related

Illustrator Scripting :: How To Automate Importing Variable And Datasets Into Graphs Via Scripting

Dec 18, 2012

I'm try to automate the importing of the Varaible and datasets into my graphs via Scripting, but the ImportVaraibles() function doesn't seem to work.  Here is my Script, mostly copied from the example script provided with Illustrator (CS5).  And, this works manually, using the file names in the script, via Load Variable Library
 
    Set appRef = CreateObject(strIllistratorVersion)
   
       'Open the file and import the datasets
        Set docRef = appRef.Open(strTemplate & "200-500.ai")
        'docRef.Datasets.RemoveAll
        docRef.Variables("Yearbook").Delete
 
Here is the problem, after I delete the previous library, then this next line, right from the example, does nothing
The script then exits with 'No Datasets in this document'
       
docRef.ImportVariables (strXMLFolder & "Lumber_200-500.xml")
'appRef.DoJavaScript "alert('Template:" & strTemplate & strRange & ".ai  |  XML file:" & strXMLFolder & ""  & objFile.Name & "^')"
        If (appRef.Documents.Count > 0) Then
            Set docRef = appRef.Documents(1)

 [Code]....
 
If I remove that delete line, the script runs, but just uses whatever Variables I had last loaded, not the XML file.
 
It's simply not loading.  What do I need to do to get it to load?

View 8 Replies View Related

Illustrator Scripting :: Access Graph Data Through Scripting DOM?

May 6, 2012

Can you access graph data through the scripting DOM?

View 3 Replies View Related

Illustrator Scripting :: Create Mirror Text And Stroke Text In AI Scripting

Mar 16, 2013

the Script of creating mirror text and stroke text in Adobe illustrator scripting.

View 4 Replies View Related

Photoshop :: Scripting - Get Stroke Shape And Pressure Of (Brush Tool) Drawing Action?

Sep 29, 2013

What I would like to do is to get the stroke shape, pressure and maybe velocity after a `Brush Tool' drawing action is triggered by the user, i.e. after a simple drawing operation.

I have been using the ScriptListener plugin, but it does not record this type of operation: changing the brush parameters (e.g. size and opacity), yes, but the actual drawing action, no.

View 4 Replies View Related

CorelDRAW X5 :: Rotating Grouped Objects?

Dec 11, 2010

I am extremely new at Corel Draw X5. I am in the middle of a design; page 30cmx160cm (for printing purposes) however to make it easier my design is sitting 160cmx30cm

I have started the design consisting of 200+ objects. By grouping them i presumed that it would make one object and when I rotated them 90 degrees to fit the page they would rotate in the same they sat originally.

But when I rotate the group it rotates the individual objects on their individual axis not on a group axis.

Is there anyway getting around this without moving each individual object?

View 14 Replies View Related

AutoCAD LT :: Preserving Grouped Geometry

Feb 27, 2013

When I use the 'Copy with Basepoint' command from the clipboard and paste the results into another drawing, all of the grouped items become ungrouped.

Is there a way of preserving grouped geometry when copying from one drawing and pasting to another?

View 5 Replies View Related

Edge Animate CC :: How To Scale Grouped Div

Oct 17, 2013

I've got quite a few items grouped into a div (images, text and div boxes). However, when I scale the group on the timeline, nothing happens. I'm expecting the whole group to scale but only a blue outline box scales.

To provide some clarity, I have an image of a map with text labels and some boxes that I want to uniformly scale to simulate a pan and zoom effect. I can pan no problem, but am unable to get the content to zoom.

View 4 Replies View Related

Photoshop :: CC Moving Grouped Objects Separately?

Jul 19, 2013

In cs6 if I have two objects in a group I just select one and move it. In CC it moves all of the objects in a group.

View 1 Replies View Related

Photoshop Elements :: Can 11 Open Grouped Layers

Apr 3, 2013

I'm a developer, and a lot of times, marketing companies send me some material for their applications in .psd (Photoshop) files. My usage is basic: just open these files, get some layer and export to web images. For this purpose, I bought Photoshop Elements 10, but then I realized (after bought it) that it cannot open grouped layers (only merge all layers in group in a single layer). I'll not discuss about the lack of this basic feature, we already have a lot of noise around it.
 
My question is: is this limitation still present on PSE 11? Or now I can open grouped layers on psd files?

View 3 Replies View Related

Photoshop :: CS6 - Layers Grouped Into A Folder / Merge Groups

Jun 1, 2012

I have recently ran into a few issues with Photoshop CS6. When working with Layer Groups and Blend Modes.
 
Here is what happens:
 
I am working with a document and have layers grouped into a folder. All is good when I merge that group any layers that I had with a blend mode change from that mode to Normal, thus messing up the merge. Another instance where I had this issue is if I had any hidden layers that were not displayed. If the layers were merged they would be changed from hidden to displayed. Again messing up the image and the merge. Not sure what do to here.

View 3 Replies View Related

Revit :: Create Design Options In A Grouped Project

Feb 10, 2012

I want to know if is it possible to create design options in a grouped project.

View 3 Replies View Related

Premiere Pro :: Move And Resize Multiple Or Grouped Objects

Feb 17, 2014

Why can't I just highlight multiple objects and move or resize them together? This wasn't a problem in previous versions, but now when I select more than one clip (or grouped objects), the effect controls go away.  I have a lower third (the title and 2 different cropped color mattes) that I want to be able to move and resize while maintaining their relationship, and I can't figure it out. I've been using Premiere for a long time, and this is a huge inconvenience.  I also cannot highlight multiple clips, and adjust their length together.  Sometimes it will work (rarely), but most of the time it will only adjust one at a time.  It's a real nuissance when you have upwards of ten layers you need to adjust together.

View 5 Replies View Related

CorelDRAW X5 :: Adding Perspective To Grouped Objects (specific Dimensions)

Apr 20, 2012

I need to find a way to add "perspective" to grouped objects that include a bitmap and other drawn objects. I can convert everything to a bitmap in needed.  What I need this for is I engrave this grouped artwork onto drinking glasses and I have to adjust the artwork for the differences in the diameter of the glass. I need to be able to set the width of the top of the artwork with a numeric value and the bottom with a different numeric value.

An example of the problem with the engraving is that if I wanted to engrave a one inch square half way down the glass I would have to make the top of the square 1.1 inches wide and the bottom of the square 1.2 inches (the math is not right with this example) so a trapezoid turns into a square once engrave on the tapered glass.

The image below shows a sample of the artwork I need to engrave. The right side image is an exaggerated example of what the artwork would need to look like to work right once engraved. I could only adjust the black ring but not the text or image in the center. The third image is to show a trapezoid.

View 14 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Edit Grouped Text

May 11, 2012

whether within AutoCAD or thru Autolisp or VBA, to individually edit text that has been grouped. Ungrouping and regrouping is too cumbersome. Search and replace will work, but will change all instances of text that match the search / replace criteria.

View 3 Replies View Related

AutoCad 3D :: Draw 3D Arrow - Rotate Cone And Line Grouped?

May 4, 2013

How can I draw a 3d arrow in autocad 2012? (where the arrow head is a cone, or something that appears in all view angles).

Assuming the answer will be a cone and line grouped, how can I rotate them (I seem to be able to rotate only in the xy plane).

View 2 Replies View Related

Illustrator Scripting :: How To Export JPG

Jan 15, 2014

Quite new to Ai's scripting stuff.
 
I'm having a complicate time with Ai's save to jpg options vs artboard sizes and units conversions.
 
Say, i have a doc (from my client), which they inherited and enhanced for 10 years may be.
 
It's "supposed" to be in millimeters, but artboardRect gives me those values :

-0.27880000000005
436.191388980878
646.457
-0.20900000000074
 
which sound like weird points or pixels.
 
I need to export a jpg (or gif, or png), that will be X pixels wide. For the purpose of the test i set it at 1200.
 
var maxLargeurPx = 1200;
 
First thing, getting the artboard's width :
 
largeurArtboard = Math.abs(thisArtboardRect[2]-thisArtboardRect[0]);
// 646.7358
 
Then i try to have a multiply factor to use
 
coefExport = /*Math.round*/ (100 * maxLargeurPx / largeurArtboard);
// 185.54717397738
 
and then set my ExportFile jpg to this value (i can't give it a number)
 
     // exportOptions.horizontalScale = coefExport
 
That's when it's getting fun : my images are 1204 px wide with or without clipping.
 
Of course, i "can't" resize the doc for each export, especially expecting to have dozens of those, with different values, dimensions, etc.

View 5 Replies View Related

Illustrator Scripting :: Converting PDF To PNG?

Jul 27, 2012

I wrote the following AppleScript to open a PDF file and export is as PNG. I am using Illustrator CS5.
 
The export command gets an error: Adobe Illustrator got an error: Can't get current document.
when it encounters the export command.
 
set inputFile to (choose file with prompt "Open PDF file to convert to PNG:") as text
set exportFile to inputFile & ".png"
tell application "Adobe Illustrator"
if not frontmost then activate
open inputFile as alias without dialogs
export current document to exportFile as PNG24 ¬
with options {class:PNG24 export options ¬
, resolution:300 ¬
, matte color:{red:0, green:0, blue:0}}
close current document saving no
end tell

View 5 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 :: Get Layers By Name VBA?

Apr 7, 2012

Is it possible to reference layers or groups by their names instead of their index using VBA? If so, what is the sytax? I know you can do it in Extendscript, but I'm not finding info for VBA.

View 7 Replies View Related

CorelDRAW Graphics Suite X6 :: Adding White Background To Grouped Object?

Jan 4, 2013

I have an object that I want to have a background so that the contents under it cannot be seen.  Is there a way to do this without having to draw a new shape?

View 7 Replies View Related

CorelDRAW Graphics Suite X3 :: Follow Grouped Object To Curved Path

Feb 22, 2011

have number of curved objects which makes a design but goes in straight way. what i want is to follow that grouped objects to a curve .

Power Clip option is not suitable for me as it reposition its original state. is there any other option which can make it in better way.

View 15 Replies View Related







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