Python Script : Get attribute value
20741
2
2
julca
Member
241 posts
Joined: Oct. 2015
Offline
April 14, 2016 1:16 p.m.
Hello, Is there a way to access to an attribute value on a specific node ? I would like to access to the value of “@BBoxCenterCubic” attribute with a python script. currentNode = hou.node('/obj/sphere_object1/attribwrangle1') print currentNode Thanks.
Attachments:
accessToAttributeValue_01.hiplc (62.9 KB)
accessToAttributeValue_01.jpg (91.2 KB)
Nima
Member
471 posts
Joined: Nov. 2013
Offline
April 14, 2016 2:27 p.m.
Hello julca. simply, add Python node and use geo.attribValue(“BBoxCenterCubic”) command. see following HIP file. cheers.
Attachments:
accessToAttributeValue_01.hiplc (63.1 KB)
julca
Member
241 posts
Joined: Oct. 2015
Offline
April 14, 2016 2:36 p.m.
Really easy in fact
ops:
Thank you !