| SetDOD |
Function
The SetDOD function limits the active area, or Domain of Definition (DOD),
to a limited window. If you have a large element with only a small portion
of non-black pixels, you can apply a SetDOD node to isolate the area and
to speed all image
processes.
Shake automatically assigns a DOD to an .iff image. For example, if you scale down an image, Shake limits the DOD to the scaled area. This remains in effect for later composites, but does not affect the current script.
You can procedurally access the DOD of an image with the following variables:
dod[0] Left edge of DOD
dod[1] Bottom edge of DOD
dod[2] Right edge of DOD
dod[3] Top edge of DOD.
For example, calling FileIn1.dod[0] will return the minimum X value of FileIn1's DOD.
|
Parameters
|
Type
|
Defaults
|
Function
|
| left | int | 0 | The new left edge of the DOD |
| bottom | int | 0 | The new bottom edge of the DOD |
| right | int | width | The new right edge of the DOD |
| top | int | height | The new top edge of the DOD |
Synopsis
image SetDOD( image, int left, int right, int bottom, int top );
Script
image = SetDOD( image, left, right, bottom, top );
Command Line
shake -setdod left right etc