Skip to content

Instantly share code, notes, and snippets.

@draconiansolo
Last active December 17, 2015 02:09
Show Gist options
  • Save draconiansolo/5533976 to your computer and use it in GitHub Desktop.
Save draconiansolo/5533976 to your computer and use it in GitHub Desktop.
Quick nuke inf/NaN fix. copypasta
set cut_paste_input [stack 0]
version 6.3 v5
push $cut_paste_input
Expression {
expr0 (isnan(r)||isinf(r))?r(x+xo,y+yo):r
expr1 (isnan(g)||isinf(g))?g(x+xo,y+yo):g
expr2 (isnan(b)||isinf(b))?b(x+xo,y+yo):b
expr3 (isnan(a)||isinf(a))?a(x+xo,y+yo):a
name Expression4
selected true
xpos 17251
ypos -1210
addUserKnob {20 User}
addUserKnob {7 xo l xOffset}
xo -8
addUserKnob {7 yo l yOffset}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment