Jump to content

Python Module


resonanz

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!

Link to comment
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.

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