Oink
Transform Transform

Transform

Translates, rotates, scales and skews the image around the center point.

raw .md
NodeTransform
MenuTransform › Transform
Names in each format
.oink comp (JSON)"type": "OC_N_transform"
.nk scriptTransform, also imports TransformMasked (how .nk import works)
Pythonnuke.createNode("Transform")
Assistant (MCP)create_node(type="Transform")
Tab searchtransform

Transform properties

Inputs and outputs

PortNameType
input 0Imageimage
input 1maskimage
output 0Imageimage

Knobs

Panel tab Transform, in panel order.

KnobLabelTypeDefaultRange / values.nk knobDescription
channelschannelsmenuallrgba, rgb, alpha, all, nonechannelsLayer the op applies to: rgb, rgba, alpha, all, none, <layer> or <layer>.<ch>
translatetranslatevector ×20, 0-2000 to 2000translate
rotaterotatefloat0-180 to 180rotateDegrees, counter-clockwise
scalescalewh ×21, 10 to 4scale
skew_xskew Xfloat0-1 to 1skewX
skew_yskew Yfloat0-1 to 1skewY
skew_orderskew ordermenuXYXY, YXskew_order
centercentervector ×2960, 5400 to 4096center
invert_matrixinvertboolfalseinvert_matrixapply the opposite move.
filterfiltermenuCUBICIMPULSE (Impulse), CUBIC (Cubic), KEYS (Keys), SIMON (Simon), RIFMAN (Rifman), MITCHELL (Mitchell), PARZEN (Parzen), NOTCH (Notch), LANCZOS4 (Lanczos4), LANCZOS6 (Lanczos6), SINC4 (Sinc4)filterhow pixels are resampled, from impulse (no smoothing) through cubic (default) to Lanczos and Sinc4 (most sharpening, 4 px wide).
clampclampboolfalseclamp
black_outsideblack outsidebooltrueblack_outside
motionblurmotionblurfloat00 to 4motionblur
shuttershutterfloat0.50 to 2shutter
shutter_offsetshutter offsetmenuSTARTCENTRED (centred), START (start), END (end), CUSTOM (custom)shutteroffset
shutter_custom_offsetcustom offsetfloat0-1 to 1shuttercustomoffset
mask_channelmaskmenunonenone, rgba.alpha, rgba.red, rgba.green, rgba.blueMask channel, e.g. rgba.alpha (none = no mask)
injectinjectboolfalseCopy the mask into mask.a for nodes downstream
invert_maskinvertboolfalseinvert_mask
fringefringeboolfalseOnly apply the effect at the edges of the mask
mixmixfloat10 to 1mix

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
unpremult(Un)premult byenumnonenone, rgba.alpha
invert_unpremultinvertbooleanfalse(Un)premultiply by 1 - alpha

Knob names in .nk scripts

.nk knobKnob here
skewXskew_x
skewYskew_y
shutteroffsetshutter_offset
shuttercustomoffsetshutter_custom_offset

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.

  • Merge over (examples/merge/merge_over.oink): A premultiplied CG render (CandleGlass, alpha 0 with non-zero rgb in places) scaled down and merged over a photo with Merge (over): A over B = A + B * (1 - A.alpha).
  • Transform: translate, rotate, scale (examples/transform/transform_basics.oink): Transform works in Nuke pixels (y up, degrees counter-clockwise, around "center"). The Reformat first puts the photo in an HD frame so the rotated corners have room.

On this page