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 openBaseNode(): | |
sn = nuke.selectedNode() | |
for knob in sn.knobs(): | |
if sn['%s'%knob].hasExpression(): | |
expression = sn['%s'%knob].animation(0).expression() | |
nodeName = expression.split('.') | |
n = nuke.toNode('%s'%nodeName[1]) | |
nuke.show(n) | |
nuke.menu('Nuke').addCommand("Edit/Node/Open Base Node", "openBaseNode()", "Ctrl+Shift+o" ) |
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 openBaseNode(): | |
sn = nuke.selectedNode() | |
for knob in sn.knobs(): | |
if sn['%s'%knob].hasExpression(): | |
expression = sn['%s'%knob].animation(0).expression() | |
nodeName = expression.split('.') | |
n = nuke.toNode('%s'%nodeName[1]) | |
nuke.show(n, forceFloat = True) | |
nuke.menu('Nuke').addCommand("Edit/Node/Open Base Node", "openBaseNode()", "Ctrl+Shift+o" ) |
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 | |
import random | |
import nukescripts | |
def runner(): | |
if nuke.thisKnob().name() == 'selected': | |
# RANDOM FOR X | |
random.seed(random.random()) | |
randFactX = (random.random()-0.5) | |
# RANDOM FOR Y |
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 subprocess | |
import os | |
import glob | |
import sys | |
a = r"C:\\Program Files\\Side Effects Software\\Houdini 15.0.244.16\\bin\\mantra.exe" | |
folder = sys.argv[1] | |
start = int(sys.argv[2]) | |
finish = int(sys.argv[3]) |
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.0 v5 | |
push $cut_paste_input | |
Camera2 { | |
translate {-2.632596731 1.25999999 -1.370361328} | |
rotate {45 -20.48773298 0} | |
name Camera2 | |
selected true | |
xpos 1152 | |
ypos -498 |
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.0 v5 | |
push $cut_paste_input | |
Axis2 { | |
translate {-3 0 -4.099999905} | |
name Axis1 | |
selected true | |
xpos 300 | |
ypos -1374 | |
} |
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
node = nuke.selectedNode() | |
prefs = nuke.toNode('preferences') | |
allPrefKnobs = prefs.allKnobs() | |
colourClasses = [knob.name() for knob in allPrefKnobs if "NodeColourClass" in knob.name() ] | |
foundClass = '' | |
ruleFound = '' | |
for colorClass in colourClasses: | |
rules = prefs[colorClass].value().split() |
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
""" | |
MIT License | |
Copyright (c) 2017 Cyrille Rossant | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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 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) | |
OlderNewer