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 6.3 v8 | |
| push $cut_paste_input | |
| NoOp { | |
| name TransformExpander | |
| tile_color 0x7f7272ff | |
| selected true | |
| xpos -2707 | |
| ypos -1042 | |
| addUserKnob {20 User} |
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 6.3 v8 | |
| push $cut_paste_input | |
| Colorspace { | |
| colorspace_out HSV | |
| name Colorspace1 | |
| selected true | |
| xpos 479 | |
| ypos 315 | |
| } |
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
| #n1=nuke.nodes.NoOp(xpos=0,ypos=0) #creates a NoOp node at 0,0... | |
| # xpos and ypos are hidden knobs. | |
| n1=nuke.nodes.NoOp(xpos=0,ypos=0,label='0,0') #label pa marcarlo, not that it matters. | |
| n2=nuke.nodes.NoOp(xpos=200,ypos=200,label='200,200') #same | |
| ############# | |
| marker=nuke.nodes.Dot() #crear un dot | |
| ############## | |
| marker.knob('xpos').setValue(100) #change xpos as a knob | |
| ############## | |
| marker.setXpos(0) |
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 6.3 v5 | |
| push $cut_paste_input | |
| Group { | |
| name DisparityClamp1 | |
| selected true | |
| xpos 392 | |
| ypos 494 | |
| addUserKnob {20 User} | |
| addUserKnob {26 DisparityClampofDoom l "Disparity Clamp of Doom" t "*not suitable for new views; will help greatly with painting stuff, specially edges." T "Allows you to clamp and blur your disparity with up to 4 reference points.\nClamps max and min values.\n**Based on David's manual disparity trick"} |
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 6.3 v5 | |
| push $cut_paste_input | |
| Expression { | |
| temp_name0 x | |
| temp_expr0 pow(tangent.left.r-r,2) | |
| temp_name1 y | |
| temp_expr1 pow(tangent.left.g-g,2) | |
| temp_name2 z | |
| temp_expr2 pow(tangent.left.b-b,2) |
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 6.3 v5 | |
| push $cut_paste_input | |
| Expression { | |
| expr0 (isnan(r)||isinf(r))?r(x+xo,y+yo):r | |
| expr1 (isnan(g)||isinf(g))?g(x+xo,y+yo):g | |
| expr2 (isnan(b)||isinf(b))?b(x+xo,y+yo):b | |
| expr3 (isnan(a)||isinf(a))?a(x+xo,y+yo):a | |
| name Expression4 | |
| selected true |
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
| ######################################################### | |
| ########### CALLBACK KNOBS PART A ################### | |
| ###### checking script name for version | |
| #should be on onSaveScript callback | |
| import re | |
| def checkScriptName(name): | |
| print name |
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
| ########### CALLBACK FUNCTIONS PART A ################### | |
| def test(): #defino una funcion que retorna un string | |
| return "testing" | |
| nuke.selectedNode().knob("autolabel").setValue("test()")# asigno esa funcion al set value de el knob que quiero modificar (en este caso es un nodo oculto llamado autolabel) ... y en el set value, llamo la funcion como un string | |
| #------------------- | |
| for n in nuke.allNodes("Camera2"): #por si se me olvida... | |
| #n['focal'].setValue(5) #asi es como se ponen valores en los knobs |
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
| #you can paste this to your script in settings/python/onScriptLoad | |
| for n in nuke.allNodes("Group"): # for all the nodes in root that are groups | |
| print n.name() # write names on the script console | |
| if n.name()[0]=="_": # if the name of the group starts with underscore | |
| nuke.showDag(n) # show their schematics |
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
| #####ACCESSING NODES PART A######## | |
| print nuke.selectedNode().name() #asi es como llamo el nodo seleccionado. | |
| #nuke.selectedNodes() es con la que se seleccionan varios nodos. | |
| for n in nuke.selectedNodes(): #... | |
| print n.name(); #ciclo entre los objetos para mostrar el nombre. |