mkps
No worries. Did you get yours working?
node = hou.pwd()
geo = node.geometry()
geo = hou.pwd().geometry()
pts = hou.pwd().point()
numParms = hou.parm('/obj/subnet1/ProceduralEletricPole_Setup/null1/folder2').eval()
for i in range(1, numParms + 1) :
parm = "/obj/subnet1/ProceduralEletricPole_Setup/null1/PlacementParameter" + str(i)
value = hou.parm(parm).eval()
if geo.findPointAttrib("ValuePt") == 0: #Find if Point Attrib ValuePt exists
geo.addAttrib(hou.attribType.Point,"ValuePt", value)
else: #If it does just set the value in the same attrib
pts.setAttribValue("ValuePt", value)
print value
Error im getting: ^^^^^
AttributeError: ‘SopNode’ object has no attribute ‘point’
node = hou.pwd()
geo = node.geometry()
geo = hou.pwd().geometry()
numParms = hou.parm('/obj/subnet1/ProceduralEletricPole_Setup/null1/folder2').eval()
for i in range(1, numParms + 1) :
parm = "/obj/subnet1/ProceduralEletricPole_Setup/null1/PlacementParameter" + str(i)
value = hou.parm(parm).eval()
geo.addAttrib(hou.attribType.Point,"ValuePt"+ str(i), value)
print value
^^^^
With this i dont get any error, but i get more Attribs made. I just want 1 attrib made and for each point give it the value. Srry im bad at python xD