SetDOD
Function
This function limits the active area, or Domain of Definition to a limited window.
If you have a large element that only has a small portion of non-black pixels,
you can place a SetDOD node to isolate that area, speeding up all processes
on that image.
Note that Shake will automatically assign a DOD to an image when writing an .iff image. For example if you scale down an image, Shake will limit the DOD to the scaled area. This will then be in effect for later composites, but will not effect 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.
For more information, see Overview - The 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