Locking and Unlocking Nodes with Python

   531   2   2
User Avatar
Member
129 posts
Joined: 9月 2021
Offline
You know how nodes can be locked? (as in frozen at the current state and saved with the Houdini file)




Is there a way to automate this unlocking and locking with Python? Looking at the documentation [www.sidefx.com], everything about locking seems to have to do with HDAs and allowing editing of contents, etc.

Thanks!
Anson

Attachments:
2023-10-26_16-10.png (37.6 KB)

User Avatar
Member
900 posts
Joined: 2月 2016
Offline
I think you could use hou.Node.setGenericFlag(flag, value) method
User Avatar
Member
8554 posts
Joined: 7月 2007
Offline
or also
hou.SopNode.setHardLocked(1)
https://www.sidefx.com/docs/houdini/hom/hou/SopNode.html [www.sidefx.com]
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links