Oink
BlinkScript BlinkScript

BlinkScript

Runs a Blink kernel on the GPU.

raw .md

Runs a Blink kernel 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. Specify Output Format sets the output size; otherwise it follows the first input.

NodeBlinkScript
MenuOther › BlinkScript
Names in each format
.oink comp (JSON)"type": "OC_N_blinkscript"
.nk scriptBlinkScript (how .nk import works)
Pythonnuke.createNode("BlinkScript")
Assistant (MCP)create_node(type="BlinkScript")
Tab searchblinkscript, or its initials bs

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

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