Primitive selection on HDA
781
3
1
March 10, 2025 7:43 a.m.
Hi!
I am creating an HDA with 0 input, it reads/works for another geometry from a merge_object node inside of this HDA.
and I would like to select some primitives with a string parameter with an "Action Button":
import soputils
kwargs [ 'geometrytype' ] = hou . geometryType . Primitives
kwargs [ 'inputindex' ] = 0
soputils . selectGroupParm ( kwargs )
but it fails because it is asking for an input.
there is another way to select the primitives? for a geometry that does not come from an input.
raincole
Member
692 posts
Joined: Aug. 2019
Offline
March 10, 2025 8:47 a.m.
kwargs['noderefparm'] = "the path to your merge object's parameter'
Edited by raincole - March 10, 2025 08:47:52
March 10, 2025 9:11 a.m.
Hi @raincole.. thanks
I tried this:
import soputils
kwargs [ 'noderefparm' ] = kwargs [ 'node' ] . node ( "ObjectMerge" ) . parm ( 'objpath1' )
kwargs [ 'geometrytype' ] = hou . geometryType . Primitives
kwargs [ 'inputindex' ] = 0
soputils . selectGroupParm ( kwargs )
node("ObjectMerge")is my ObjectMerge Node.
but it does not work
Edited by Gerardo Castellanos - March 10, 2025 09:11:41
March 10, 2025 9:20 a.m.
Oh... sorry, my mistake.. it works.. THANKS YOU A LOT!