csp Posted May 22, 2014 Share Posted May 22, 2014 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 Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted May 22, 2014 Share Posted May 22, 2014 ... Any ideas? cheers Any examples? Quote Link to comment Share on other sites More sharing options...
csp Posted May 23, 2014 Author Share Posted May 23, 2014 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.