Tyler Strasser

Tyler Strasser2

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Appending to operator list parameter Aug. 27, 2022, 1:40 p.m.

Hi,

Background: When you already make a selection set in the operator list parameter you cannot add to the node list already set in the parameter by clicking on the button and shift + selecting another node... it completely replaces your already existing node list in the "Pattern" field in the "Operator Bundles window".
hou.ui.selectNode()
doesn't allow for selecting multiple nodes in the network editor as the Operator list parameter allows you to but rather any additional node you want to select must be done in the tree which I won't be having either myself or the users of the tool I'm making be subject to that.

Question: I am trying to find a way to have it append if you try to open the Operator Bundles window again or by a python way. Does anyone have any ideas?

Attempts: I have tried using
hou.ui.selectNode(); hou.ui.selectFromTree() #with all nodes possible as my possible choices, but this isn't the same thing. 
I have tried finding the pane tab with python but this operator bundles window doesn't seem to be a pane at all but a window perhaps..
I've tried having a spare "Operator list" parameter that I will use with a callback to add or subtract from the main operator list parameter in the hda and pressing the button on that parameter with
parm.pressButton()
but it doesn't open the window. Makes sense because it is a
hou.StringParmTemplate
and not an actual button to press.

In the image you can see where I am attempting to shift + select the "after" mantra nodes after a selection has already been made in the null parameter, but it doesn't append.

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