Jump to content
Jim M

PythonModule createModuleFromSection()

Recommended Posts

I am trying to get createModuleFromSection() in the Python module in an HDA I am developing. It can't find the module.
I am less than a python noob thus struggling.
I have a modified nodegraphvellumutils.py (which works perfectly) renamed as PythonSubmod.py and I want to attach it to the HDA then call it from the PythonModule.

May be an image of text

import toolutils
submod = toolutils.createModuleFromSection("submod", kwargs["type"], "PythonSubmod.py")

# Add network editor hooks

if hou.isUIAvailable():
    from submod import setSelectPosContextData, isPassThroughConnection, createEventHandler

def isVellumNode():
    return True




Share this post

Link to post
Share on other sites

Solved by Mel Massadian on Houdini Artists FB group. 
The key being syntax for function calls.


May be an image of text

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