The x-maya-data mimetype used for drag-and-drop?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I thought I would repost a question that has surfaced more than once, in different forums:
Ref:
http://stackoverflow.com/questions/8391267/determining-the-nature-of-8-bytes-of-data
https://groups.google.com/d/topic/python_inside_maya/wRMU98TIXL4/discussion
When we examine the mime type from a drag-and-drop event (via Qt) on the outliner editor, the mimetype specified is "application/x-maya-data", and the QByteArray is some 8 byte data. Does anyone have an internal knowledge about what this data represents, and if it can be used to identify the dragged/dropped items?
Sample data from repeating the exact same drop looks like this:
PyQt4.QtCore.QByteArray(' \xae\x117\x01\x00\x00\x00')
PyQt4.QtCore.QByteArray('P1\x167\x01\x00\x00\x00')
PyQt4.QtCore.QByteArray('\xc0!\x1c7\x01\x00\x00\x00')
PyQt4.QtCore.QByteArray('@\x88\xcf5\x01\x00\x00\x00')
PyQt4.QtCore.QByteArray('\xe0\xe5\x825\x01\x00\x00\x00')
PyQt4.QtCore.QByteArray('\xd0Q\x805\x01\x00\x00\x00')
PyQt4.QtCore.QByteArray("\x80\t\xe3'\x01\x00\x00\x00")
The best I am able to access the outlinerEditor is via a QWidget reference, as I assume it is a completely custom internal type. So it does not appear that I can simply reference the object like a QAbstractItemView and query the selection model.
Any insight?