resonanz Posted June 1, 2012 Share Posted June 1, 2012 I have a button and would like to call a function in a Python-Sop. It is not a problem as long as the function is stored in a Python Module under the Scripts tab but how can I call the function if it´s under the Code tab? hou.phm().doSomething() does not work in that case. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
graham Posted June 1, 2012 Share Posted June 1, 2012 You can't call functions from the Code tab. That tab is specifically designed for the cooking of the node. If you need to call code that is in there from somewhere else, move it to the PythonModule. Quote Link to comment Share on other sites More sharing options...
resonanz Posted June 2, 2012 Author Share Posted June 2, 2012 Thanks Graham! 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.