max-ultra-mcp-community-skills

Starter templates

A complete, verified starting project for a new tool. Every page in templates/ holds the full text of one or more modules; together they make a tool that starts from a .ms launcher, restarts cleanly, has the standard window, controls, Settings / Logs / About / Donate, themes, interface size, a start guard and Max-safe background jobs. Start new tools from these files instead of writing the same infrastructure again; then replace the example content.

The starter was assembled from TerraScoop (a free Python + Qt tool for 3ds Max 2022-2027 by the same author) and run as one project outside Max with Max 2022’s Python 3.7.9 / PySide2 5.15.1 and Max 2027’s Python 3.13.9 / PySide6 6.8.3: window, help balloon, background job with progress, Settings, About, Logs, collapse and restore, close. The parts were host-tested inside Max 2022 and 2027 as part of TerraScoop; the assembled starter itself was not run inside Max while this skill was prepared. Test the generated tool in the host as testing describes.

Version 1.2.0 adds the interface components approved in MaxPkg Packager 2.0 (a Python + Qt tool for 3ds Max 2022-2027 by the same author): the header shade, required marks and the error bubble, help balloons with markup, collapsible groups, switches, steppers, the date picker, the badge dropdown, one control height, rounded menus and popups, round window buttons and a compact collapsed bar, the daily logs with the new Logs window and the mini log. The example main window now shows every control in one design on three tabs; every window has the main window’s chrome, questions replace message boxes, View Logs sits at the left of the status bar and toasts come from MaxPkg Runtime Manager. The starter was assembled again and checked inside 3ds Max 2022 and 2027 through Max Ultra MCP (see evidence).

The example main window is now a controls trainer: eleven sections in a list on the left (Fields, Choices, Sliders & Colours, Badges, Lists, Cards & Gallery, Charts, Feedback, Loading, Windows, Donations) show every component in one design, including the calendar with months, years and a time, dropdowns with icons, groups, typing and check boxes, choice cards, sliders, colour pickers, count and status badges, tags, filter pills, search with suggestions, the list editor, a scene tree, a drop zone, cards, a gallery, stat tiles and charts, spinners, skeleton rows, a progress ring, wizard steps, the busy overlay, result cards, empty states, soft edges on scrolling areas, the tool’s own messages and prompts, Settings as tabs or as a list, the welcome window and every donation offer (donations). Every margin and gap is on one spacing scale. It is a gallery to choose from, not a layout to copy.

Main window built from the starter

Files

