XaiJu
animatrix
animatrix

patreon


Tip: hou.Geometry.generateAttribMenu()

Instead of writing custom Python code like above to generate the tokens and labels for a parameter menu, listing the geometry’s attributes, you can use the hou.Geometry.generateAttribMenu function that's added and improved very recently:

https://www.sidefx.com/docs/houdini/hom/hou/Geometry.html

It has all kinds of options to filter by attribute size, type and class, as well as the ability to sort them in a case-insensitive manner.

Thanks to Cameron for adding all of these options which will significantly simplify attribute menu generation codes in HDAs.

Make sure to have at least 18.0.492 to be able to use this function.

Tip: hou.Geometry.generateAttribMenu()

More Creators