Skip to content

Instantly share code, notes, and snippets.

View benmorgantd's full-sized avatar

Benjamin Morgan benmorgantd

View GitHub Profile
@mottosso
mottosso / Dock.py
Last active October 13, 2023 09:01 — forked from liorbenhorin/Simple_MayaDockingClass.py
Simple way to dock Qt widgets to Maya 2017+
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