Houdini Python: HDA Spawn Random String after Name

Hellow. 

 They are several nodes that need to cache geometry to the disk.If nodes have the same name they gonna override that cached geometry Which is really bad if you have a lot of subnets.  That's why you gonna put an extra string after the node name.


You can just put these lines on HDA  of python "onCreated": 



import uuid id = uuid.uuid4().hex[:6].upper() s_integer = str(id) kwargs["node"].setName("node_name_"+s_integer)




Whenever a node is called and spawns there would be an extra string after the node name.