Oink
Crop Crop

Crop

Cuts the image to a box; outside is black, or the format is reset to the box.

raw .md
NodeCrop
MenuTransform › Crop
Names in each format
.oink comp (JSON)"type": "OC_N_crop"
.nk scriptCrop (how .nk import works)
Pythonnuke.createNode("Crop")
Assistant (MCP)create_node(type="Crop")
Tab searchcrop

Crop properties

Inputs and outputs

PortNameType
input 0Imageimage
output 0Imageimage

Knobs

Panel tab Crop, in panel order.

KnobLabelTypeDefaultRange / values.nk knobDescription
leftboxfloat0-1000 to 8192
bottomyfloat0-1000 to 8192
rightrfloat19200 to 8192
toptfloat10800 to 8192
softnesssoftnessfloat00 to 100softness
reformatreformatboolfalsereformat
intersectintersectboolfalseintersect
black_outsideblack outsidebooltruecrop

Other knobs (Python, .nk and the assistant; not on the panel)

KnobLabelTypeDefaultRange / values.nk knobDescription
gl_colorViewer Controls Colorfloat ×30, 0, 00 to 1
postage_stamp_frameStatic Frameint1-2147483648 to 2147483647
lifetimeStartLifetime Startint0-2147483648 to 2147483647
lifetimeEndLifetime Endint100-2147483648 to 2147483647
useLifetimeUse Lifetimebooleanfalse
cachedCachedbooleanfalse
bookmarkBookmarkbooleanfalse
dope_sheetDope Sheetbooleanfalse
clone_groupClone Groupstring
link_sourceLink Sourcestring
link_overridesLink Overridesstring
split_viewsSplit Viewsstring

Knob names in .nk scripts

.nk knobKnob here
cropblack_outside

Other .nk knobs use the same name here. See .nk import.

Examples

Open these from Help › Examples…, or from the ? menu in this node's Properties panel.

  • Data window outside the display window (examples/io/read_data_window.oink): openexr-images DisplayWindow/t08.exr: 400x300 pixels whose data window starts at (30, 40) inside a 501x401 display window. The Read keeps the whole data window as the bounding box; the Crop cuts it back to the format, like Nuke.

On this page