Supercharged H20 extension (TouchDesigner Style)

   56879   148   7
User Avatar
Member
5048 posts
Joined: 2月 2012
オフライン
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: 6月 2020
オフライン
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: 2月 2012
オフライン
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: 5月 2020
オフライン
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: 2月 2012
オフライン
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
788 posts
Joined: 2月 2017
オフライン
@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: 2月 2012
オフライン
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
788 posts
Joined: 2月 2017
オフライン
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: 2月 2012
オフライン
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