How to get a list of attributes on a point, prim, etc?

   3002   2   0
User Avatar
Member
1 posts
Joined: April 2020
Offline
Hi, I'm a fairly new user, trying to find a way to iterate over the attributes on a given point or prim in python.

Or at the least, determine if a given attribute exists. Any advice?
User Avatar
Member
900 posts
Joined: Feb. 2016
Offline
Attributes are strictly linked to the geometry, so you want to search through the hou.Geometry() class
https://www.sidefx.com/docs/houdini/hom/hou/Geometry.html [www.sidefx.com]

You'll find both methods for retrieving the list of attributes and for checking the existence of a specific attrib;
  • Quick Links