Skip to content

Instantly share code, notes, and snippets.

@sanfx
Created January 9, 2015 11:57
Show Gist options
  • Select an option

  • Save sanfx/3280d9c731e07f0b5614 to your computer and use it in GitHub Desktop.

Select an option

Save sanfx/3280d9c731e07f0b5614 to your computer and use it in GitHub Desktop.
Nuke NoOp node with expression to sample pixel and x, y coordinates
set cut_paste_input [stack 0]
version 8.0 v6
push $cut_paste_input
NoOp {
name NoOp2
selected true
xpos 824
ypos -172
addUserKnob {20 User}
addUserKnob {12 pixelCoordinate}
pixelCoordinate {731 64}
addUserKnob {18 pixelValues}
pixelValues {{"\[sample this red pixelCoordinate.x pixelCoordinate.y]"} {"\[sample this green pixelCoordinate.x pixelCoordinate.y]"} {"\[sample this blue pixelCoordinate.x pixelCoordinate.y]"}}
addUserKnob {6 pixelValues_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment