Supercharged H20 extension (TouchDesigner Style)

   57023   148   7
User Avatar
Member
5048 posts
Joined: Feb. 2012
Offline
raumafu
Hi,
will these updates come to your patreon as well?

Yes it will be available in a new post soon.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
User Avatar
Member
12 posts
Joined: June 2020
Offline
Hi, thank you for the quick update

I have some issue when trying to create nodes by using the multi-selection menu (for example in SOP, press H then C to create groupcombine node), the menu would show up but cant seem to create the node. Down below are error message from houdini console:



Traceback (most recent call last):

File "C:\Users/xxxx/Documents/houdini21.0/animatrix/hotkey system/python3.11libs\utility_hotkey_system.py", line 125, in keyPressEvent

if shortcut == (event.key() | event.modifiers()):

~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~

File "C:\PROGRA~2/Steam/STEAMA~1/common/HOUDIN~1/python311/lib/site-packages-forced\PySide6\support\deprecated.py", line 54, in func_or

return QtCore.QKeyCombination(self, other)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

TypeError: 'PySide6.QtCore.QKeyCombination.__init__' called with wrong argument types:

PySide6.QtCore.QKeyCombination.__init__(KeyboardModifier, int)

Supported signatures:

PySide6.QtCore.QKeyCombination.__init__(Union)

PySide6.QtCore.QKeyCombination.__init__(PySide6.QtCore.Qt.Key = Instance(Qt.Key_unknown))

PySide6.QtCore.QKeyCombination.__init__(PySide6.QtCore.Qt.KeyboardModifier, PySide6.QtCore.Qt.Key = Instance(Qt.Key_unknown))

PySide6.QtCore.QKeyCombination.__init__(PySide6.QtCore.Qt.Modifier, PySide6.QtCore.Qt.Key)
User Avatar
Member
5048 posts
Joined: Feb. 2012
Offline
Cedric4826
Hi, thank you for the quick update

I have some issue when trying to create nodes by using the multi-selection menu (for example in SOP, press H then C to create groupcombine node), the menu would show up but cant seem to create the node. Down below are error message from houdini console:



Traceback (most recent call last):

File "C:\Users/xxxx/Documents/houdini21.0/animatrix/hotkey system/python3.11libs\utility_hotkey_system.py", line 125, in keyPressEvent

if shortcut == (event.key() | event.modifiers()):

~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~

File "C:\PROGRA~2/Steam/STEAMA~1/common/HOUDIN~1/python311/lib/site-packages-forced\PySide6\support\deprecated.py", line 54, in func_or

return QtCore.QKeyCombination(self, other)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

TypeError: 'PySide6.QtCore.QKeyCombination.__init__' called with wrong argument types:

PySide6.QtCore.QKeyCombination.__init__(KeyboardModifier, int)

Supported signatures:

PySide6.QtCore.QKeyCombination.__init__(Union)

PySide6.QtCore.QKeyCombination.__init__(PySide6.QtCore.Qt.Key = Instance(Qt.Key_unknown))

PySide6.QtCore.QKeyCombination.__init__(PySide6.QtCore.Qt.KeyboardModifier, PySide6.QtCore.Qt.Key = Instance(Qt.Key_unknown))

PySide6.QtCore.QKeyCombination.__init__(PySide6.QtCore.Qt.Modifier, PySide6.QtCore.Qt.Key)

Hi,

I fixed that bug now.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
User Avatar
Member
34 posts
Joined: May 2020
Offline
Great update! Everything works except fn:displaySelectNearestNode(uievent, context) option. I have bounded to my 1 key and remove every other hotkeys in the hotkey editor but it does not seem to work. The other options are working like 2 3 4 but not display one. How can i fix it?
User Avatar
Member
5048 posts
Joined: Feb. 2012
Offline
raumafu
Great update! Everything works except fn:displaySelectNearestNode(uievent, context) option. I have bounded to my 1 key and remove every other hotkeys in the hotkey editor but it does not seem to work. The other options are working like 2 3 4 but not display one. How can i fix it?

You can use the selectDisplayNearestNodeInEditorEnhanced function in utility_generic.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
User Avatar
Member
789 posts
Joined: Feb. 2017
Online
@animatrix
In the utility_ui I use "toggle Headlight normal light" in 20.5 alot.
Do you know how it has to be changed to work with H21 Work Lights?

def toggleHeadlightNormalLighting():
    with hou.undos.disabler():
        viewport = getPaneTabUnderCursorOrFirstInstance(hou.paneTabType.SceneViewer)
        settings = viewport.curViewport().settings()
        lighting = hou.viewportLighting.Normal if settings.lighting() == hou.viewportLighting.Headlight else hou.viewportLighting.Headlight
        settings.setLighting(lighting)

Cheers
CYTE
User Avatar
Member
5048 posts
Joined: Feb. 2012
Offline
Hi,

This should work:

def toggleWorkLight():
    with hou.undos.disabler():
        viewport=getPaneTabUnderCursorOrFirstInstance(hou.paneTabType.SceneViewer)
        settings=viewport.curViewport().settings()
        settings.setLighting(hou.viewportLighting.Headlight)
        new_type=hou.viewportWorkLight.PhysicalSky if settings.workLightType()==hou.viewportWorkLight.Headlight else hou.viewportWorkLight.Headlight
        settings.setWorkLightType(new_type)

The other types are listed here:

hou.viewportWorkLight.Headlight:
Single over-the-shoulder distant light.

hou.viewportWorkLight.Domelight:
Environment light with optional texture map.

hou.viewportWorkLight.PhysicalSky:
Outdoor lighting with a distant and environment map based on the sun position and atmospheric conditions.

hou.viewportWorkLight.ThreePoint:
Three distant lights set up in a classic three point lighting arrangement.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
User Avatar
Member
789 posts
Joined: Feb. 2017
Online
Thanks, man,

You are the best!
I was hoping to toggle between these two.
WorkLight or Scene Light.
Is that possible, too?

Attachments:
Screenshot 2025-10-13 204121.jpg (2.2 KB)

User Avatar
Member
5048 posts
Joined: Feb. 2012
Offline
CYTE
Thanks, man,

You are the best!
I was hoping to toggle between these two.
WorkLight or Scene Light.
Is that possible, too?

I think that's not possible because there is always some work light mode available. There is no off option. Even if the toolbar shows off, the work light still reports the current one used.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
  • Quick Links