Appending to operator list parameter

   1191   0   0
User Avatar
Member
8 posts
Joined: Aug. 2014
Offline
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.
Edited by Tyler Strasser2 - Aug. 27, 2022 13:45:50

Attachments:
operator list issue2.jpg (90.0 KB)

  • Quick Links