Oink
Reformat Reformat

Reformat

Resizes the image to another format, box or scale, with a choice of filter.

raw .md
NodeReformat
MenuTransform › Reformat
Names in each format
.oink comp (JSON)"type": "OC_N_reformat"
.nk scriptReformat (how .nk import works)
Pythonnuke.createNode("Reformat")
Assistant (MCP)create_node(type="Reformat")
Tab searchreformat

Reformat properties

Inputs and outputs

PortNameType
input 0Imageimage
output 0Imageimage

Knobs

Panel tab Reformat, in panel order.

KnobLabelTypeDefaultRange / values.nk knobDescription
reformat_typetypemenuTO_FORMATTO_FORMAT (to format), TO_BOX (to box), SCALE (scale)type
formatoutput formatmenuHD_1080PC_Video (PC_Video 640x480), NTSC (NTSC 720x486 0.91), PAL (PAL 720x576 1.09), NTSC_16:9 (NTSC_16:9 720x486 1.21), PAL_16:9 (PAL_16:9 720x576 1.46), HD_720 (HD_720 1280x720), HD_1080 (HD_1080 1920x1080), UHD_4K (UHD_4K 3840x2160), 1K_Sup...
box_widthwidth/heightfloat2001 to 8192 (integer)box_width
box_heightheightfloat2001 to 8192 (integer)box_height
box_fixedforce this shapeboolfalsebox_fixed
box_pixel_aspectpixel aspectfloat10.1 to 4box_pixel_aspect
scalescalewh ×21, 10 to 4scale
resizeresize typemenuWIDTHNONE (none), WIDTH (width), HEIGHT (height), FIT (fit), FILL (fill), DISTORT (distort)resize
centercenterbooltruecenter
flipflipboolfalseflip
flopflopboolfalseflop
turnturnboolfalseturn
filterfiltermenuCUBICIMPULSE (Impulse), CUBIC (Cubic), KEYS (Keys), SIMON (Simon), RIFMAN (Rifman), MITCHELL (Mitchell), PARZEN (Parzen), NOTCH (Notch), LANCZOS4 (Lanczos4), LANCZOS6 (Lanczos6), SINC4 (Sinc4)filter
clampclampboolfalseclamp
black_outsideblack outsidebooltrueblack_outside
pbbpreserve bounding boxboolfalsepbb

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
typereformat_type

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.

  • Read input transform: ACES2065-1 frame (examples/color/read_aces_input_transform.oink): One 4K frame of Netflix's Sparks (CC BY 4.0, Netflix Open Content): scene-linear ACES2065-1 with no chromaticities in the file, so the Read's input transform is set to ACES2065-1 by hand. The Reformat brings the 4096x2160 frame down to HD for a light comp.
  • 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