Illustrator Scripting :: How To Ungroup Or Unmask Imported Group (VBS)
Sep 3, 2012
In vbs, I import a illustrator file with this way
Set importedGroup = appRef.ActiveDocument.GroupItems.CreateFromFile(dest)
after i duplicate them
Set dupItem = importedGroup.Duplicate(newGroup, aiPlaceAfter)
but i don't know how to "ungroup" or "unmask" the importedGroup?
I have looking to use clipped but it seems to not working.
View 6 Replies
ADVERTISEMENT
Jul 30, 2013
I'm having trouble getting a script together where I can ungroup all groups in a document, then put everything under a single group. Everyhting I'm working with has a single layer, but for some of the arts I'm importing have groups within groups ect. To run certain actions I've made properly after I need eveything to be in one, single group.
I searched for an answer and found this (wirtten by Carlos Canto)
function ungroup(whereToUngroup, group) // where to ungroup? layer, document, other group?
{
for (i=group.pageItems.length-1; i>=0; i--)
group.pageItems[i].move(whereToUngroup, ElementPlacement.PLACEATBEGINNING);
}
But I'm having trouble getting it to work.
View 5 Replies
View Related
Mar 5, 2013
How one would go about ungrouping all groups on an active layer with JavaScript?
View 5 Replies
View Related
Jan 17, 2013
I have a dwg showing both sides of a dinette. One side ("Left Booth") was grouped & then duplicated. The duplicate ("Right Booth") was mirrored and moved to the other side. I "UnGrouped" the duplicate ("Right Booth" - not shown in the attached clip), but I can not UnGroup the original "Left Booth" grouping. The original grouping has NO special effects (drop shadow, etc.), simply a group of lines, curves and rectangles. I can't find any "attachment" between the two.
How can I ungroup the "Left Booth" group?
View 8 Replies
View Related
Jul 10, 2008
i have 63 grouped objects - some of which include artistic text. I have worked with CD for a while now and have never had this happen. what have i done??
View 11 Replies
View Related
Jan 18, 2014
currently I am using autocad 2011. I have worked in the past on autocad 2012. in the 2012 version was a function available to "group" or "ungroup" items. in the 2011 version I can not find the function. was is something they add on in the newer version or do I just overlook it somewhere?
View 1 Replies
View Related
May 27, 2013
When i call the method selectObjectsOnActiveArtboard on an artboard, is there a way to easily group all items in the selection? Like in the menu found under "right click > group"
View 4 Replies
View Related
May 13, 2013
Is it possible to use an imported text as a number? I would like to import a .txt tab formatted file containing some values (ex: 22.5; 50.00; 150.00, etc.), and I want to treat those values as numbers in my script. Is this possible?
View 2 Replies
View Related
Jul 10, 2013
I have a document with a single layer and a single group (GroupItem) in that layer.
Unfortunately, I didn't create the .ai file, so I don't know exactly what is in the group; however, there appears to be a bunch of complex clipping masks and gradient effects, etc. deeply nested within it.
I've successfully scripted a few tasks like resizing the group with no ill effect... in other words, this works as expected:
app.activeDocument.activeLayer.pathItems[0].resize(50,50);
However, as soon as I try to move/translate/reposition the group, all the effects/masks seem to go wonky, I've tried all of the below with no success (200 is just arbitrary as a test):
app.activeDocument.activeLayer.pathItems[0].left = 200;
app.activeDocument.activeLayer.pathItems[0].translate(200,0);
I have no problem moving the group around on the document with my mouse... all the effects/masks are still nice and clean, so I'm confused as to why I can't do the same thing via JavaScript.
View 3 Replies
View Related
Apr 5, 2012
I have a layer that contains two clipping groups (groups with a clip mask and other art). When I call layer.groupItems it returns an empty array. When I call layer.layers it returns the two clipping groups. I need to know if these layers are clipping groups, but if they are coming back as layers how can I figure that out?
View 8 Replies
View Related
Feb 17, 2012
How to select objects by their group names?
I'm working with imported graphics, and the objects appear in the AI layer hierarchy grouped and named according to their object types in the native program (see the attached image). The problem lies with the annotation objects: they are made of different parts for which different graphic styles are needed; however, they all come in one layer and are difficult to access for global operations. I need to do different things with the different object types (delete the POINT's, move the LINE's and LWPOLYLINE's to different layers, etc...). The option of selecting objects individually is ok for small data sets, but you can imagine this becomes untenable in a hurry.
Two possible solutions I've considered:
(1) change the output parameters in the source program such that the objects come into illustrator with different graphics allowing them to be accessed through the "Select same ..." tools; it would work, but is problematic for the source program
(2) print the annotation graphics with their desired graphic appearance to pdf rather than importing the source file directly in AI, then open in AI to render the remaining graphics; again, this works but introduces inefficiency in the process. Also, the print process tends to explode closed paths requiring more inefficient path tinkering in AI.
I would like to tell AI to select all objects named "POINT" or "LINE" etc... but have found nothing in the documentation or forums on whether this is possible.
View 1 Replies
View Related
May 1, 2012
All the graphics in my document is selected. I want to deselect groups and leave standalone items selected. How can i make JavaScript recognize a group?
View 2 Replies
View Related
Aug 14, 2013
I have a group that I want centered on the artboard.
View 9 Replies
View Related
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
Sep 11, 2012
I think I might be doing this wrong, I am trying to get contents of a specific textFrame within first group on layer called "page numbers"
It seems to work, but is a bit sketchy, the documentation indicates textFrame is all the text frames in a document, and that textFrameItem should be the specific one within collections of groups etc, maybe I am misunderstanding. this is what I am using:
var existingPageNumbers = app.activeDocument.layers.getByName('page numbers').groupItems[0].textFrames[0].contents;
is this correct approach...?
View 1 Replies
View Related
Apr 3, 2014
I have hundreds of diagrams in Microsoft word that need importing to Indesign. I have imported the illustration part of the diagrams via Illustrator but i now need to bring in the diagrams' text labelling.
The diagrams have a lot of text labels which each appear in their own text box, but if I save the .doc as an rtf and import it into InDesign, it imports all my individual textboxes into 1 large textbox which I can't seem to separate them from.
If I select one of my labels in Indesign and copy and paste it, it is now a separate text box - great, but InDesign won't let me select multiple text boxes within it's large text box and it just is not feasible for me to be selecting each box individually to cut and paste it.
Edit: Each individual text box (within the large textbox they have been imported into) appears to have been anchored on import. If I release the anchor this does what I need in the same way as cutting and pasting, but again, indesign won't let me select more than one and it would take far too long to select each box individually to release it. So I guess I'm either asking for a different import methos, or a way to select multiple textboxes that have been imported into a single text box.
View 13 Replies
View Related
Jul 25, 2013
I'm trying to write a script that renames a layer, and group within the layer, then an object within the layer (but not a part of the group) and have it run in a loop.
Here's what I've got so far, the group rename doesn't work.
#target Illustrator
var doc = app.activeDocument;
idLayers(doc)//IRename layers
idGroups(doc)//Rename groups
function idLayers(doc){
[code]....
I haven't put in anthing to rename the single object yet since I cant even get the group rename to work. I suspect that the group re-name section isn't working because I'm either using bad syntax or an invalid command.
View 3 Replies
View Related
Feb 5, 2013
How do you Un Group several layers in Illustrator? My drawing had layers of information but now is frozen as one and I can't access or change the individual elements within the layers panel or dby picking them in the drawing.
View 6 Replies
View Related
Jul 19, 2013
When working in lightroom 3.6 or 4.0 (I have both) use mostly 3.6 if you have finished working with a group of imported files and want to clean up all the libraries in the left column knowing that I would just re-import the photos if I chose to work them again from scratch, HOW DO YOU CLEAN UP the lirary. Most times I work with photos and do not need to save the library or catalog or whatever you call it that stores the settings done to a group of photos imported.
View 6 Replies
View Related
Nov 21, 2013
In CS5, I created a very handy action that allowed me to, with two paths selected, Divide, Ungroup, and Deselect, resulting in the divided paths without having to do each step manually.
In CS6, for some reason this is no longer possible-- if I try to record the same action, after the divide, everything is automatically deselected and I get a "The object "Ungroup" is not currently available" error. Very frustrating that the new version is more troublesome to use!!
I KNOW that it's possible to do this because I was somehow able to fudge it at one point and get this action to work. But I'm not sure what happened-- maybe a step was deleted in my action or something-- but one day it just stopped working. This action is basically THE function I use most in Illustrator given the way I work, and while it's not a huge step, having to manually reclick, ungroup, and deselect is a huge inconvenience.
View 2 Replies
View Related
Oct 31, 2012
I am running C3D 2010.
Somewhere along the line, someone in our office made our template import points into separate layers based on the RAW Description. I would like to un-do this. So far, I have deleted every point style & point label style except for 'Basic'. Inside of 'Basic', the layer is 'V-NODE'. However, some of my points are still coming in on layers like: 'V-Site-'(Raw Desc).
I'm about to start from scratch on the template, however, I'd like to avoid that because of the array of styles that are in it.
View 3 Replies
View Related
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
Mar 15, 2013
How do you ungroup or expand a pie chart in Adobe Illustrator CS6? This functionality seems to have been removed. Say I'd like to remove the legend: before, I could ungroup the chart, release its link to the data, and then delete the legend with my white mouse. Object > Expand no longer works either.
View 6 Replies
View Related
Oct 22, 2013
In illustrator, how do you change a photoshop spot color channel that has been imported into illustrator. Ever since Illustrator CS2 you could import a psd into Illustrator and you could ungroup the channels and change the colors. How do you do that in CS3-6? I have been trying to figure this out for years. My old computer with Illustrator 10 is about to die and so will my ability to do what I descried above.
View 1 Replies
View Related
Jul 18, 2013
I'm working with another artists's file, and I can't seem to release the clipping mask he created. When I try, I get an error message that says, "Can't ungroup the objects." I've tried releasing Compound Paths, but I get the same message.
View 4 Replies
View Related
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
May 6, 2012
Can you access graph data through the scripting DOM?
View 3 Replies
View Related
Sep 29, 2012
Sometimes when I mask an image - or actually - mask a group of several complex images, when I release the mask it is impossible to ungroup the images. Is there a way to make masked groups but then not have that happen?
View 4 Replies
View Related
Mar 16, 2013
the Script of creating mirror text and stroke text in Adobe illustrator scripting.
View 4 Replies
View Related
Mar 16, 2013
As you can see in the example images of the monkey, each part of him is organized in different layer groups. Head, body, arms, and feet. The first image shows that his entire right arm is grouped but cannot be selected as a whole. Instead, only a path from the arm is selected.
The second image shows that the entire left arm is grouped and IS able to be selected as a whole. They're both set up the same way, so what's different between the two?
View 11 Replies
View Related
Mar 19, 2013
One of my designers running 2012 AutoCAD and 2012 CADWorx, can no longer select individual parts of a GROUP by shift selecting the unwanted elements.
I have tried to modify..
Pickadd
Group
PickStyle
PickAuto
PickDrag
but to no success.
Also fiddled with her Options file, still nothing+
View 6 Replies
View Related