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:
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.
Oh ok I see where the confusion is. I was testing using another floating network editor. So it's not that it doesn't work on the overlay network editor, but that it doesn't work on floating panels, which the overlay network editor also is. So this has to be added by SideFX to work. That would be a good RFE.
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:
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.
Oh ok I see where the confusion is. I was testing using another floating network editor. So it's not that it doesn't work on the overlay network editor, but that it doesn't work on floating panels, which the overlay network editor also is. So this has to be added by SideFX to work. That would be a good RFE.
Okay, I understand the issue. Thank you for your explanation. Hopefully, SideFX will update support soon.
In the upcoming version, you'll be able to undo and redo network editor view changes independently for each network editor. This new history is completely separate from the scene change undo/redo history, ensuring it won't interfere with or bloat your regular undo/redo actions:
Hi, I am trying to use Append to Parameter Editor and get this error, maybe I am using it wrong? I guess it has something to do with the fact that I have another addon which has it's own 123.py file, and it seems it is found first, and disregards any subsequent one. Can I merge your 123.py into the one that is being loaded?
bskochii Hi, I am trying to use Append to Parameter Editor and get this error, maybe I am using it wrong? I guess it has something to do with the fact that I have another addon which has it's own 123.py file, and it seems it is found first, and disregards any subsequent one. Can I merge your 123.py into the one that is being loaded?
Image Not Found
Hi,
I checked there was a bug there in the shelf code, so you can update it to this until I push a new update:
Just right click on the tool and choose Edit Tool.
As for multiple 123 files, if you are sure one of them is not being called at startup, you can definitely merge them. This issue above is not related to that though.
I have a question. I often use the little button to flip two sides of a splitted pane. Do you think it would be possible to create a script action for that?
I have a question. I often use the little button to flip two sides of a splitted pane. Do you think it would be possible to create a script action for that?
Thanks @animatrix, I put this here in case anybody wants the same command as a hotkey. create a shelf tool with this python script:
importhou# Get the current Houdini desktopdesktop=hou.ui.curDesktop()# Get the currently selected panepane=desktop.paneUnderCursor()# Check if the pane supports the splitSwap() functionifpaneandhasattr(pane,'splitSwap'):pane.splitSwap()else:hou.ui.displayMessage("This pane does not support splitSwap(). Try hovering over a different pane.")
Wanted to try out the theme with circle nodes, but I don't seem to understand where to paste the files, can you give me a hint It tried on a clean Houdini as well. Pasted files I got from the Gumroad. Everything works, but not the theme, I even tried to paste files from naiad folder directly into houdini20.5, but still no effect
Wanted to try out the theme with circle nodes, but I don't seem to understand where to paste the files, can you give me a hint It tried on a clean Houdini as well. Pasted files I got from the Gumroad. Everything works, but not the theme, I even tried to paste files from naiad folder directly into houdini20.5, but still no effect
Hi,
Did you put the OPcustomize file and nodethemes.json directly under the houdini20.5 folder? With the supercharged extension, it's using packages to install each module separately so the files are not placed under under the houdini20.5 folder but it's the same idea.
Do you have the custom shapes option off in Houdini? Because the extension is basically overriding the default node shape visually but doesn't alter any node shapes when others look at the same scene files so it's completely non-destructive.
So you're saying that I don't need to do anything for it to work,just copy the contents of Supercharged extension from the archive, and make sure custom node shapes are on? Correct? If so it doesn't seem to work, but hey, I can live without it, so don't bother, it's just my OCD, I want to make sure everything's working even though I don't actually need it haha, all good man