Kyle Yoneda
Kyle Yoneda
About Me
EXPERTISE
CG Supervisor
INDUSTRY
Film/TV
Connect
LOCATION
Canada
WEBSITE
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Temporary USD files March 22, 2023, 8:21 p.m.
Hey Rob,
Yes happy to share it. Although I've only gotten this working on the usdrender_rop, I still need to sort out how to implement in the top context as well as in a ropnet using a fetch.
Kyle
Yes happy to share it. Although I've only gotten this working on the usdrender_rop, I still need to sort out how to implement in the top context as well as in a ropnet using a fetch.
Kyle
Temporary USD files March 10, 2023, 4:07 p.m.
Hey Rob! Long time now see!
This issue has been driving me nuts. Especially when doing crazy pyro clustering whith lots of vdb combining/merging. It was filling up temp drives on our farm and crashing systems when a student got over zealous. I made a python script to work around the issue if there's any interest in it.
1. select the usdrender_rop
2. in the Husk Post-Render field: $HOUDINI_TEMP_DIR/usd_renders/$RENDERID/cleanup.py - (this script will be generated by the next script)
3. In the Post-Frame Script use this python:
I can't wait to implement this in the studio. It has been driving me crazy!
Cheers!
Kyle
This issue has been driving me nuts. Especially when doing crazy pyro clustering whith lots of vdb combining/merging. It was filling up temp drives on our farm and crashing systems when a student got over zealous. I made a python script to work around the issue if there's any interest in it.
1. select the usdrender_rop
2. in the Husk Post-Render field: $HOUDINI_TEMP_DIR/usd_renders/$RENDERID/cleanup.py - (this script will be generated by the next script)
3. In the Post-Frame Script use this python:
import hou import os # Get the currently selected USD_RENDER_ROP selected_node = hou.selectedNodes()[0] # Get the directory path from the selected USD_RENDER_ROP's 'Save To Directory' parameter dir_path = selected_node.parm('savetodirectory_directory').eval() # Create the cleanup.py script in the directory path cleanup_file_path = os.path.join(dir_path, 'cleanup.py') cleanup_script = 'import os\nfor file in os.listdir("{}"):\n\tif file != "cleanup.py":\n\t\tpath = os.path.join("{}", file)\n\t\tos.remove(path)\n'.format(dir_path, dir_path) with open(cleanup_file_path, 'w') as cleanup_file: cleanup_file.write(cleanup_script) # Save the directory path to a text file in the same directory path_file_path = os.path.join(dir_path, 'path.txt') with open(path_file_path, 'w') as path_file: path_file.write(dir_path)
I can't wait to implement this in the studio. It has been driving me crazy!
Cheers!
Kyle