Supercharged H20 extension (TouchDesigner Style)

   38560   122   8
User Avatar
Member
10 posts
Joined: 6月 2020
Offline
Hey there, I have a question regarding the hotkey system. Is it possible to call different presets of the same node? I read through your previous replies and found this and I'm able to call custom presets under the preset menue.

W,,"mn:[('op:attribwrangle', 'A'),
('op:attribwrangle(Blast Matched)|BlastMatched', 'B'),


Now my question is how about presets like for example primitive wrangle or foreach loops? Essentially nodes from Tab menu that uses the same name as other nodes. How can I find the correct name, if any to call them?

Thanks for any insight on this!
User Avatar
Member
4728 posts
Joined: 2月 2012
Offline
Hi,

That might be old syntax. Current syntax for presets is as follows:

'Group Highlight', 'op:attribwrangle(Highlight Group)'

'MENU LABEL', 'op:attribwrangle(NAME OF PRESET AS IT APPEARS IN HOUDINI GUI)'
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
10 posts
Joined: 6月 2020
Offline
Thanks for the new syntax. I wonder if it would be possible to call the vanilla houdini node variant like 'for each primitive' or shelf tools? Or is it only things in the Preset tabs? I also tested this syntax with Recipes and it don't seem to work.
User Avatar
Member
4728 posts
Joined: 2月 2012
Offline
Yes only the standard presets are supported now. The other ones and the new recipes are not yet supported.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
10 posts
Joined: 6月 2020
Offline
I see, thanks for the info.
User Avatar
Member
2 posts
Joined: 12月 2019
Online
Hi I just bought this plug-in! I am missing a bit of guidance and documentation to be honest.

Is it possible to toggle (hide) the network overlay other than by holding space? Like just moving around freely in the viewport without the overlay, how would I do this with supercharge enabled?

Thanks!
User Avatar
Member
4728 posts
Joined: 2月 2012
Offline
exitsimulation
Hi I just bought this plug-in! I am missing a bit of guidance and documentation to be honest.

Is it possible to toggle (hide) the network overlay other than by holding space? Like just moving around freely in the viewport without the overlay, how would I do this with supercharge enabled?

Thanks!

Hi,

There are some explanations here:
https://www.sidefx.com/forum/topic/71012/?page=2#post-351930 [www.sidefx.com]

To toggle the overlay network editor, the default hotkey is ` (backtick). Space is configured for the volatile toggle to temporarily hide the overlay network editor.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
2 posts
Joined: 12月 2019
Online
animatrix_
exitsimulation
Hi I just bought this plug-in! I am missing a bit of guidance and documentation to be honest.

Is it possible to toggle (hide) the network overlay other than by holding space? Like just moving around freely in the viewport without the overlay, how would I do this with supercharge enabled?

Thanks!
To toggle the overlay network editor, the default hotkey is ` (backtick). Space is configured for the volatile toggle to temporarily hide the overlay network editor.

Okay, thanks! How would I go about disabling the spawning of resample node in SOP context, since it's interfering with default visibility / render hotkey? Do I need to change it in hotkeys.csv or in the .keymap2?
Edit: removing it from the .csv worked!

Also where would I change the backtick toggle since it's not really compatible with my keyboard layout?

Thanks for your help!
Edited by exitsimulation - 2024年11月1日 12:08:28
User Avatar
Member
4728 posts
Joined: 2月 2012
Offline
exitsimulation
animatrix_
exitsimulation
Hi I just bought this plug-in! I am missing a bit of guidance and documentation to be honest.

Is it possible to toggle (hide) the network overlay other than by holding space? Like just moving around freely in the viewport without the overlay, how would I do this with supercharge enabled?

