Metadata-Version: 2.4
Name: tentacletk
Version: 0.19.8
Summary: Marking menus (pie menus) and tool panels for Maya and Blender: one hotkey-driven Qt interface for modeling, UV, animation and export.
Author-email: Ryan Simpson <m3trik@outlook.com>
License-Expression: GPL-3.0-or-later
Project-URL: Homepage, https://github.com/m3trik/tentacle
Project-URL: Repository, https://github.com/m3trik/tentacle
Project-URL: Changelog, https://github.com/m3trik/tentacle/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/m3trik/tentacle/issues
Keywords: m3trik,marking-menu,pie-menu,radial-menu,maya,blender,blender-addon,hotkeys,technical-art
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Intended Audience :: End Users/Desktop
Classifier: Topic :: Multimedia :: Graphics :: 3D Modeling
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: COPYING
License-File: COPYING.EXCEPTION
Requires-Dist: pythontk>=0.27.2
Requires-Dist: uitk>=1.13.1
Provides-Extra: maya
Requires-Dist: mayatk>=0.36.2; extra == "maya"
Provides-Extra: blender
Requires-Dist: blendertk>=0.28.2; extra == "blender"
Provides-Extra: apps
Requires-Dist: extapps<0.13,>=0.12.0; extra == "apps"
Dynamic: license-file

