Search the Community
Showing results for tags 'hbatch'.
Found 4 results
I'm using a small python script to open a hip file, "do something" , save, and press the button "render" on the proprietary node that sends the job on the farm. Of course this all happens without ui, so my script errors out cause somewhere there is some python code that uses hou.ui.setStatusMessage, and I guess hbatch doesn't load the ui module. This is the error I get: hou.ui.setStatusMessage( "Creating the render data", hou.severityType.Message) AttributeError: 'module' object has no attribute 'ui' This the script: import hou hou.hipFile.load("myfile.hip",True) <change parameters and do interesting stuff> print ("submitting job on the farm\n") farmrender=hou.node("/out/farm_render") farmrender.parm("FarmRender").pressButton() print ("done\n") hou.exit() and this is the error message ... hou.ui.setStatusMessage( "Creating the render data", hou.severityType.Message) AttributeError: 'module' object has no attribute 'ui' I already tried to execute the actual code contained in the button, but I get the same exact error. Is there any way to suppress any call to hou.ui when a script is executed via hbatch ?
Hi, I'm trying to do some automation using hbatch, and I've come across a bit of an issue when trying to override the output files when calling the 'render' command. When I call: render -f 1 10 -a -o /path/to/myNewRenders.$F4.exr mantra1 [/CODE] And look in the created .ifd files, each .ifd file is set to render to /path/to/myNewRenders.0001.exr, because, I'm assuming, the variable substitution happens when calling the 'render' command, when the frame context is 1. Alternatively, I've tried: [CODE] render -f 1 10 -a -o /path/to/myNewRenders.\$F4.exr mantra1 [/CODE] Which writes "/path/to/myNewRenders.$F4.exr" into the .ifd files, which would sound right to me, but when I pass this .ifd file into mantra to have it rendered, it, once again, evaluates the frame as 1, giving me a resulting file of /path/to/myNewRenders.0001.exr Any idea how I can do this without calling something like: [CODE] render -f 1 1 -a -o /path/to/myNewRenders.0001.exr mantra1 render -f 2 2 -a -o /path/to/myNewRenders.0002.exr mantra1 render -f 3 3 -a -o /path/to/myNewRenders.0003.exr mantra1 render -f 4 4 -a -o /path/to/myNewRenders.0004.exr mantra1 render -f 5 5 -a -o /path/to/myNewRenders.0005.exr mantra1 render -f 6 6 -a -o /path/to/myNewRenders.0006.exr mantra1 render -f 7 7 -a -o /path/to/myNewRenders.0007.exr mantra1 render -f 8 8 -a -o /path/to/myNewRenders.0008.exr mantra1 render -f 9 9 -a -o /path/to/myNewRenders.0009.exr mantra1 render -f 10 10 -a -o /path/to/myNewRenders.0010.exr mantra1 [/CODE] Thanks
Hey Y'all, When i render a rop in Linux in the terminal, i can't get any progress information. I've tried -v 2 and 4 with no avail. This is what i do. 1) Navigate to my hip file folder 2) hbatch file.hip (to establish the env) 3) Navigate to my rop 4) render -v 2 rop_geometry1 Although this will render the rop and i know of its completion as the my current directory position becomes available again. I would like to see progress info (verbosity or whatever its called) without having to go to the firectory to see which files have currently been generated. Best Saqib P.S using 12.5