Groupselection HDA

   1510   1   2
User Avatar
Member
1 posts
Joined: Sept. 2018
Offline
Hey there!

Im developing some HDA´s for my Bachelor Project!

My actual Problem is about the Action Button for a Prim Group Selection.

Right now im running the standart Action Button script below:

import soputils

kwargs = (hou.geometryType.Primitives,)
kwargs = 0
soputils.selectGroupParm(kwargs)


But, of course it does refer to the Node above the Subnet.

My question is:

How can i refer to the Node above the Selction Node inside the Subnet ?

Is it a Python Callback Script or is it something below the Action Button ?



Thank you very much
User Avatar
Member
260 posts
Joined: Nov. 2014
Offline
this is help for the soputil node
I was able to successfully point it to nodes inside my HDA instead of the top node

“”" Performs a selection that is used to populate a SOP Group parameter field.
This function takes a number of kwargs options to control the exact form
of the returned selection, how the parameter should be set, the allowed
selection types, etc. If kwargs is present, then that alone
specifies whether to do an ordered selection. If kwargs is
not present, then we try to determine orderedness from any selector bound
to the node and parameter in question, and, failing that, default to an
unordered selection.
“”"
Edited by martinkindl83 - Nov. 3, 2020 18:58:06
  • Quick Links