Integrated Rhino-Deadline submission

Saw a few others post their scripts (web interface for pulse in particular), so I figure I’d share this. Attached is basically a toolbar button for quick submission to Deadline from within Rhino. Apologies for being specific to our setup atm, but all the variables you might want to change are listed at the top of the file.

Going through the code:
It assumes you have the Rhino scene you want to submit already open

Prompts for output path and filename

Prompts for a job name

Grabs the user account name from Windows

Submits to deadlinecommand

There are a couple of things we assume as constant–always 1-1 frames, always rhino pool, no group, always V-Ray for Rhino renderer, and always submits to the same repository. These can be changed be adjusting the values at the top of the file (you’ll definitely want to change the repository location, for one thing)

I’ve uploaded this as a .txt, since .tb and .rvb files are not allowed, but its still pretty easy to install. The easiest way to include a script in Rhino for immediate access is to make a button for it:

Make a new toolbar or make a new button into an existing toolbar.
Edit the button by SHIFT-rightclicking on the button.
Open the .txt file copy the contents to the area of left mouse button command
Almost finished!
All you need to do now is tell Rhino to run this script. This means you need to place the following text before the code you just pasted:
!-_Runscript (

and at the end of the script text, close it with:

)
Save the changes by clicking ok, and make sure to save the toolbar (tools–> toolbar layout --> file --> save)

And viola, it should hopefully work :wink:

Some disclaimers/notes:
I’m a C++/Java guy, so apologies if it looks like ugly VBscript >.<
The ExitCode.txt and JobInfo.txt files it mentions should be created the first time its run, and then overwritten every time after, so don’t worry about making those
For other options not included, I must say that the Deadline documentation for adding this is great :slight_smile:
-Hope its of use
RhinoDeadlineScriptv1.4.txt (4.11 KB)

Thanks for this! We’ll see if we can include an integrated submission script for Rhino in an upcoming release, and we’ll use this as a base.

Cheers,

  • Ryan