Hey people,
I have a HDA im working on that is using python to create nodes within the HDA. It all works fine when unlocked, but i would prefer to keep it locked if at all possible.
The error is simply: "PermissionError: Cannot create a node inside a locked asset"
Cheers for any help
Creating nodes within a locked HDA?
964 1 1- Notus
- Member
- 2 posts
- Joined: Oct. 2017
- Offline
- toadstorm
- Member
- 385 posts
- Joined: April 2017
- Offline
The only way to create nodes inside a locked HDA would be to create a subnet within it and designate it as "editable" in the Type Properties for the HDA. As long as the nodes you create are inside the editable subnet, you won't get permissions errors.
That said, editable nodes can be kind of a pain to work with, especially if you're iterating on them repeatedly. I try to avoid them when I can. An alternate strategy would be to create a "sidecar" subnetwork that's linked to an operator-type parameter on your HDA. You evaluate the parameter to find the linked subnet, then create the nodes you need within that.
That said, editable nodes can be kind of a pain to work with, especially if you're iterating on them repeatedly. I try to avoid them when I can. An alternate strategy would be to create a "sidecar" subnetwork that's linked to an operator-type parameter on your HDA. You evaluate the parameter to find the linked subnet, then create the nodes you need within that.
MOPs (Motion Operators for Houdini): http://www.motionoperators.com [www.motionoperators.com]
-
- Quick Links