Jump to content

KeyError('node') using kwargs in python Module


animknight

Recommended Posts

Python modules are tied to a node type, not an instance of a node. Depending on what you are trying to do, using hou.pwd() may work, though that is not guaranteed to return an instance of the node type. Usually you want to declare functions inside your Python Module and pass any nodes you want those functions to act on as parameters.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...