How to move and resize a whole layer with different objects and groups
Ok, I am a bit confused here.Things are not working like I thought they would and the documentation has confused me more.
currently in my code I have
var embedLeftSleeve = new File(folderPath+"/LeftSleeve.ai");
var leftSleevePlaced = doc.groupItems.createFromFile(embedLeftSleeve);
leftSleevePlaced.top = currentHeight;
leftSleevePlaced.left = 0;
I am importing an AI file and trying to put it into its own layer. I want it (the imported ai file) into into it's own layer. And I would like the layer to be setup the exact way it was in the original. But, after the import it seems to group non-grouped items, some of the objects are not showing the same way they did (like a shape with a gradient fill in it).
And finally, I want to scale all of the items in that layer as if I selected the layerer in illustrator and scaled it by hand (but scripting it to a set scale).
Can someone please help me. I am digging deep into the documentations and looking all over online to find what I want with little luck.
John