- Added the ability to pass component selections into Houdini string parameters.
Specifying the new “sidefx::maya_component_selection_type” tag on a string parm will now instruct Maya that it should accept component selections of the given type. The format that Maya will pass back to Houdini is the same as what is expected by the Group SOP.
One usage of this is to pass a component selection into Houdini as a group. To do this, you would promote the “Group Base” parm from the group node to the HDA. Then in the Edit Operator Type Properties window, add the tag “sidefx::maya_component_selection_type”. (In Houdini 18+ you can choose it from the “Built-in Tags” button). The tag's value should be either “vertex”, “face”, “edge” or “uv”. Make sure that your group is operating on the same type.
If you are just promoting the “Base Group” parm, you will need to edit the “script_action” tag as well. In the Parameter Description, choose the Action Button panel, and enter:import soputils kwargs['inputindex'] = 0 kwargs['geometrytype'] = hou.geometryType.Points soputils.selectGroupParm(kwargs)
Replacing hou.geometryType.Points with either Points, Primitives or Edges depending on your selection type.
I have attached an example HDA that will set the vertex color of the selected vertices, as well as deform them with a mountain SOP.