Get clipboard from Maya settings

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 ...

Work environment#

code#

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

Get clipboard from Maya settings
Get structural data from CHEMBLID
Initial settings from Kubuntu installation
Maya | Get the workspace path
Get celebrity tweet history from twitter
Export mp4 from maya using ffmpeg
Get one column from DataFrame with DataFrame
Maya | Get parent nodes in sequence
[Beginner] Get from Django Query database
Send commands from Atom to Maya
Operate Maya with OSC from vvvv
Get the value from the [Django] Form
Get upcoming weather from python weather api
Get data from Twitter using Tweepy
Maya | Examine world coordinate system settings
Get the address from the zip code