Tyler Strasser

Tyler Strasser2

About Me

Expertise
Not Specified
Location
Not Specified
Website

Connect

Recent Forum Posts

hou.InteruptableOperation outside of a with statement? June 6, 2022, 2:11 p.m.

Thanks for posting this. This is very helpful right now. I'm trying to do InterruptableOperation in a thread to cancel multiple submission jobs to the farm.

Python's multiprocessing June 2, 2022, 4:56 p.m.

I'm trying to do multi-processing to submit to deadline. My error when running your code says "Load failed for C:/Windows/System32/6344"
And it launched a new houdini session said ('Is Process alive: ', True)
after I closed out of the new houdini.
From reading the docs, I think you need to execute it in __main__ not in session.
and say if__name__ is '__main__':
# Then make the process

Where __main__ has to be executed in the python shell unfortunately. If you figure out how to put hda code for example into __main__ that would be real helpful so I'll know how to do process checking before submitting to deadline

Updating / Recooking the UI while running a python loop May 27, 2022, 7:54 p.m.

Hey, I was struggling with somewhat the same thing today. Needed to wait for the pane to maximize before beginning the flipbooking process in python.
If you need to wait until your ui updates you can say
 hou.ui.waitUntil(lambda: sceneviewer.pane().isMaximized()==True)