A Pen by Stephan Osterburg on CodePen.
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
| [MASTER] | |
| # Specify a configuration file. | |
| #rcfile= | |
| # Python code to execute, usually for sys.path manipulation such as | |
| # pygtk.require(). | |
| #init-hook= | |
| # Add files or directories to the blacklist. They should be base names, not |
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
| """ Intro Maya QT """ | |
| from PyQt4 import QtCore, QtGui, uic | |
| import maya.cmds as cmds | |
| UI_FILE = "qt_basic.ui" | |
| UiMainWindow, QtBaseClass = uic.loadUiType(UI_FILE) | |
| class CreateUI(QtGui.QMainWindow, UiMainWindow): | |
| """ |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <ui version="4.0"> | |
| <class>Form</class> | |
| <widget class="QWidget" name="Form"> | |
| <property name="geometry"> | |
| <rect> | |
| <x>0</x> | |
| <y>0</y> | |
| <width>367</width> | |
| <height>71</height> |
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
| """Basic QT window exercise""" | |
| import maya.cmds as cmds | |
| import maya.OpenMayaUI as omUi | |
| from PyQt4 import QtCore, QtGui | |
| import sip | |
| def get_maya_window(): | |
| """ | |
| Get the maya main window as a QMainWindow 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
| """Basic QT window exercise""" | |
| import maya.cmds as cmds | |
| import maya.OpenMayaUI as omUi | |
| from PyQt4 import QtCore, QtGui | |
| import sip | |
| def get_maya_window(): | |
| """ | |
| Get the maya main window as a QMainWindow 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 maya.cmds as mc | |
| def _null(*args): | |
| pass | |
| class _shelf(): | |
| '''A simple class to build shelves in maya. Since the build method is empty, | |
| it should be extended by the derived class to build the necessary shelf elements. |
A Pen by Stephan Osterburg on CodePen.
A Pen by Stephan Osterburg on CodePen.
A Pen by Stephan Osterburg on CodePen.
OlderNewer