Jump to content

Groupselection inside HDA

Recommended Posts

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['geometrytype'] = (hou.geometryType.Primitives,)
kwargs['inputindex'] = 0

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


Share this post

Link to post
Share on other sites

    """ 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['ordered'] is present, then that alone
        specifies whether to do an ordered selection.  If kwargs['ordered'] 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
solution found

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now