Jump to content

PythonModule createModuleFromSection()


Jim M

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

 

 

test_PythonModule.hda

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