Group and Un Group
hi all,
i'm trying code can select objects,text frames and layers group them (ctrl+a)+(ctrl+g) add more steps
after want un group again (ctrl+a)+(ctrl+shif+g)
i'm trying code see layers not selected , not grouped, can please
var doc = app.activedocument;
doc.selectobjectsonactiveartboard();
newgroup = app.activedocument.groupitems.add();
( = app.activedocument.layers[0].pageitems.length-1; > 0; a-- )
{
app.activedocument.layers[0].pageitems[a].movetobeginning(newgroup);
}
thanks lot
app.executemenucommand ('selectall'); (ctrl+a)
app.executemenucommand ('group'); (ctrl+g)
app.executemenucommand ('ungroup'); (ctrl+shif+g)
More discussions in Illustrator Scripting
adobe
Comments
Post a Comment