Hello.
How can I make EXECUTABLE node (gizmo)?
I want to make gizmo with text knob, that simply run tcl script on that text field
when I run my script from the shell:
nuke -x my_node my_project.nk
|
|
Hello.
How can I make EXECUTABLE node (gizmo)?
I want to make gizmo with text knob, that simply run tcl script on that text field
when I run my script from the shell:
nuke -x my_node my_project.nk
what exactly are you trying to do?
I want to create node that can run "post render script" from command shell.
the easiest way would be to make your own render button.
I.e.
Create a NoOp node
add a script button (rc -> manage user knobs...)
edit the script button's tcl code to do something like:
foreach curNode [nodes] {if {[class $curNode] == "Write"} {eval <external command>execute $curNode [value root.first_frame],[value root.last_frame]}
}
this will execute every write node in the script according to the script's frame range and then execute an external command.
here is the NoOp node (the eval command is commented out):
NoOp {
addUserKnob { 20 "" User }
addUserKnob { 32 "" execute T "foreach curNode \[nodes] \{\nif \{\[class \$curNode] == \"Write\"\} \{\n execute \$curNode \[value root.first_frame],\[value root.last_frame]\n \}\n\}\n#eval MyPostScript" }
name NoOp1
selected true
xpos -298
ypos 15
}
Yes. But what if I have 100 scenes? I want to run my tcl-script from nuke, but I want to run it from cmd shell!!!
nuke -x My_NOT_WRITE_EXECUTABLE_NODE my_proj.nk
I don't think you can get Nuke to execute a tcl script via command line but you could probably set up the NoOp so it opens requested scripts and executes the above.
Hi, I am trying also to make a Execute Script to render comps from Qmaster (Mac OS X), anyone has a script for that? or maybe this one works?
| « Previous Thread | Next Thread » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |