Jump to content

python error when no error


csp

Recommended Posts

Its not the first time I came across a very weird thing with python inside HDA. I have a python script tested and working perfectly and then loading a new instance of the node and while playing with few parameters, I am getting errors. Edit parameters and type something inside the code, anything doesn't matter can be a space and delete it and Apply. Nothing has change in my script, not even a space. Playing with the same parameters and no errors.

 

Driving me crazy. Any ideas?

 

cheers

Link to comment
Share on other sites

I figured it out. I had to do with a variable initialized outside of the functions which were called from the parameters. This variable sop=hou.pwd() is used by those functions. Apparently Python Module script will run and cached on memory even before the creation of the actual node. Now, I am declaring the variable for each function.

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...