This file contains hidden or 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
| #hmasato | |
| #https://gist.github.com/hmasato/b72a95fbadf1c63b56ec | |
| #------------------------------ | |
| #grab frame buffer to QImage | |
| #------------------------------ | |
| import ctypes | |
| import maya.OpenMaya as om | |
| import maya.OpenMayaUI as omui |
This file contains hidden or 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 PySide2 import QtWidgets, QtCore | |
| def _maya_main_window(): | |
| """Return Maya's main window""" | |
| for obj in QtWidgets.qApp.topLevelWidgets(): | |
| if obj.objectName() == 'MayaWindow': | |
| return obj | |
| raise RuntimeError('Could not find MayaWindow instance') |
This file contains hidden or 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
| import PySide.QtCore as QtCore | |
| import PySide.QtGui as QtGui | |
| from nukescripts import panels | |
| class PanelTest(QtGui.QWidget): | |
| def __init__(self, parent=None): | |
| QtGui.QWidget.__init__(self, parent) | |
| self.setLayout(QtGui.QVBoxLayout()) | |
| self.myTable = QtGui.QTableWidget() | |
| self.myTable.header = ['Date', 'Files', 'Size', 'Path' ] |
- Related tutorial: http://raspberrypiguide.de/
- Command Line Cheatsheet: https://gist.github.com/hofmannsven/8392477