Saori Yoshimoto work notes since 2018

Wednesday, February 20, 2019

[Hython] Get upstream last number of node name.

---Get upstream last number of node name. 
node = hou.pwd()
geo = node.geometry()

# Add code to modify contents of geo.
# Use drop down menu to select examples.
   
thenumber = int(node.evalParm('opdigits'))
geo.addAttrib(hou.attribType.Point, "pos_id", thenumber)