Thanks!
To toggle the overlay network editor, the default hotkey is ` (backtick). Space is configured for the volatile toggle to temporarily hide the overlay network editor.

Okay, thanks! How would I go about disabling the spawning of resample node in SOP context, since it's interfering with default visibility / render hotkey? Do I need to change it in hotkeys.csv or in the .keymap2?
Edit: removing it from the .csv worked!

Also where would I change the backtick toggle since it's not really compatible with my keyboard layout?

Thanks for your help!

Oh yes all the network editor related hotkeys that come with this extension have to be changed from the hotkeys.csv file.

Backtick is a global hotkey so you can remove or replace it using the hotkey editor:

Attachments:
network.png (338.1 KB)

Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
14 posts
Joined: 10月 2020
Offline
Hello! I've been using this plugin for a while, and I really enjoy the convenience it brings.

Recently, I encountered an issue while developing my own tool. In Houdini's main panel, the Network Editor by default allows creating an externaldragdrop.py file to support external drag-and-drop events. However, it seems that the Supercharged Network Editor doesn't support this functionality.
User Avatar
Member
4728 posts
Joined: 2月 2012
Offline
Xr_Blood
Hello! I've been using this plugin for a while, and I really enjoy the convenience it brings.

Recently, I encountered an issue while developing my own tool. In Houdini's main panel, the Network Editor by default allows creating an externaldragdrop.py file to support external drag-and-drop events. However, it seems that the Supercharged Network Editor doesn't support this functionality.

Thanks for letting me know. I can look into it this week as I am making a number of changes to the whole plugin adding support for shelf tools and recipes.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
14 posts
Joined: 10月 2020
Offline
Here’s a small suggestion from me: Starting from version 20.5, nodegraphhook supports returning a hotkeySymbol to determine whether a specific shortcut key is currently pressed. This can be directly used to block existing shortcuts and replace them with custom ones. So, is it possible to write the current shortcuts for the Supercharged shelf tools into the hook, using JSON or another format, so users can set them themselves? It feels like this approach would be more intuitive and convenient to use.
User Avatar
Member
4728 posts
Joined: 2月 2012
Offline
Xr_Blood
Here’s a small suggestion from me: Starting from version 20.5, nodegraphhook supports returning a hotkeySymbol to determine whether a specific shortcut key is currently pressed. This can be directly used to block existing shortcuts and replace them with custom ones. So, is it possible to write the current shortcuts for the Supercharged shelf tools into the hook, using JSON or another format, so users can set them themselves? It feels like this approach would be more intuitive and convenient to use.

All the hotkeys are defined in the hotkeys.csv and is fully customizable.

It's currently doing exactly what you described based on the key pressed.

Do you have an example where it doesn't work like this?
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
14 posts
Joined: 10月 2020
Offline

Can the shortcut keys for shelftool also be modified in the hotkeys.csv file?

Attachments:
Enter_a_filename.png (8.0 KB)

User Avatar
Member
4728 posts
Joined: 2月 2012
Offline
Xr_Blood
Image Not Found

Can the shortcut keys for shelftool also be modified in the hotkeys.csv file?

Those can be modified using the standard hotkey editor but the upcoming version allows you to do the same using the hotkeys.csv like so:

sh:shelftoolname

which can call any existing shelf tool.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
14 posts
Joined: 10月 2020
Offline
animatrix_
Xr_Blood
Image Not Found

Can the shortcut keys for shelftool also be modified in the hotkeys.csv file?

Those can be modified using the standard hotkey editor but the upcoming version allows you to do the same using the hotkeys.csv like so:

sh:shelftoolname

which can call any existing shelf tool.

Thank you for your response; the functionality is very powerful. I would greatly appreciate it if you could let me know once the issue with the drag-and-drop feature for external events is resolved.
User Avatar
Member
4728 posts
Joined: 2月 2012
Offline
Xr_Blood
animatrix_
Xr_Blood
Image Not Found

Can the shortcut keys for shelftool also be modified in the hotkeys.csv file?

Those can be modified using the standard hotkey editor but the upcoming version allows you to do the same using the hotkeys.csv like so:

sh:shelftoolname

which can call any existing shelf tool.

Thank you for your response; the functionality is very powerful. I would greatly appreciate it if you could let me know once the issue with the drag-and-drop feature for external events is resolved.

I tried drag and drop using the regular network editor but I don't see anything happen. Are you using some custom scripts?

I tried this script but that doesn't seem to do anything when I drag images onto the regular network editor:
https://www.sidefx.com/tutorials/houdini-script-drag-and-drop-file/ [www.sidefx.com]

There isn't anything that should prevent the overlay network editor to bypass drag and drop. I didn't disable it.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
14 posts
Joined: 10月 2020
Offline
tpetrick 特佩特里克
Houdini has a script hook for external drag/drop, but currently only file path data is supported.

To use the script hook add a Python script named externaldragdrop.py to the Houdini script path, for example ~/houdini16.5/scripts/externaldragdrop.py. The script should define a function called dropAccept which takes a single parameter. Every time a drop event occurs on the main Houdini application it will call the dropAccept function with a list of file path(s) that were dropped onto Houdini. The function can return True to block the drop event from continuing on to Houdini, or False to indicate that Houdini should handle the drop event itself.

An example drop handler script that ignores .hip file drops and creates Font SOPs with the contents of the incoming files:

import hou
import os

def dropAccept(file_list):
    if len(file_list) == 1 and os.path.splitext(file_list[0])[1] == ".hip":
        return False

    for filename in file_list:
        with open(filename) as f:
            contents = f.read()

        obj = hou.node("/obj")
        geo = obj.createNode("geo", "geo1", False, False)
        font = geo.createNode("font")
        font.parm("text").set(contents[:20])

    return True

If the data in the drag/drop event contains arbitary text or binary data instead of file paths the script hook won't be invoked. This is something that would need to be fixed on our end - I can look into fixing that if necessary.

I saw a post on the forum where SideFX staff member tpetrick wrote.
User Avatar
Member
4728 posts
Joined: 2月 2012
Offline
Xr_Blood
tpetrick 特佩特里克
Houdini has a script hook for external drag/drop, but currently only file path data is supported.

To use the script hook add a Python script named externaldragdrop.py to the Houdini script path, for example ~/houdini16.5/scripts/externaldragdrop.py. The script should define a function called dropAccept which takes a single parameter. Every time a drop event occurs on the main Houdini application it will call the dropAccept function with a list of file path(s) that were dropped onto Houdini. The function can return True to block the drop event from continuing on to Houdini, or False to indicate that Houdini should handle the drop event itself.

An example drop handler script that ignores .hip file drops and creates Font SOPs with the contents of the incoming files:

import hou
import os

def dropAccept(file_list):
    if len(file_list) == 1 and os.path.splitext(file_list[0])[1] == ".hip":
        return False

    for filename in file_list:
        with open(filename) as f:
            contents = f.read()

        obj = hou.node("/obj")
        geo = obj.createNode("geo", "geo1", False, False)
        font = geo.createNode("font")
        font.parm("text").set(contents[:20])

    return True

If the data in the drag/drop event contains arbitary text or binary data instead of file paths the script hook won't be invoked. This is something that would need to be fixed on our end - I can look into fixing that if necessary.

I saw a post on the forum where SideFX staff member tpetrick wrote.

Ok using that script, I get the drag and drop but it only seems to work on the 3d viewport. You manage to get it working using the regular network editor? I think this might require more to get it working for any network editor.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
14 posts
Joined: 10月 2020
Offline
animatrix_
Xr_Blood
tpetrick 特佩特里克
Houdini has a script hook for external drag/drop, but currently only file path data is supported.

To use the script hook add a Python script named externaldragdrop.py to the Houdini script path, for example ~/houdini16.5/scripts/externaldragdrop.py. The script should define a function called dropAccept which takes a single parameter. Every time a drop event occurs on the main Houdini application it will call the dropAccept function with a list of file path(s) that were dropped onto Houdini. The function can return True to block the drop event from continuing on to Houdini, or False to indicate that Houdini should handle the drop event itself.

An example drop handler script that ignores .hip file drops and creates Font SOPs with the contents of the incoming files:

import hou
import os

def dropAccept(file_list):
    if len(file_list) == 1 and os.path.splitext(file_list[0])[1] == ".hip":
        return False

    for filename in file_list:
        with open(filename) as f:
            contents = f.read()

        obj = hou.node("/obj")
        geo = obj.createNode("geo", "geo1", False, False)
        font = geo.createNode("font")
        font.parm("text").set(contents[:20])

    return True

If the data in the drag/drop event contains arbitary text or binary data instead of file paths the script hook won't be invoked. This is something that would need to be fixed on our end - I can look into fixing that if necessary.

I saw a post on the forum where SideFX staff member tpetrick wrote.

Ok using that script, I get the drag and drop but it only seems to work on the 3d viewport. You manage to get it working using the regular network editor? I think this might require more to get it working for any network editor.

Yes, the Network Editor in the main panel supports this by default. You can modify it to drag and drop files into the Network Editor and print the file paths.
Now I have to press a shortcut to switch to the Network Editor in the main panel to drag and drop files, then switch back to the Supercharged Network Editor to work.
Edited by Xr_Blood - 2024年11月20日 09:49:09
  • Quick Links