I have a question
1.) I am trying to take a pointcloud with a string name attribute, and then I want to create a geo node per point,
2.) extract the path attribute from the point and feed it into a parm on that newly created node
3.) set node name to the name in the attribute as well
3.) in python.
import hou sel = hou.selectedNodes() createWorkArea = hou.node("/obj").createNode("subnet", "workArea") for node in sel: geo = node.geometry() points = geo.iterPoints() for point in geo.points(): Path = geo.findPointAttrib("name") FullPathAttrib = point.attribValue(Path) createGeoNode = createWorkArea.createNode("geo", "geoNode") #############The line below is causing issues. createGeoNode.setName(FullPathAttrib) AttribParm = createGeoNode.parm("some parm here") AttribParm.set(FullPathAttrib)
So I got the parm set portion working, the creation of the nodes is ok. but the setting the names of the nodes not so much.
What am I doing wrong?
EDIT: I also tried this in the problematic node. didn't work either.
createGeoNode.setName('' + str(FullPathAttrib))
Any help would be appreciated.