Jump to content
Sign in to follow this  
resonanz

Python Module

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×