Tuesday, March 29, 2011

First Simple Script

  // if image is in portrait mode, rotate it 90 degrees  
  if (activeDocument.height > activeDocument.width) {
      activeDocument.rotateCanvas(90);
  }

It's super simple and somewhat not really important. But it does something. Yay me. Just from scanning a few tutorials I learned the generic // means comments and activeDocument is required syntax and the whole () vs {} business which I guess is stuff we've already gone over. I don't really know how else to explain this but I read up on the terms here.

http://www.earthboundlight.com/phototips/your-first-photoshop-script.html

No comments:

Post a Comment