Thread: Executable node

Reply to Thread
Results 1 to 7 of 7
  1. #1 Executable node 
    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
    Reply With Quote  

  2. #2  
    Join Date
    Sep 2006
    Location
    Wellington
    Posts
    232
    what exactly are you trying to do?
    Reply With Quote  

  3. #3  
    I want to create node that can run "post render script" from command shell.
    Reply With Quote  

  4. #4  
    Join Date
    Sep 2006
    Location
    Wellington
    Posts
    232
    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"} {
    execute $curNode [value root.first_frame],[value root.last_frame]
    }
    }
    eval <external command>

    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
    }
    Reply With Quote  

  5. #5  
    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
    Reply With Quote  

  6. #6  
    Join Date
    Sep 2006
    Location
    Wellington
    Posts
    232
    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.
    Reply With Quote  

  7. #7  
    Join Date
    Mar 2006
    Location
    London, UK
    Posts
    469
    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?
    Hugo Guerra
    Director / VFX Supervisor / Nuke Artist / Nuke training

    Portfolio Website
    Twitter: http://twitter.com/HugoCGuerra
    IMDB: http://www.imdb.com/name/nm1512412/
    Reply With Quote  

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Using the shake Multiplane node on Free Jimmy
    By morten in forum Case studies, Critiques & Reviews
    Replies: 15
    Last Post: December 16th, 2008, 11:02 AM
  2. fileout node does not work
    By n0mad in forum Apple Shake
    Replies: 2
    Last Post: November 20th, 2006, 02:37 AM
  3. copying 2d transform node info
    By faridzadeh in forum Apple Shake
    Replies: 1
    Last Post: November 15th, 2006, 05:07 PM
  4. Usuable Node View?
    By Yastremski.D in forum Adobe After Effects
    Replies: 7
    Last Post: July 18th, 2006, 06:50 AM
Bookmarks
Bookmarks
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts