A Python3/PySide2 marking menu style toolkit for Maya, 3ds Max, and Blender.
Project description
Tentacle: A Python3/PySide2 Marking Menu and UI Toolkit
Tentacle is a Python3/PySide2 marking menu and UI toolkit designed for Maya, 3ds Max, Blender, and any other DCC app that supports the PySide2 framework. It is a personal project and is currently a work in progress.
Design
Tentacle is a dynamic UI toolkit with a marking menu style UI derived from a QStackedWidget. 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
The following example demonstrates re-opening the last scene, renaming a material, and selecting geometry by that material.
Structure
The structure of the project is as follows:
Module | Description |
---|---|
tcl | Handles main GUI construction for the marking menu. |
overlay | Tracks cursor position and UI hierarchy to generate paint events that overlay its parent widget. |
ui | Location of the dynamic UI files. |
slots | Location of the various slot modules. |
Installation
Add the tentacle
folder to a directory on your Python path, or install via pip in a command line window using:
python -m pip install tentacletk
Usage
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')"
)
Again, please note that this is a personal project and is currently a work in progress. Contributions are welcome.
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.
Source Distribution
Built Distribution
Hashes for tentacletk-0.7.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bad0a298d0ba967dbeb9b9eb92b6b86e4944da864e3886986e847d14bd743381 |
|
MD5 | fbe6af001fac28b75f82d8c18482e886 |
|
BLAKE2b-256 | 47a108a9ef2ef5d108fb1a7fc9eccd2d0231a3f3076d8e2a646b2375f767952d |