Oink
Nodes

Constant

Generate a solid colour image.

raw .md
NodeConstant
Type idOC_N_constant
MenuColor › Constant
Nuke classConstant
Codeopencomp_core/nodes/color/constant.py

Constant properties

Inputs and outputs

PortNameType
output 0Imageimage

Knobs

Panel tab Constant, in panel order.

KnobLabelTypeDefaultRange / valuesNuke knobDescription
channelschannelsmenurgbargba, rgb, alpha, all, nonechannels
colorcolorcolour ×40, 0, 0, 00 to 1color
formatformatmenucustomcustom, HD_1080 (HD_1080 1920x1080), HD_720 (HD_720 1280x720), UHD_4K (UHD_4K 3840x2160), 2K_DCP (2K_DCP 2048x1080), 4K_DCP (4K_DCP 4096x2160), 2K_Super_35 (2K_Super_35 2048x1556), PAL (PAL 720x576), NTSC (NTSC 720x486), square_1K (squar...
width_propwidthfloat19201 to 16384 (integer)
height_propheightfloat10801 to 16384 (integer)

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

KnobLabelTypeDefaultRange / valuesNuke 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

Nuke equivalent

Imports from and exports to Nuke's Constant.

Nuke knobs not in this list import as a knob of the same name, or are kept unchanged for export. See .nk import.

On this page