[![Tests](https://img.shields.io/badge/Tests-3993%20passed-brightgreen.svg)](../tests/)
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.en.html)
[![PyPI](https://img.shields.io/pypi/v/tentacletk.svg)](https://pypi.org/project/tentacletk/)
[![Maya](https://img.shields.io/badge/Maya-2025+-orange.svg)](https://www.autodesk.com/products/maya/)
[![Blender](https://img.shields.io/badge/Blender-4.1+-orange.svg)](https://www.blender.org/)
![Platform](https://img.shields.io/badge/Platform-Windows%2C%20Linux-lightgrey.svg)

# Tentacle

**Marking menus and tool panels for Maya and Blender.** Hold a key over the viewport, press a mouse button and flick toward a command. Tentacle puts your everyday commands and its tool panels one gesture away, and they work the same way in both apps.

![Tentacle's marking menu in use](https://raw.githubusercontent.com/m3trik/tentacle/main/docs/demo.gif)

## Design

| Principle | In practice |
|:--|:--|
| **Commands by direction** | A command is picked by the direction of a flick from wherever the cursor is, so it is learned by hand and reached without looking. The menus take no screen space until they are called. |
| **One toolset, two DCCs** | The menus and every tool panel are shared by Maya and Blender, built on one API that both host libraries implement. A control one host cannot support is hidden there, never left as a dead button, and CI fails when a shared panel calls what one library lacks ([the scorecard](PARITY_AUDIT.md)). |
| **Native behavior** | In Maya a tool takes the selection, keeps its settings in an option box and undoes in one step; in Blender it is one step in Blender's own undo history. Long jobs show progress and can be canceled. |
| **Help on the panel** | Each panel's **?** card says what the tool is and how to run it in about ten lines, and each control's tooltip says what it does. A tool's guide shares that card, generated from the panel, so the two never differ. |
| **Settings that survive updates** | Panel values, presets and shortcuts carry forward from release to release, also when panels merge or are renamed. |
| **Every panel is scriptable** | A panel is a thin layer over a public library API ([mayatk](https://github.com/m3trik/mayatk), [blendertk](https://github.com/m3trik/blendertk)), so a script, a test or an AI agent makes the same call the panel does. |
| **One-file install** | One file installs Tentacle in Maya or Blender, with no administrator rights and nothing written into the DCC's own install. |
| **Test-driven** | Every bug is reproduced as a failing test before it is fixed, and the test stays in the suite. Nearly 4,000 tests drive the menus and panels, offscreen and inside Maya, and a release requires a full passing run recorded against that exact source. |

## Install

Download [`tentacle_installer.py`](https://github.com/m3trik/tentacle/releases/latest/download/tentacle_installer.py), one file for both DCCs, on Windows or Linux:

| DCC | Do this |
| --- | --- |
| Maya 2025+ | Drag the file into the viewport. |
| Blender 4.1+ | *Edit ▸ Preferences ▸ Add-ons ▸ Install from Disk…* (under the ⌄ menu; *Install…* on 4.1), pick the file, and tick **Tentacle Marking Menu** if it is not already on. |

The first start downloads Tentacle, the library for your DCC and, in Blender, PySide6 from PyPI. That takes about a minute: Maya shows a progress window, and Blender shows pip's progress in its system console.

<details>
<summary><b>Where it lands, updating, team deployment and pip</b></summary>

- **Where it lands:** a per-user folder the DCC already reads from (`<Maya prefs>/<version>/tentacle/`, or Blender's `scripts/addons/modules/`). The DCC's Python needs to reach PyPI, so a proxy or firewall may need to allow it.
- **Update or uninstall:** drop the file in again (Maya) or open the add-on's preferences (Blender); while the menu is running, the change applies at the next start. In Blender, use the add-on's own **Uninstall**: Blender's *Remove* button deletes only the add-on file and leaves the packages behind.
- **Deploying to a team:** `"<mayapy>" tentacle_installer.py install|update|uninstall`, or `blender --background --python tentacle_installer.py -- install|update|uninstall`. Both exit with code 1 when the step fails. In Blender, `update` and `uninstall` are recorded and finish at the next start, so one more `blender --background` run completes them.
- **With pip:** `pip install "tentacletk[maya]"` or `"tentacletk[blender]"` into the DCC's own Python. The extra in brackets installs the library for that DCC; plain `tentacletk` has none, and the menu will not start without it. Add `apps` (`"tentacletk[maya,apps]"`) to install the standalone apps as well.

</details>

## Using it

Hold the activation key (`Z` by default) with the cursor over the viewport, and press mouse buttons while you hold it to pick a menu:

| Chord | Opens |
| --- | --- |
| `Z` | **HUD**: warnings, the selection or the scene's status, and the last command |
| `Z` + left button | **Cameras**: the standard views, Align View, and dolly, roll, truck and orbit |
| `Z` + middle button | **Editors**: the DCC's editors, one click away |
| `Z` + right button | **Main**: the tool categories, from Polygons and Materials to Animation and Rendering |
| `Z` + left + right | **Your DCC's own menus**, reached by gesture |

Change the key under **Settings ▸ Global Shortcuts** (the *Show Marking Menu* row) or, in Blender, *Preferences ▸ Keymap ▸ 3D View ▸ Tentacle Marking Menu*. Every chord follows the new key, and the choice is remembered. Global Shortcuts also holds the keys that repeat the last command and reopen the last panel. **Settings ▸ Menu Bindings** chooses which menu each chord opens, and **Scene ▸ Preferences** holds the theme, working units, autosave and HUD warnings.

## Tools

Beyond everyday commands, Tentacle ships production tools: batch export with checks, shots built from a build sheet and edited on a timeline, reversible baking, lightmaps, rigs for mechanical parts, and hand-offs to Marmoset Toolbag, Substance 3D Painter, RizomUV and the other DCC. Every tool is listed by category:

[Shots](tools/README.md#shots) · [Animation](tools/README.md#animation) · [Rigging](tools/README.md#rigging) · [Lighting and rendering](tools/README.md#lighting-and-rendering) · [Materials](tools/README.md#materials) · [UVs and textures](tools/README.md#uvs-and-textures) · [Scene and export](tools/README.md#scene-and-export) · [Modeling](tools/README.md#modeling)

With [extapps](https://github.com/m3trik/extapps) installed, the menus also open its standalone apps by name: texture maps, photogrammetry, Unity Scripts and the WebXR Preview among them. If it is missing, the first app you open offers to install it.

## How it's built

Tentacle is the product end of the [ecosystem](https://github.com/m3trik/m3trik#readme): it holds the launcher and the panels, and no logic of its own.

<!-- diagram:ecosystem/tentacle -->
<!-- Generated by m3trik/scripts/generate_readme_diagrams.py from the workspace's declarations: change those and re-run it, never this block. -->
<p align="center">
<a href="https://github.com/m3trik/m3trik#readme"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/m3trik/m3trik/main/docs/diagrams/ecosystem-tentacle-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/m3trik/m3trik/main/docs/diagrams/ecosystem-tentacle-light.svg"><img alt="tentacle (highlighted) in the ecosystem: uitk requires pythontk; unitytk requires pythontk; mayatk requires uitk; blendertk requires uitk; tentacle requires uitk; extapps requires uitk; tentacle installs mayatk as its [maya] extra; tentacle installs blendertk as its [blender] extra; tentacle opens extapps by name (its [apps] extra) and never imports it; mayatk and blendertk share a mirrored API. tentacle and extapps are products, which nothing imports." src="https://raw.githubusercontent.com/m3trik/m3trik/main/docs/diagrams/ecosystem-tentacle-light.svg" width="781"></picture></a>
</p>
<!-- /diagram:ecosystem/tentacle -->

`Tcl.launch` finds the running DCC and builds one [uitk](https://github.com/m3trik/uitk) marking menu for it. Whatever the host does differently, such as its main window, its keyboard handling and how it defers startup, comes from an adapter in that host's library: one launcher, with no per-host fork.

<!-- diagram:tentacle-launch -->
<!-- Generated by m3trik/scripts/generate_readme_diagrams.py from the workspace's declarations: change those and re-run it, never this block. -->
<p align="center">
<picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/m3trik/m3trik/main/docs/diagrams/tentacle-launch-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/m3trik/m3trik/main/docs/diagrams/tentacle-launch-light.svg"><img alt="How tentacle starts: Tcl.launch resolves the host&#x27;s adapter and defers to Tcl.build, which makes one uitk MarkingMenu with that adapter as its host; the menu&#x27;s Switchboard pairs a ui/&lt;name&gt;.ui file with the slots/&lt;name&gt;.py Slots class of the same basename, and a widget&#x27;s objectName calls the Slots method of the same name." src="https://raw.githubusercontent.com/m3trik/m3trik/main/docs/diagrams/tentacle-launch-light.svg" width="638"></picture>
</p>
<!-- /diagram:tentacle-launch -->

## Customize

Start Tentacle from your own startup script, Maya's `userSetup.py` or Blender's `startup.py`:

```python
from tentacle import Tcl
Tcl.launch(key_show="Z")   # bare ("Z", "Space") or Qt-named ("Key_F11")
```

`key_show` names the default key; without it, the `TENTACLE_KEY` environment variable does, else `Z`. A key the user picks in Settings outranks all of them. `slot_source` adds a slot library of your own (a relative path is read from the `tentacle` package folder), and `bindings` replaces the default chord table. A `bindings` table also sets the activation key, ahead of one the user picked, though the user's own chord-to-menu changes on that key still apply:

```python
Tcl.launch(
    slot_source="/studio/tentacle/slots",   # adds your own slot library
    log_level="DEBUG",
    bindings={                               # in place of the default chord table
        "Key_F11":             "main#startmenu",
        "Key_F11|RightButton": "cameras#startmenu",
    },
)
```

Chord syntax, gesture mechanics and the rest of the menu's options: [uitk's marking-menu guide](https://github.com/m3trik/uitk/blob/main/docs/MARKING_MENU.md).

See also: [changelog](https://github.com/m3trik/tentacle/blob/main/CHANGELOG.md) · [tests](https://github.com/m3trik/tentacle/tree/main/tests) · [contributing](https://github.com/m3trik/tentacle/blob/main/AGENTS.md) · [issues](https://github.com/m3trik/tentacle/issues).

## License

GPL-3.0-or-later; see [COPYING](https://github.com/m3trik/tentacle/blob/main/COPYING), plus an additional permission to combine it with mayatk and Autodesk Maya ([COPYING.EXCEPTION](https://github.com/m3trik/tentacle/blob/main/COPYING.EXCEPTION)). Copyright (C) 2021-2026 m3trik@live.com.
