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.
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.
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.
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]
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
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?
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?
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.
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?
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.
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?
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.
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.
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.
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.
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
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")}
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.
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?