Deadline, Houdini, Python, Scripting

Houdini Snippet Vol.15 – ns_Startup


ns_Startup v0.1.25

Release v0.1.39

Release v0.1.41


This python script was created to starting Houdini easily with the right workgroups/renderers etc. without changing always the local env file.

Done with Python 2.7 & PyQt4. Including a WOL functionality for my FreeNAS fileserver and a preset/job system.
The preset system can be used globally, to make them accessible to other clients/workstations.
I implemented a preset “check” to make sure the workgroups/renderers are physically existing.
If not, you will get a warning, so you can reinstall the missing apps.

Also onboard, a little chat client.

I also modified my Thinkbox Deadline submission scripts to handle variable environments & the proper Houdini version for my render machines.

Right now i can start Arnold, Redshift, V-Ray and Octane from a custom workgroup location. I implement also a checkup function “ns_Version – ENV Check” to my ns_Version plugin for Houdini. The checkup starts with the 456.py script and guaranteed the right environments for my projects. I implemented a update function per robocopy as well, to keep all up-to-date over all clients/workstations.


Git:

https://gitlab.com/e_noni/ns_startup

https://gitlab.com/e_noni/ns_startup_server


To pass the right environments/version through Deadline, i write out a .xml-file which is uniqe named against the render-.hip (Redshift-Proxy generation as well). Therefore i edit and add some lines in different python files in the Deadline Repository.

<YOUR_DeadlineRepository>\submission\Houdini\Main\SubmitHoudiniToDeadline.py

<YOUR_DeadlineRepository>\submission\Houdini\Main\SubmitHoudiniToDeadlineFunctions.py

When hython.exe starts, the generated XML files will provide all necessary enviroment/version variables for the clients to render.

Common path:
<YOUR_DeadlineRepository>\plugins\Houdini\Houdini.py

In the Deadline “Configure Plugins…” Editor, i replaced the executable pathes with my <ns_version> tags.


 Hint:

Set HOUDINI_NO_ENV_FILE=1 to ignore local user specific configurations.
More variables and descriptions find here: http://www.sidefx.com/docs/houdini/ref/env.html.