Template page Target files What it gives
launcher-bootstrap StartMyTool.ms, python/bootstrap.py Thin launcher (it also defines MyToolAPI); one session, clean restart polled on a Qt timer
api MyToolAPI.ms, python/api_entry.py, python/mytool/api.py, python/mytool/max_api.py The tool without its window: operations for MAXScript, Python and AI assistants; scene work on the main thread only
package-basics python/mytool/__init__.py, settings.py, donation.py, resources.py Identity (name, version, developer, links, donation URL and offers), JSON settings with test overrides, when a donation is offered, package paths
qt-compat python/mytool/qt_compat.py PySide2 / PySide6, screens by position, work areas, active viewport, DWM corners, Max hotkeys, safe mode
ui-scale python/mytool/ui_scale.py Interface size for 2K / 4K screens: px(), pt(), the spacing scale space(), scaled style sheet
themes-style themes.py, ui/theme_manager.py, ui/style.qss Palette resolution, transactional theme switch, the canonical style sheet
logs python/mytool/logs.py, ui/statuslog.py, ui/logwindow.py One log file per day, crash log, record parsing; the Logs window; the mini log (statuses only)
controller-workers controller.py, workers.py Session owner, cleanup ledger, main-thread poster, GIL pump, GC hold, job runner
startguard-gcprobe startguard.py, gcprobe.py Crash-at-start detection, safe mode, Listener report, collector probe
controls ui/controls.py, ui/toast.py Every shared control: one height and one footer width, buttons, window buttons, the View Logs status action, menus with keys and a red Delete, text fields’ menus in the tool’s look, field frames, error bubble, flash, pills, progress, segments, dropdown, help balloons, shimmer, soft scroll edges; toasts with animated status icons
forms ui/forms.py, ui/switch.py, ui/pickers.py Panels with required star and help, captions, collapsible groups, badge dropdown, switch, stepper, time field, date picker with months, years and an optional time
tool-window ui/tool_window.py Title bar with round buttons, header shade, edges, rounded corners, compact collapsed bar that follows Max, status bar
updates python/mytool/updater.py, tools/release.py Optional self-update: verified install into the user profile, rollback, the release script
sections-inputs ui/sections.py, ui/inputs.py Sections as tabs or as a list on the left; search with suggestions, copy button, clearable filter, pick button, multi-select list, list editor
sliders-colors-badges ui/sliders.py, ui/colors.py, ui/badges.py One- and two-handle sliders, colour picker, count and status badges, tags, status dots, filter pills
cards-states ui/cards.py, ui/gallery.py, ui/states.py Cards in a responsive grid; the gallery and its lightbox; busy overlay, result card with the donation line, empty state, the empty state in the list’s own place
combos-tree ui/combos.py, ui/tree.py Dropdowns with icons, groups, typing and check boxes; choice cards; the scene tree; the drop zone
charts-loading ui/charts.py, ui/loading.py Stat tiles, column, line and donut charts with hover values; spinners, the busy button, skeleton rows, the progress ring, wizard steps
dialogs ui/dialogs.py Every window’s frameless chrome (ToolDialog), veil, Settings in sections (tabs or a list), About, Welcome, Support, questions, messages and prompts (ask, inform, ask_text)
main-window-example ui/main_window.py The controls trainer: eleven sections in a list on the left, mini log, primary action, background job, result card

Assets the project needs besides the code:

Make it the tool

  1. Choose the package id (lower case, unique, e.g. scenecheck) and the display name (e.g. SceneCheck). Replace mytool with the id and MyTool with the name in every file, including _mytool_session (the restart anchor), the launcher file name StartMyTool.ms and the brand icon assets/mytool.svg.
  2. Optionally replace the object-name prefix tool (#toolWindow, "toolPanel") with a short prefix of the tool in both style.qss and the Python files, so two tools’ style sheets can never collide.
  3. Fill __init__.py: __version__, SUBTITLE, DEVELOPER, LINKS, DONATE_URL, DONATE_OFFERS and the rotating link’s PROMOTIONS (the owner’s own sites and tools; () for none). Leave unknown values empty; About and the Donate buttons leave out what is empty. Never invent a developer name, link or payment destination.
  4. Replace ui/main_window.py’s example content with the tool’s panels, in one column about as wide as the Command Panel (300-360 px at 100 %) unless the content needs width. Keep: one rounded panel per area (forms.panel), titles and captions with a red * where the validation requires them, “?” help balloons in short blocks, optional groups closed (forms.Collapsible), switches for on / off options, the primary action pinned at the bottom (never inside a scroll area), statuses in pills and the mini log, controls.unify_heights after building and when shown, ErrorHints on every validated field.
  5. Add the tool’s settings keys to settings.DEFAULTS (one type per key) and its sections to SettingsDialog.SECTIONS with a _build_<key> method each (tabs up to three sections, a list on the left from four). Ask the owner which donation offers they want (DONATE_OFFERS, donations) and write SUPPORT_TEXT in their words; WELCOME_POINTS say what the tool is for, or () for no welcome window.
  6. Put scene work in max_api.py (main thread, pymxs only there) and heavy pure work in jobs through controller.run_job or a child process (see Max reliability). Give every operation of the window an entry in api.py’s OPERATIONS (purpose, changes_scene, checked parameters, an example, dry_run for scene changes) and let the window call it: the API is part of every tool, not an extra.
  7. Keep the Python 3.7 floor if Max 2022 is supported; compile every module with the oldest and newest target Python.
  8. Run the interface harness inside each available Max and the host checks in testing, then package as MaxPkg delivery describes. New runtime files must be added to the packager’s explicit file list.

What not to change without a reason

These details each fixed a real failure in Max; Max reliability has the history: