Python drag and drop

   1590   2   1
User Avatar
Member
8 posts
Joined: Feb. 2015
Offline
Hi.

I would like to know the difference between using Python in the Python panel and the Houdini shelf tool.

For example, I'm trying to use the drag and drop feature, but it doesn't work with the Houdini shelf tool.

However, it is used in the Python panel.

Is there a way to use drag and drop in the Houdini shelf tool?

What I want is to drag and drop the node and enter the path in the blank.



Thank you.
User Avatar
Member
806 posts
Joined: Oct. 2016
Offline
Hello, “Thank you”,

you may be confusing Qt (which Houdini uses for rendering its UI) and Python (which Houdini uses for working with data in the background). Python does not support “drag and drop”, since it is not a UI system but a programming language, Qt does.

If this helps in your usecase: You can add a path parameter to your node's (HDA's) parameter panel, into which you can use drag and drop from a node in the network view (which then automatically gets converted into a path).

Marc
---
Out of here. Being called a dick after having supported Houdini users for years is over my paygrade.
I will work for money, but NOT for "you have to provide people with free products" Indie-artists.
Good bye.
https://www.marc-albrecht.de [www.marc-albrecht.de]
User Avatar
Member
8 posts
Joined: Feb. 2015
Offline
malbrecht
you may be confusing Qt (which Houdini uses for rendering its UI) and Python (which Houdini uses for working with data in the background). Python does not support “drag and drop”, since it is not a UI system but a programming language, Qt does.

If this helps in your usecase: You can add a path parameter to your node's (HDA's) parameter panel, into which you can use drag and drop from a node in the network view (which then automatically gets converted into a path).



Thank you. I'll refer to it.
  • Quick Links