Oink
Nodes

Grain

Grain — synthetic film grain (Nuke Grain2).

raw .md
NodeGrain
Type idOC_N_grain
MenuDraw › Grain
Nuke classGrain2
Codeopencomp_core/nodes/draw/grain.py

Grain properties

Inputs and outputs

PortNameType
input 0Imageimage
output 0Imageimage

Knobs

Panel tab Grain, in panel order.

KnobLabelTypeDefaultRange / valuesNuke knobDescription
seedseedfloat134-1000 to 1000 (integer)seed
presetspresetsmenuKodak 5248Kodak 5248, otherpresets
red_sizeredfloat3.30 to 100red_size
green_sizegreenfloat2.90 to 100green_size
blue_sizebluefloat2.50 to 100blue_size
red_iredfloat0.60 to 1red_i
green_igreenfloat0.60 to 1green_i
blue_ibluefloat0.60 to 1blue_i
red_mredfloat0.4160 to 1red_m
green_mgreenfloat0.460 to 1green_m
blue_mbluefloat0.850 to 1blue_m
blackblackfloat00 to 0.1black
minimumminimum rgbcolour ×30, 0, 00 to 1minimum
maskgrainApply only through alphabooltruemaskgrain
invert_maskInvert alphaboolfalseinvert_mask
match_fromgrain fromtext
match_shotMatch shotbutton (panel only)
match_infoinfo

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 Grain2.

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