OnCreated scripts

OnCreated Script to set name, color, shape of node:

cachename = hou.ui.readInput("Enter cache name")
node = kwargs["node"]
node.setName(cachename[1])
node.setUserData('nodeshape', "tilted")
node.setColor(hou.Color(1,0,0))


Revision #3
Created 10 February 2021 09:10:40 by Anthony
Updated 30 January 2024 11:37:22 by Anthony