Node name based on attribute

   996   2   1
User Avatar
Member
76 posts
Joined: Aug. 2018
Offline
Hi, can i use a attribute to rename geo/subnet node? Like if i have a attribute ‘tree_number’ and its value is 8, i would like to use it to name subnet node ‘tree_08’ if i change the attribute to 17, the name would change ‘tree_17’.
User Avatar
Member
900 posts
Joined: Feb. 2016
Offline
hou.Node.setName() is the python method that could help you

have a look at the reference file

Attachments:
change_nodename.hiplc (84.4 KB)

User Avatar
Member
76 posts
Joined: Aug. 2018
Offline
Andr
hou.Node.setName() is the python method that could help you

have a look at the reference file
Exactly what I was looking for! Thank you so much!
  • Quick Links