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 v4 | |
push $cut_paste_input | |
Group { | |
name CS_PSCrop1 | |
tile_color 0xa57aaaff | |
selected true | |
xpos -1690 | |
ypos -466 | |
addUserKnob {20 CS_PSCrop} |
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 os | |
import platform | |
import subprocess | |
def open_file_folders(nodes, filter = None, recurseGroups = True): | |
for n in nodes: | |
if n.knob('disable') and n['disable'].value() == True: | |
#print 'skipping {0} because it is disabled'.format(n['name'].value()) | |
continue | |
if recurseGroups and isinstance(n, nuke.Group): |
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_CameraShake1 | |
tile_color 0x9c0000ff | |
selected true | |
xpos 2820 | |
ypos -1210 | |
addUserKnob {20 CS_CameraShake} |
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_RoughenEdges1 | |
help "Adds a noise to semi-transparent alpha. This way all soft edges are roughened. Hard edges shouldn't be affected." | |
tile_color 0xcc804eff | |
selected true | |
xpos 2270 | |
ypos -2746 |
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_NoiseDistort1 | |
tile_color 0xa57aaaff | |
selected true | |
xpos 9530 | |
ypos 6206 | |
addUserKnob {20 CS_NoiseDistort} |
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_DistanceBetween1 | |
tile_color 0x9c0000ff | |
label "Distance2D: \[value Distance2D]\nDistance3D: \[value Distance3D]" | |
selected true | |
xpos 290 | |
ypos -95 |
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_MapValue1 | |
label "Output: \[value out]" | |
selected true | |
xpos 400 | |
ypos -88 | |
addUserKnob {20 CS_MapValue} |
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_ChromaticAberration1 | |
tile_color 0xcc804eff | |
addUserKnob {20 CS_ChromaticAberration} | |
addUserKnob {20 Red_Cyan l Red/Cyan n 1} | |
addUserKnob {41 distortion1_red l "Radial Distortion 1" T LensDistortionRed.distortion1} | |
addUserKnob {41 distortion2_red l "Radial Distortion 2" T LensDistortionRed.distortion2} |
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
# TODO: | |
# - convert label to proper knob name, e.g. w/o spaces | |
# - check if link expression is valid | |
# - implement a node and knob picker | |
if len(nuke.selectedNodes()) == 0: | |
nuke.message('no node selected') | |
else: | |
n = nuke.selectedNode() | |
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 | |
NoOp { | |
name Version1 | |
knobChanged "if nuke.thisKnob().name() == 'inputChange':\n label = nuke.thisNode().knob('label')\n label.setValue(label.getValue())" | |
label "\[if \{\[exists \[topnode].file]\} \{return \[string range \[regexp -inline \"_v\\\[0-9]*\" \[value \[topnode].file]] 1 end]\} \{\}]" | |
note_font_size 50 | |
selected true | |
xpos -810 |