This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for n in nuke.allNodes(): | |
r = n.knob('reload') | |
if r != None: | |
r.execute() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nuke | |
for n in nuke.selectedNodes(): | |
if n.Class() != 'Write': | |
continue | |
print 'Executing ' + n.name() | |
nuke.execute(n) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nuke | |
for n in nuke.allNodes(): | |
k = n.knob('reload_script') | |
if k != None: | |
print 'reloading ' + n.name() | |
k.execute() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nuke | |
in_min = sys.maxint | |
out_max = -sys.maxint | |
for n in nuke.allNodes(): | |
if n.Class() == 'Write': | |
n_in = int(n.knob('first').getValue()) | |
n_out = int(n.knob('last').getValue()) | |
if(n_in < in_min): | |
in_min = n_in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set cut_paste_input [stack 0] | |
version 10.5 v3 | |
push $cut_paste_input | |
Group { | |
name CS_AutoBBox1 | |
selected true | |
xpos -8180 | |
ypos -3184 | |
addUserKnob {20 CS_AutoBBox} | |
addUserKnob {41 color T CurveTool1.color} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set cut_paste_input [stack 0] | |
version 10.5 v3 | |
push $cut_paste_input | |
Group { | |
name CS_PositionToDepth | |
} | |
Input { | |
inputs 0 | |
name InputWPP | |
xpos -920 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set cut_paste_input [stack 0] | |
version 9.0 v8 | |
push $cut_paste_input | |
Group { | |
name CS_FixFrames1 | |
addUserKnob {20 CS_FixFrames} | |
addUserKnob {3 first_frame_to_fix l range} | |
first_frame_to_fix 1 | |
addUserKnob {3 last_frame_to_fix l "" -STARTLINE R 0 100} | |
last_frame_to_fix 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set cut_paste_input [stack 0] | |
version 9.0 v5 | |
push $cut_paste_input | |
Group { | |
name CS_JelloEffect1 | |
selected true | |
xpos -2900 | |
ypos 1166 | |
addUserKnob {20 CS_JelloEffect} | |
addUserKnob {7 effect R -1 1} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nuke | |
prefs = nuke.toNode('preferences') | |
grid_width = prefs['GridWidth'].getValue() | |
grid_height = prefs['GridHeight'].getValue() | |
def resize_to_grid(): | |
n = nuke.thisNode(); | |
k = nuke.thisKnob(); | |
if knob_to_grid(k, 'bdwidth', grid_width) or knob_to_grid(k, 'bdheight', grid_height): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set cut_paste_input [stack 0] | |
version 9.0 v5 | |
push $cut_paste_input | |
Group { | |
name CS_SoftTiler1 | |
selected true | |
xpos 0 | |
ypos 0 | |
addUserKnob {20 SoftTiler} | |
addUserKnob {12 offset} |