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 maya import cmds, OpenMayaUI as omui | |
from Qt import QtWidgets, QtCore, QtCompat | |
def Dock(Widget, width=300, show=True): | |
"""Dock `Widget` into Maya | |
Arguments: | |
Widget (QWidget): Class | |
show (bool, optional): Whether to show the resulting dock once created |