Adobe 23101764 Scripting Guide - Page 53
docRef.Selection.Select ArrayArray0, 0
UPC - 718659340025
View all Adobe 23101764 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 53 highlights
Scripting Photoshop 3 Advanced Scripting You can now apply a wave filter to the selection. A truncated sin curve carries the text along for a roller-coaster-like ride. docWidthInPixels = docWidthInInches * resolution docHeightInPixels = docHeightInInches * resolution newTextLayer.Rasterize Photoshop.PsRasterizeType.psTextContents docRef.Selection.Select Array(Array(0, 0), _ Array(docWidthInPixels / 2, 0), _ Array(docWidthInPixels / 2, docHeightInPixels), _ Array(0, docHeightInPixels), Array(0, 0)) newTextLayer.ApplyWave 1, 1, 100, 5, 10, 100, 100, _ Photoshop.PsWaveType.psSine, _ Photoshop.PsUndefinedAreas.psWrapAround, 0 This code snippet manipulates and bends the text on the left side of the document. 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. Photoshop CS Scripting Guide 49