Deliver a maintainable in-Max tool whose normal entry point is a .ms launcher. Running it again must dispose of the previous instance and start one replacement, including when its window is hidden. Creating a script/tool with this skill includes a package-ready project and a locally built installable MZP from the official MaxPkg Packager as the normal final delivery stage. This user-defined default authorizes in-scope local packaging without a redundant permission question; it does not authorize publication, push, or unrelated installation changes. A narrow edit, review or audit does not require an unrelated packaging migration/build unless requested or necessary to its stated deliverable. Do not add a separate custom installer or service: standard MaxPkg packaging is sufficient.
Inspect existing code and identify the requested behavior, minimum Max release, UI needs, scene effects, and long-running operations. Separate supported targets from versions actually tested. For unknown runtime details, inspect the intended host or current Autodesk documentation before choosing APIs or dependencies.
Before adding responsive breakpoint adaptation, ask the tool’s user whether they want it unless they have already explicitly chosen: narrow windows reduce text/control sizes and may use icon-only actions; wider windows enlarge fonts, controls and icons. Do not silently enable those changes. While awaiting the choice, implement ordinary layouts, fit, scrolling and DPI correctness without breakpoint-driven scaling. Record the choice in the generated tool’s documentation. The interface size for 2K / 4K screens is not a breakpoint choice: it is part of DPI correctness in Max and is always on.
Use these references by task:
references/templates/) and how to turn it into a new tool. Start every new tool here.describe, envelopes, checked parameters, dry runs and one undo record. Code: API.update.json (verified download, one-step switch, rollback), Settings > Updates, and what to do when the owner asks for updates..ms entry point small: resolve its own directory, check the Python bootstrap exists, and execute that file in Max’s embedded Python. Do not require users to start a system Python interpreter.pymxs, scene/viewport/renderer calls, and Qt UI operations on Max’s main thread. Workers receive plain data and return plain results. Reject completion from an old lifecycle or stale scene before applying it.unify_heights); no grey on coloured controls (disabled primary / danger keep a shade of their colour); compact windows that only the user resizes; the dark header shade behind the title bar; a red * on every required field and required panel, a red outline and the error bubble that waits for real pointer movement; help balloons in short blocks with bold terms and code chips; switches for on / off options; steppers, the date picker and the badge dropdown instead of native spin boxes, date edits and plain category lists; scrolling never changes a field (the wheel over a dropdown or stepper scrolls the page); optional groups closed until they hold data; the mini log shows statuses only and the modeless Logs window keeps the history (one file per day), opened from View Logs at the left of the status bar; toasts for the outcome of an action and the result card for the end of the main operation; every window (dialogs too) in the main window’s own frameless chrome, and every message the tool’s own (dialogs.ask, inform, ask_text, the Support and welcome windows), never a QMessageBox, QInputDialog or a native title bar; the buttons of a dialog’s bottom row one size (controls.same_width); Settings in sections, tabs up to three and a list on the left from four; soft edges where a scrolling area is cut; round title-bar buttons with a red close. Donations only as the owner chooses (donations): ask which offers they want. The main window example is a controls trainer that shows all of them in one design as a gallery; a real tool uses them with judgment and takes only what its task needs (choosing controls).px(), pt(), scaled style sheet) and give lists and late-built widgets the window’s font after polish.widget.screen(); repolish instead of style() calls; every background job through the runner with the GIL pump; heavy CPU work in a child python.exe -m process; Max hotkeys disabled while the tool has focus.Use an explicit start / request_stop / is_stopped contract when asynchronous work exists. A small synchronous tool may use a simpler equivalent. Document what closing versus hiding the UI does. Keep import-time behavior passive so importing modules does not create windows or mutate scenes.
Follow the testing workflow: smoke, ordinary logic/unit, regression and interface tests, including an interface harness inside each available 3ds Max through Max Ultra MCP (windows created off screen, settings in a scratch folder) and screenshots of the tool’s own windows (never screen captures) reviewed visually. Never start a QApplication in Max’s python.exe outside Max, never move the user’s mouse or send keys to the user’s windows in a test: fake the pointer position instead. Test generated tools through Max Ultra MCP in an authorized isolated/synthetic Max fixture when available. Verify each available supported runtime, particularly PySide2/Qt5 and PySide6/Qt6, using actual bundled version probes. If isolation or a runtime is unavailable, record the missing coverage instead of claiming success. Test first launch, repeated launch, rapid double launch, close then relaunch, hidden-window relaunch, startup failure, rerun during work, late worker results, and shutdown timeout. Inspect owned resources to confirm only one active lifecycle remains. Do not open, modify, or save a user’s scene merely to validate startup.
For Qt UI, verify targeted binding families, theme switching, keyboard focus, resize in both directions, 200% and higher DPI, dialogs, and missing resources. A standalone Qt test cannot establish Max parenting or callback behavior. Deliver the project layout, launch instructions, supported-runtime assumptions, responsive-layout choice, actual test evidence, and remaining limitations. This is one independently installable community/custom skill, not a built-in product skill. Importing it neither installs a Python tool nor authorizes scene changes.
For tool creation, finish the MaxPkg delivery workflow: refresh official guidance, preserve the original packager and both standard hooks, configure the actual project, and build through MaxPkgPackerApi in the selected Max instance. The entry remains the .ms launcher that starts Python. Inspect inner API responses and final archive contents/version; never rename a ZIP to claim an MZP. Include the source project and exact local MZP result, distinguishing build/archive checks from real install, launch, update and uninstall tests. If official tooling, required facts or a suitable Max connection are unavailable, report the precise blocker and leave the fullest verified ready-to-build project possible; do not claim the MZP was built. The starter templates are verified source to copy and adapt, and the recipes are adaptable instruction examples; neither is a drop-in library or a guarantee of pixel-identical UI output in every host.