This is an easy way to set the clipboard acquisition settings from Maya. It depends on PySide, but it should be usable on both Windows and OSX ...
maya2016.py
from PySide import QtGui
cb = QtGui.QClipboard()
#Get
data = cb.text()
#Setting
cb.setText(u'Fuga Fuga')
maya2017.py
from PySide2 import QtGui
cb = QtGui.QClipboard()
#Get
data = cb.text()
#Setting
cb.setText(u'Fuga Fuga')
Recommended Posts