A Python3/PySide2 marking menu style toolkit for Maya, 3ds Max, and Blender.
Project description
uitk is a Python3/PySide2 marking menu and ui toolkit for Maya, 3ds Max, and Blender.
**personal project. work in progress ..**
Design:
This is a dynamic ui toolkit with a marking menu style ui (derived from a QStackedWidget) at it's core. The switchboard module (derived from QUiLoader) provides properties and convenience methods that allow quick and easy getting/setting of relevant ui and widget data across modules.
*Example re-opening the last scene, renaming a material, and selecting geometry by that material.
Structure:
Example | Description |
---|---|
tcl | Handles main gui construction for the marking menu. |
events | Event handling for dynamic ui. |
overlay | Tracks cursor position and ui hierarchy to generate paint events that overlay it's parent widget. |
switchboard | Loads dynamic ui and custom widgets on demand. Assigns properties and provides convenience methods for interacting with the ui. |
slots | Modules for the various slot connections. |
Installation:
To install:
Add the uitk
folder to a directory on your python path, or
install via pip in a command line window using:
python -m pip install uitk
To launch the marking menu: For Maya: Add a macro to a hotkey similar to the following:
from uitk import tcl_maya
tcl_maya.show(key_show='Key_F12')
For 3ds Max: Add a macro to a hotkey similar to the following:
macroScript main_max
category: "_macros.ui"
silentErrors: false
autoUndoEnabled: false
(
python.Execute "from uitk import tcl_max"
python.Execute "tcl_max.show(key_show='Key_F12')"
)
See the switchboard
module for a demo on how to launch a stand alone dynamic ui.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.