1 Reply Latest reply on Jun 23, 2014 11:06 PM by CarlosCanto

    Group from selection

    hedgie

      Hi

       

      I want to align all the contents to the artboards top-left position and resize it to the artboards width and height.

      if i use this

      activeDocument.selectObjectsOnActiveArtboard();
      for (var i = 0; i < activeDocument.selection.length; i++) {  
               doc.selection[i].position = [0,0];
      } 
      

      it aligns every single item seperatly.

       

      So how do i make the whole artboard one single group and then align this particular group to the top-left corner and then ungrouping it again?