Skip to content

Instantly share code, notes, and snippets.

View greenvfx's full-sized avatar

Vitalii Musatov greenvfx

  • Industrial Light & Magic
  • Vancouver
  • LinkedIn in/vmusatov
View GitHub Profile
test_v[ format %0[value CTRL.padding]d [value CTRL.ver] ].jpg
@greenvfx
greenvfx / G++.sublime-build
Created April 22, 2019 03:13
C++ builder for linux. Using xterm.
{
"cmd" : ["g++ -Wall -std=c++14 $file_name -o $file_base_name && xterm -hold -e ./$file_base_name"],
"selector" : "source.cpp",
"shell": true,
"working_dir" : "$file_path"
}
@greenvfx
greenvfx / rotoFilterCorrector.py
Last active May 13, 2018 10:41
NUKE. Set "Rifman" to source filter
def rotoFilterCorrector():
RIFMAN = 4
MITCHELL = 5
ROTOS = ["Roto", "RotoPaint"]
for node in nuke.selectedNodes():
if node.Class() in ROTOS:
curveKnob = node['curves']
root = curveKnob.rootLayer
for shape in root:
attrs = shape.getAttributes()
@greenvfx
greenvfx / rotation_expr.nk
Created April 30, 2018 08:20
rotation in expression
set cut_paste_input [stack 0]
version 10.0 v5
BackdropNode {
inputs 0
name BackdropNode10
tile_color 0xff00ff
label "correct math"
note_font_size 42
selected true
xpos -40
@greenvfx
greenvfx / BlendMatProjection_example.nk
Last active February 23, 2018 15:47
Nuke example: BlendMat with stencil and projection.
set cut_paste_input [stack 0]
version 10.0 v5
Camera2 {
inputs 0
translate {0 0 6.039999962}
name Camera1
selected true
xpos 630
ypos -102
}
@greenvfx
greenvfx / getNodeNumber_Nuke_label.tcl
Last active February 21, 2018 16:06
getNodeNumber_Nuke_label.tcl
[regexp -inline "\[0-9]+$" [value name]]
set cut_paste_input [stack 0]
version 10.0 v5
CheckerBoard2 {
inputs 0
name CheckerBoard1
selected true
xpos -150
ypos -318
}
Roto {
@greenvfx
greenvfx / ToeReverse.nk
Created January 18, 2018 15:31 — forked from jedypod/ToeReverse.nk
A reversible Toe.
set cut_paste_input [stack 0]
push $cut_paste_input
Group {
name ToeReverse
tile_color 0x7aa9ffff
addUserKnob {20 Toe}
addUserKnob {18 lift}
lift 0
addUserKnob {6 lift_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {18 pivot}
@greenvfx
greenvfx / duplicate_selected_node_with_inputs.py
Created January 18, 2018 12:35
Duplication of selectrd nodes with inputs.
def duplicate_selected_node_with_inputs():
sn = nuke.selectedNode()
nuke.nodeCopy(nukescripts.edit.cut_paste_file())
nodes = nuke.allNodes();
for i in nodes:
i.knob("selected").setValue(False)