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 | |
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
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
def remove_prefix(text, prefix): | |
if text.startswith(prefix): | |
return text[len(prefix):] | |
return text | |
undo = nuke.Undo() | |
undo.begin("make file paths relative") | |
project_dir = nuke.Root()['project_directory'].value() | |
if not project_dir.endswith('/'): |
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: | |
# disconnect the SerializedNode completely | |
# set the position of the SerializedNode to the source node | |
# optional: after restoring the source node, reconnect all former inputs correctly | |
# (could be tricky when the script has changed in the meantime) | |
# optional: create the invisible node via python instead of pasting TCL code | |
for n in nuke.selectedNodes(): | |
node_as_string = 'set cut_paste_input [stack 0]\npush $cut_paste_input\n' + n.Class() + ' {' | |
node_as_string += n.writeKnobs(nuke.TO_SCRIPT | nuke.WRITE_ALL) |
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 v7 | |
push $cut_paste_input | |
Group { | |
name CS_CropToBBox1 | |
tile_color 0xa57aaaff | |
addUserKnob {20 CS_CropToBBox} | |
addUserKnob {41 numpixels l "Add Pixels" T AdjBBox1.numpixels} | |
addUserKnob {41 softness T Crop1.softness} | |
addUserKnob {41 reformat T Crop1.reformat} |
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 0 | |
push $cut_paste_input | |
Group { | |
inputs 2 | |
name CS_EdgeExtend1 | |
selected true | |
xpos -150 | |
ypos 1214 |
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
#!/bin/bash | |
# find hidden files recursively from the current folder which file names are not starting with a dot | |
find . -flags +hidden -name \[\!.\]\* | |
# unhide all files recursively from the current folder which file names are not starting with a dot | |
find . -flags +hidden -name \[\!.\]\* -exec chflags nohidden {} \; | |
# simple search and replace in all file names of current folder | |
# echo is there for preview, remove it to actually execute the command |
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 | |
CheckerBoard2 { | |
inputs 0 | |
format "1920 1080 0 0 1920 1080 1 HD_1080" | |
name CheckerBoard1 | |
selected true | |
xpos -150 | |
ypos -417 | |
} |
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_ColorCorners1 | |
selected true | |
xpos 840 | |
ypos -130 | |
addUserKnob {20 CS_ColorCorners} | |
addUserKnob {20 corner1 l "Bottom Left Corner" n 1} |