Adobe 65014293 Scripting Guide - Page 72
or in the ExtendScript Object Model Viewer, Adobe Photoshop CS4 JavaScript, Scripting Reference
UPC - 883919153544
View all Adobe 65014293 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 72 highlights
CHAPTER 3: Scripting Photoshop Advanced Scripting 72 JS To apply a motionblur filter to HelloWorldDoc: 1. Type the following code into the script file HelloWorldDoc just above the statements that restore original preferences. //change the value of selRegion to the other half of the document selRegion = Array(Array(docWidthInPixels / 2, 0), Array(docWidthInPixels, 0), Array(docWidthInPixels, docHeightInPixels), Array(docWidthInPixels / 2, docHeightInPixels), Array(docWidthInPixels / 2, 0)) docRef.selection.select(selRegion) newTextLayer.applyMotionBlur(45, 5) docRef.selection.deselect() 2. Save the script, and then open Photoshop and select the script from the Scripts menu (choose File > Script > HelloWorldDoc). NOTE: Look up the ArtLayer class applyMotionBlur() method in the Adobe Photoshop CS4 JavaScript Scripting Reference, or in the ExtendScript Object Model Viewer to see if you understand how you used it in this script.