How to move an entire group with scripting to specific location
I get an entire group and create it like so:
var mainTemplateLayer = aDoc.layers.getByName("Placement" + plcIx);
aDoc.activeLayer = mainTemplateLayer;
mainTemplateLayer.hasSelectedArtwork = true;
app.executeMenuCommand("group");
With the above my artwork is selected and grouped.
How can I place this artwork (all of it) to a specific position?
app.selection.length is equal to 17 so if I just did
app.selection[0].left = 50;
app.selection[0].top = 50;
then it would just move the selection that is 0 array right?
I had asked a similar question on another thread and marked it as correct to do this:
var sel = app.selection[0];
but it appears that this only gets part of the group. Am I missing something?