Locking and Unlocking Nodes with Python

   2264   2   2
User Avatar
Member
134 posts
Joined: Sept. 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
899 posts
Joined: Feb. 2016
Offline
I think you could use hou.Node.setGenericFlag(flag, value) method
User Avatar
Member
9539 posts
Joined: July 2007
Online
or also
hou.SopNode.setHardLocked(1)
https://www.sidefx.com/docs/houdini/hom/hou/SopNode.html [www.sidefx.com]
Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links