mySelection.select( region, [ type ], [ feather ], [ antiAlias ] ) in Photoshop DOM

Select a new area.

Arguments

nametypedescription
region Array An Array of points.
type SelectionType [optional] Whether to create a new select
feather Number [optional]
antiAlias Boolean [optional]
Return Type
(none)

Description

The points in region are each two-element Arrays representing a point for the selection. The first and last point do not need to match; Photoshop will connect the first and last points automatically. For example, the following selects a rectangular area starting at (10,10) and going to (100,100):

activeDocument.selection.select([ [100,10] , [100,100] , [10,100], [10,10] ]);

If not supplied, type is assumed to mean SelectionType.REPLACE, replacing any current selection with the new selection.