Oink
OCIOColorSpace OCIOColorSpace

OCIOColorSpace

Convert between two OCIO colour spaces.

raw .md
NodeOCIOColorSpace
MenuColor › OCIOColorSpace
Names in each format
.oink comp (JSON)"type": "OC_N_ociocolorspace"
.nk scriptOCIOColorSpace (how .nk import works)
Pythonnuke.createNode("OCIOColorSpace")
Assistant (MCP)create_node(type="OCIOColorSpace")
Tab searchociocolorspace, or its initials ociocs

OCIOColorSpace properties

Inputs and outputs

PortNameType
input 0Imageimage
input 1maskimage
output 0Imageimage

Knobs

Panel tab OCIOColorSpace, in panel order.

KnobLabelTypeDefaultRange / values.nk knobDescription
channelschannelsmenurgbrgba, rgb, alpha, all, noneLayer the op applies to: rgb, rgba, alpha, all, none, <layer> or <layer>.<ch>
in_colorspaceinputmenuscene_linearscene_linearin_colorspace
out_colorspaceoutputmenuscene_linearscene_linearout_colorspace
swapswap input/outputbutton (panel only)
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
unpremult(un)premult bymenunonenone, rgba.alpha
invert_unpremultinvertboolfalse(Un)premultiply by 1 - alpha
mixmixfloat10 to 1mix
key1key1textkey1
value1value1textvalue1
key2key2textkey2
value2value2textvalue2
key3key3textkey3
value3value3textvalue3
key4key4textkey4
value4value4textvalue4

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
in_colorspace_exprin (expression)string
out_colorspace_exprout (expression)string

Examples

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

  • OCIOColorSpace: ACES2065-1 to scene linear (examples/color/ocio_aces_to_linear.oink): Carrots.exr is stored with ACES2065-1 (AP0) primaries. The Read is set to raw (no conversion) and the OCIOColorSpace converts AP0 to the working space (Linear Rec.709), which is what the Read's input transform does for you when you set it.

On this page