- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I try to use drag and drop behaviour for our fx and shader library windows. The shaderlibrary window is created with pyside2 from within Maya (2019). For the widgets I added the setDragEnabled(True) and I can see that dragging is working. Now I found the great MExternalDropCallback in Maya. If I simply use the proviede python example, all I get are these lines:
External Drop: doDrop = 0, controlName = MainPane|viewPanes|modelPanel4|modelPanel4|modelEditorTabLayout|modelPanel4, LMB
External Drop: doDrop = 0, controlName = MainPane|viewPanes|modelPanel4|modelPanel4|, LMB
The docs mention that doDrop==0 means that it is only checked if a drop is valid. But if I release the mousebutton, I expect some message with doDrop=1 but nothing happens at all if I release the mousebutton. Any idea what's wrong?
Solved! Go to Solution.