Jump to content
Sign in to follow this  

python panel pyside2 dropevent

Recommended Posts

pyside2 dropevent in houdini python panel. when i drag houdini node dropevent runs three times. but drag hip file runs only once. ?????:o


Edited by junvfx

Share this post

Link to post
Share on other sites

Yes, unfortunately, d&d in Python panels is very buggy. over the course of several years, I've seen all sorts of issues including this.

First, make sure in your dragEnterEvent you store the mime data somewhere and then the next time you enter the widget, check if such data exists and reject the event if it does.

See if it works for you, you might need to do the same trick with the dropEvent

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this