1 Reply Latest reply on Dec 29, 2014 9:12 PM by csm_phil

    how to object group

    hamdifem Level 1

      certain operations after the

      I want to group selection

      How can I do


      app.activeDocument.align(app.activeDocument.selection,AlignOptions.RIGHT_EDGES, AlignDistributeBounds.ITEM_BOUNDS);

      app.activeDocument.align(app.activeDocument.selection,AlignOptions.TOP_EDGES, AlignDistributeBounds.ITEM_BOUNDS);

      var myDoc = app.activeDocument; 

      var mySel = myDoc.selection; 

      app.selection[0].groups(); /??

        • 1. Re: how to object group
          csm_phil Level 4

          Hi hamdifem,


          please try the below js code, I just modified your code.


          var myDoc = app.activeDocument; 
          myDoc.align(myDoc.selection,AlignOptions.RIGHT_EDGES, AlignDistributeBounds.ITEM_BOUNDS);
          myDoc.align(myDoc.selection,AlignOptions.TOP_EDGES, AlignDistributeBounds.ITEM_BOUNDS);
          var mySel = myDoc.selection;