Python Script : Get attribute value

   20742   2   2
User Avatar
Member
241 posts
Joined: Oct. 2015
Offline
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)

User Avatar
Member
471 posts
Joined: Nov. 2013
Offline
Hello julca.
simply, add Python node and use geo.attribValue(“BBoxCenterCubic”) command.
see following HIP file.
cheers.

Attachments:
accessToAttributeValue_01.hiplc (63.1 KB)

User Avatar
Member
241 posts
Joined: Oct. 2015
Offline
Really easy in fact ops:
Thank you !
  • Quick Links