Skip to main content
Participant
October 6, 2008
Question

Rotate file 90 D

  • October 6, 2008
  • 5 replies
  • 625 views
I thought this would be simple but ive tried a few things and nothing seems to work.

Ive tried

myDoc.layers[0].rotate = 90

and ive tried

myDoc.rotate = 90 but neither seems to work right.
This topic has been closed for replies.

5 replies

try67
Community Expert
Community Expert
October 16, 2008
Best way I can think of is to select everything is then run:

for (i in selection) {
selection.rotate(-90);
}

(edit: maybe you should add a try-catch statement around the rotation bit, just in case it fails.)
Participant
October 16, 2008
what if i wanted to do the entire thing?
try67
Community Expert
Community Expert
October 10, 2008
For example, if you want to rotate the first Symbol Item in the first layer 90 degrees clockwise, you do it like so:

activeDocument.layers[0].symbolItems[0].rotate(-90);
Participant
October 10, 2008
do you have an example
try67
Community Expert
Community Expert
October 6, 2008
Neither the Document nor the Layer object have a rotate method. I think you need to rotate all the items within a document (or layer) one by one in order to achieve what you want.