This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PySide import QtGui, QtCore | |
def removeInvalidClipboardData(): | |
oldMimeData = QtGui.qApp.clipboard().mimeData() | |
newMimeData = QtCore.QMimeData() | |
for format in oldMimeData.formats(): | |
if 'text/uri-list' in format: #This breaks maya paste | |
continue | |
data = oldMimeData.data(format) | |
newMimeData.setData(format, data) |