basic python question (python newbie)

   753   1   1
User Avatar
Member
245 posts
Joined: Sept. 2008
Offline
greetings guys and gals,

i can't seem to find the right documentation for the hou.SopNode.setHardLocked(on|off) syntax.

I want to call a node *by name* and set it's lock flag on or off using CHOPs.

in hscript this is easy enough


opset -l hard /obj/geo1/add1

for example.

(why does python seem so difficult and why after umpteen iterations of houdini am i only now beginning to turn the corner to try to learn python?)

thanks for any assistance.

(i am thinking i need to use hou.SopNode.name() somewhere but i really can't find the right syntax.)
User Avatar
Member
245 posts
Joined: Sept. 2008
Offline
i should add...

my goal is to use the previously mentioned python expression for locking the flags of nodes in an attribute wrangle sop.

thanks
  • Quick Links