1 Reply Latest reply on Aug 16, 2012 2:14 PM by caseyctg

    Get all items on a layer and then move them all at once

    caseyctg

      I'm trying to figure out a way to reposition multiple elements all at once. I have a layer, lets say the name is "GraphBars" and I want to take everything on GraphBars and move it using the .move([x,y]) command.

       

      So basically, Grab all items from "GraphBars" and move said items to a new position.

       

      I'm on cs6 and am working in javascript.

       

      Will something like this work? (newDoc is my document)

       

      newDoc.layers.item("GraphBars").move([ x,y ]);

       

      Or do I need to create a group of the frames within that layer? and then move them?