Wednesday, March 23, 2011

Photoshop Script Tutorial and For Loops

http://www.kirupa.com/motiongraphics/ps_scripting.htm

I really liked this tutorial on Kirupa's site. It's good for beginners because it actually goes over all of the basics in scripting again like loops and arrays and variables for Java. It even goes over later in the tutorial how to use the script editor; it's the basic scripting tutorial all in one!

For writing a for loop in JavaScript, here's a simple one. It the same syntax as the code in maya.


for (a=1; a<=3; a++){ alert ("hello world") }


It will create an alert box three times when you launch it in Photoshop.

No comments:

Post a Comment