Thread: Automated Terminal Nuke Renderscript

Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 25
  1. #1 Automated Terminal Nuke Renderscript 
    Join Date
    Jan 2004
    Location
    Austria - Salzburg
    Posts
    88
    For all using Nuke on a Mac, I've done a small Apple Script to automize the process of rendering in the terminal. It is based on the automated shake render script found on fxguide, so thanks to geoffroy dantas for this.
    Ok, now this is how it works:
    Open up Apple Script Editor (/Applications/AppleScript/Script Editor.app) and paste in the following lines:

    on open these_items
    tell application "Terminal"
    activate
    repeat with this_item in these_items
    set titre to name of (info for this_item)
    set question to "enter desired time range for " & name of (info for this_item)
    set range to text returned of (display dialog question default answer " 1,100")
    set range to range as string
    set this_item to quoted form of POSIX path of item 1 of these_items
    set shakescript to "/Applications/Nuke4.6/Nuke4.6.app/Contents/MacOS/Nuke4.6 -x " & this_item & range
    if (count windows) is 0 then do script ""
    do script shakescript in window 1
    tell window 1
    set title displays shell path to false
    set title displays window size to false
    set title displays file name to false
    set title displays device name to false
    set title displays custom title to true
    set custom title to titre
    end tell
    end repeat
    end tell
    end open




    Finally save the script as application. Now you can simply throw your Nuke script files on the render app, and it will render out your write node.

    hope this is of use...cheers

    franz
    Reply With Quote  

  2. #2 QMAster in NUKE MAC OS X 
    Join Date
    Mar 2006
    Location
    London, UK
    Posts
    469
    Hi, I have try your script, works like a charm, very good job.
    Thanks for sharing.

    Do you know if I can use it to make Qmaster render Nuke in multiple machines?

    All of best and thanks again for the script.

    P.S: you should put it in FXshare since a lot a people is starting to use Nuke in MAC OSX.
    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  

  3. #3  
    Join Date
    Jan 2004
    Location
    Austria - Salzburg
    Posts
    88
    I've updated the script so you can select your Write node you want to render. You can also choose to render out every WriteNode in the script. this should give you more comfort for rendering in the Terminal.

    I've attached the script as a zip file this time...
    Attached Files
    Reply With Quote  

  4. #4  
    Join Date
    Jan 2004
    Location
    Los Angeles, CA.
    Posts
    148
    ...I noticed this was intended for Nuke 4.6, when I try to run the script it disappears. Any suggestions?
    Reply With Quote  

  5. #5 Nuke version 
    Join Date
    Mar 2006
    Location
    London, UK
    Posts
    469
    Hi, just open the script in Script editor and change the path to your current version.

    so where you see the 2 lines saying:

    set shakescript to "/Applications/Nuke4.6/Nuke4.6.app/Contents/MacOS/Nuke4.6 -X " & fileout & " " & this_item & " " & range

    Change the path there to your Nuke and save in another name and it works fine.


    Quote Originally Posted by Ajax View Post
    ...I noticed this was intended for Nuke 4.6, when I try to run the script it disappears. Any suggestions?
    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  

  6. #6  
    Join Date
    Jan 2004
    Location
    Los Angeles, CA.
    Posts
    148
    Thank you Hugo!
    Reply With Quote  

  7. #7  
    Join Date
    Mar 2007
    Location
    NY, USA
    Posts
    42
    I love this script but I'm having a problem when rendering out a specific node. When it asks to choose a Write node (press 1 for yes) or not (press 2), it works only when I press 2.

    I press 1 and it asks to "enter desired writeNode" and in the textbox it says "Name of WriteNode"... So I type something like Write1 or Write2 - which are in my script, ready to render out - but I get this error each time:
    couldn't read file "Write1": no such file or directory

    So what does this mean? I thought that was the name of the WriteNode but if it's not, what am I supposed to tell it? I'm confused. Thanks in advance!
    Reply With Quote  

  8. #8  
    Join Date
    Jan 2004
    Location
    Austria - Salzburg
    Posts
    88
    Which Version of Nuke are you using ? I tested it with the latest release 5.1v2 and here it works fine. Be sure to change the code to your Application folder. If you have installed it right in the standard directory the attached file should work.

    hope this helps

    cheers franz
    Attached Files
    Reply With Quote  

  9. #9  
    Join Date
    Mar 2007
    Location
    NY, USA
    Posts
    42
    Thank you. What happened is that I have to change the one value from ... -X Write1 ... to -iX (because if not, it says feature nuke_r not available - render only license failure).

    I accidentally had -ix on the press 1 line and the statement for press 2 had -iX and that's why it was working for press 2 only. I don't know much about scripting but when yours worked and mine did not, I noticed that was the only thing different. A lower case letter instead of capital...
    Reply With Quote  

  10. #10  
    Join Date
    Jun 2008
    Location
    San Francisco, CA
    Posts
    871
    Hey there, using nuke 5.1v4, and this works perfectly after changing the path name of the version i'm working with.

    Would it be possible to change the text that displays "(display dialog question default answer " 1,100") to 1 or 0, followed by the maximum frame range of that script that was set in the globals? That way with 12 different scripts, I don't have to write down the frame range for each once I use this script to batch render them.

    EDIT::

    After some use I realized that the script only renders out one nuke script, then the second one just makes the script re-render the previous one with the same file name convention and everything, replacing older frames. What am I doing wrong here?
    Last edited by Dotcommer; June 19th, 2009 at 09:15 PM.
    -=|Bryan | [Portfolio] | Motion Graphics artist at Electronic Arts

    Reply With Quote  

  11. #11  
    Join Date
    Dec 2009
    Posts
    3
    When I try to drag and drop my nuke file, all works well except that the apple script does not reconize the nuke file.
    I edited the apple script for Nuke 5.2v2
    Reply With Quote  

  12. #12 Nuke 5.2v3 Auto script 
    Join Date
    Mar 2006
    Location
    London, UK
    Posts
    469
    Hi all, a little update to Franz script:

    Now running Nuke 5.2v3 now and it automatically put in whatever frame range the script got.
    You can still change the range to render by replacing the "first_frame, last_frame" text with whatever frame range you need.
    I just find it faster to do this then alwasy having to know by heart the range of what you are render. After 10 comps it gets comfusing, lol.

    Hope it work for you guys.

    Hugo
    Attached Files
    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  

  13. #13  
    Join Date
    Dec 2009
    Location
    Russia, Moscow
    Posts
    8
    hello) can anybody tell me about batch render nuke scripts on mac?)
    Reply With Quote  

  14. #14 QMaster 
    Join Date
    Mar 2006
    Location
    London, UK
    Posts
    469
    Use Apple QMAster. It works just like the terminal, but you can make a list of jobs.
    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  

  15. #15  
    Join Date
    Dec 2009
    Location
    Russia, Moscow
    Posts
    8
    ok, i'll try) thank you)
    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. Nuke vs Shake
    By vivekm in forum NUKE from The Foundry
    Replies: 32
    Last Post: March 19th, 2008, 10:02 AM
  2. NUKE 4.6 released
    By fr3drik in forum Industry News
    Replies: 7
    Last Post: April 2nd, 2007, 04:38 PM
  3. Replies: 0
    Last Post: January 24th, 2007, 03:58 AM
  4. Replies: 0
    Last Post: July 30th, 2006, 01:29 PM
  5. New Version of NUKE to Preview at SIGGRAPH
    By CGnews in forum Industry News
    Replies: 0
    Last Post: July 13th, 2006, 04:35 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