[Py] SceneGraphTree Event Handling

   223   2   0
User Avatar
Member
285 posts
Joined: 1月 2013
Offline
Hi,
Are there currently event handlers in SceneGraphTree using the API for this? I need to perform some actions when I drag prims from SceneGraphTree to the node editor.
There is an example in the documentation relating to extending the node editor, but I'm not sure I can use that.
https://www.sidefx.com/docs/houdini/hom/network.html [www.sidefx.com]
User Avatar
スタッフ
4502 posts
Joined: 7月 2005
Offline
Dragging prims from the scene graph tree to the node editor does not require any scripting of or API support for the scene graph tree. This is entirely up to the network editor "drop handling" code to recognize that it was a list of USD prim paths that have been dragged onto it. I think this is done by creating a dragdrop.py file under the python3.11libs/nodegraph directory somewhere in your HOUDINI_PATH, but I can't find any documentation for this capability. Probably best to submit this as a question to support@sidefx.com.
User Avatar
Member
285 posts
Joined: 1月 2013
Offline
Thanks for the reply mtucker!
Yes this is what is needed. I found some examples that I can rely on while studying the source code of the library yesterday.
  • Quick Links