Skip to content

Instantly share code, notes, and snippets.

@rjmoggach
Last active September 1, 2020 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjmoggach/a0a44459ab98e3363dc1dcfe79caf046 to your computer and use it in GitHub Desktop.
Save rjmoggach/a0a44459ab98e3363dc1dcfe79caf046 to your computer and use it in GitHub Desktop.
Remap Black Body Ramp to normalized mask
for( $i=0; $i<50; ++$i ) {
connectAttr -f nodeBlackBody.outCoord[$i] remapBlackBody.red[$i].rp;
connectAttr -f nodeBlackBody.outColor[$i].outColorR remapBlackBody.red[$i].rfv;
setAttr "remapBlackBody.ri" 2;
}
for( $i=0; $i<50; ++$i ) {
connectAttr -f nodeBlackBody.outCoord[$i] remapBlackBody.green[$i].gp;
connectAttr -f nodeBlackBody.outColor[$i].outColorG remapBlackBody.green[$i].gfv;
setAttr "remapBlackBody.gi" 2;
}
for( $i=0; $i<50; ++$i ) {
connectAttr -f nodeBlackBody.outCoord[$i] remapBlackBody.blue[$i].bp;
connectAttr -f nodeBlackBody.outColor[$i].outColorB remapBlackBody.blue[$i].bfv;
setAttr "remapBlackBody.bi" 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment