Jump to content

kwargs in Python SOP


Houly

Recommended Posts

This may be a unnecessary question.
The <kwargs> global dictionary variable does not working in Python Code(python) parameter,
which is the default parameter of the Python SOP.
 
# error code
Error
Python error: Traceback (most recent call last):
File "<stdin>", line 9, in <module>
NameError: name 'kwargs' is not defined
 
 
But interestingly, if I create a additional string parameter and call <kwargs>, it returns a valid value.
(The node is accessible via hou.pwd(), but it's just a curiosity that has nothing to do with actual use.)
Why doesn't <kwargs> work normally in Python Code(python) parameter?
I wonder what the difference is between the two.
Thanks in advance for the reply!
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...