Rotate layers around center of document
Hello!
I'm wanting to rotate a number of layers around the center point of a document, not an anchor point of the layer itself. It's easy to do when doing the rotation manually by simply moving the anchor point to the center of the documnet, I can't figure out how to do this in script.
Something along the lines of:
//center of document
var center = [doc.width / 2, doc.height / 2]
//rotate layer around center point
newLyr.rotate(36, center);
Thanks!
