Oink
Nodes

BlinkScript

BlinkScript: runs a Blink kernel (Nuke BlinkScript) on the GPU.

raw .md

BlinkScript: runs a Blink kernel (Nuke BlinkScript) on the GPU. Edit the kernel source, press Recompile (Ctrl+Enter); params become knobs, images become inputs. Scatter writes, reduction / rolling / particle kernels are not supported (docs/notes/blinkscript.md). Specify Output Format sets the output size; otherwise it follows the first input.

NodeBlinkScript
Type idOC_N_blinkscript
MenuOther › BlinkScript
Nuke classBlinkScript
Codeopencomp_core/nodes/filter/blinkscript.py

BlinkScript properties

Inputs and outputs

PortNameType
input 0srcimage
output 0Imageimage

Knobs

Knobs from the node definition (this node has no panel layout in the app yet).

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
kernel_sourceKernel Sourcestring`// Saturation: scale colour away from / towards its Rec.709 luma.
kernel SaturationKernel : ImageComputationKernel
{
Image<eRead, eAccessPoint, eEdgeClamped> src;
Image dst;

param: float saturation;

local: float3 weights;

void define() { defineParam(saturation, "Saturation", 1.2f); }

void init() { weights = float3(0.2126f, 0.7152f, 0.0722f); }

void process() { SampleType(src) in = src(); float3 rgb(in.x, in.y, in.z); float luma = dot(rgb, weights); float3 result = (rgb - luma) * saturation + luma; dst() = float4(result.x, result.y, result.z, in.w); } }; | | | | |kernel_knobs| Kernel Knobs | string |[]| | | | |kernel_values| Kernel Values | string |{}| | | | |kernel_info| Kernel Info | string |{}| | | | |compile_error| Compile Error | string | | | | | |recompile_count| Recompile | int |0| -2147483648 to 2147483647 | | | |specify_format| Specify Output Format | boolean |false| | | | |format` | Output Format | enum | | | | |

Nuke equivalent

Imports from and exports to Nuke's BlinkScript.

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

Examples

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

  • BlinkScript kernel (examples/blink/blinkscript_saturation.oink): The default BlinkScript kernel (a saturation kernel written in Nuke's Blink language) running on the GPU through Oink's Blink-to-GLSL translator. Edit the kernel source in the properties and recompile.

On this page