I once had a go with this, but came up empty.
I ended up with something similar to what you suggest, but rather than making it a button I simply ran cmds.ls(selection=True)
in the dropEvent and required users to first select the items they are about to drag. Not ideal, but was simple enough and works fine.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/1b11ce11-e1cc-4e84-98a0-d2d240fd5965%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOC756cp4c0Jg1uw2vyV1%2Bk-d7jTyxghtaaaEOtBJSg3%3Dw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2bf4t2A5%2BvRdnxTNDFzx07gwZD565DQuk4mVaAY%2BwoNw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANEMyhMJZoGmo01Jcv%2B-P04oydTFE6fQJ-FMwsJ7zN9QgrfJ-A%40mail.gmail.com.