Home / Articles / Adobe Photoshop / Learn How to Script Adobe Photoshop CS2

Learn How to Script Adobe Photoshop CS2

Chapter Description

This chapter demonstrates several techniques for creating scripts to use specifically with Adobe Photoshop CS2. More importantly, you'll learn how to use the Adobe Photoshop CS2 scripting references to find the objects, classes, properties, methods, and even some values (called constants or enumerations) you can use to create JavaScripts for Adobe Photoshop CS2.

Working with filters

To apply a filter, you use a specific filter method. For example, to apply a Gaussian blur filter, you use the applyGaussianBlur() method. All filter methods belong to the ArtLayer object.

The following example applies the Gaussian blur filter to the active layer.

docRef.activeLayer.applyGaussianBlur(5)

Other filters

If the filter type that you want to use on your layer is not part of the scripting interface, you can use the Action Manager from a JavaScript to run a filter. See Part 2 of this book for information on using the Action Manager.

11. Understanding clipboard interaction | Next Section Previous Section