I'm always dubious of using python nodes for some reason. I prefer doing as much as I can in HDAs or elsewhere.
However, that said, the logic is the same everywhere and functions are found on this page
https://www.sidefx.com/docs/houdini/hom/hou/Geometry.html [
www.sidefx.com]
The python node sets up the geo variable to begin with. It's fairly easy to access detail attributes because they're just attached to the geometry itself Something like this would work:
node = hou.pwd()
geo = node.geometry()
value = geo.stringAttribValue("nameOfAttribute")
It's a bit trickier with other attribute types though. The python node doesn't iterate over them by default, so you have to set that up yourself. So if you wanted to access a point attribute for example, you could do something like this instead:
pts = geo.iterPoints()
for pt in pts:
val = pt.stringAttribValue("nameOfAttribute")
# To set an attribute
pt.setAttribValue("nameOfAttribute", "intendedValue")
If you CAN do any of these processes through VEX instead I would encourage it, because Python is much slower by default.
Houdini TD, I focus on tools for procedural asset creation.
www.jaworenko.design