label
Set Custom Attributes on All New Nodes with Python
Especially when sharing scripts between artists, keeping tabs on who did what becomes a necessity. Labelling all newly created nodes with the users name, for example, might be a good idea. You can do that with a simple Python script in the script editor (or, if your pipeline is more advanced, put it in the menu.py and have it read out the logged in username or somesuch).
1 2 3 4 5 6 7 |
def userToLabel(): try: nuke.thisNode()['label'].setValue(activeUser) exept NameError: pass nuke.addOnUserCreate(userToLabel) |