Adobe 23101764 Scripting Guide - Page 49
Applying a MotionBlur Filter
UPC - 718659340025
View all Adobe 23101764 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 49 highlights
Scripting Photoshop 3 Advanced Scripting Applying a MotionBlur Filter Similar code can be used to blur the text in a document. Again create an array of points to designate an area of the document. This time the width is defined as the distance from the middle of the document to the far right side. The vertical positioning remains the same. Select the right side of the document and apply a motion filter with parameters that define the angle and radius of the blur. Then remove the selection so that the "marching ants" disappear from the dialog. To finish up, set application preferences back to their original values. 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(); app.preferences.rulerUnits = startRulerUnits; app.preferences.typeUnits = startTypeUnits; app.displayDialogs = startDisplayDialogs; This code snippet removes the "marching ants" and blurs the text on the right side of the document. Photoshop CS Scripting Guide 45