mirror of
https://github.com/allankoechke/ADN-3dsMax-Explode-Geometry.git
synced 2026-11-30 09:22:10 +00:00
[GH-ISSUE #1] perf: test on performance with logging #1
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @allankoechke on GitHub (Jun 19, 2026).
Original GitHub issue: https://github.com/allankoechke/ADN-3dsMax-Explode-Geometry/issues/1
Current branch uses print statements for logging messages to the MaxScript listener. The print statements are bit too noisy but relevant in debugging process, as such, there's need to evaluate different options for logging these messages and the corresponding perfomance penalty.
Base case: No print statements
Evaluate:
/dev/nulllogginglibrary in Pythonsys.stdoutfor PythonResearch Findings
Research conducted: 2026-06-19 | Branch:
1-logging-perf-eval| Commit:40415eeSummary
The plugin currently uses 30
print()calls inPython/explode_geometry.py(duplicated inBundle2/Contents/python/explode_geometry.py). These scale linearly with face count — a 1,000-face mesh triggers ~7,000 print calls, each writing synchronously to the MaxScript Listener (a Scintilla GUI widget on the main thread). The GUI repaint overhead per write is likely 10-100x worse than a plain consoleprint().Replacing
print()with the Pythonloggingmodule set toWARNINGin production reduces per-call cost from ~2.66 us+ (plus GUI repaint) to ~14 ns (a ~190x improvement at minimum, likely 1000x+ when accounting for Listener overhead). This is the recommended approach.Current State: Print Statement Analysis
Distribution (30 print statements in
Python/explode_geometry.py)do_explode()L156-163do_explode()L167do_explode()L173-195convert_to_triangle_faces()L217-238convert_to_mnmesh_faces()L242-261applySettings()L265-283Scaling Formula
For S selected objects, each with F faces (all options enabled):
Hottest Print Statement
Line 227-228 is the most expensive individual print — it formats 11 arguments including 9 float values with
{:.2f}precision:Performance Benchmarks
Per-Call Cost Comparison
print()to consoleprint()to MaxScript Listenersys.stdout.write()to consolelogging.info()— emitted, handler writeslogging.debug()— filtered outisEnabledFor()if __debug__:with-OflagLazy vs. Eager Formatting (When Filtered)
logger.debug("msg %s", val)(lazy %)logger.debug(f"msg {val}")(eager f-string)logger.debug("msg {}".format(val))(eager .format())With expensive arguments (e.g., computing vertex coords), the difference is 287x between lazy and eager formatting.
3ds Max Specific Considerations
Python
print()in 3ds Maxsys.stdoutis redirected to the MaxScript Listener window (Scintilla-based text control)sys.stderralso goes to the Listener but renders in red textprint()call is synchronous on the main thread — no buffering/batchingpymxs.print_()vs Pythonprint()print()pymxs.print_()sys.stdout(Listener by default)Python Versions in 3ds Max
All versions support the
loggingmodule'sisEnabledFor()cache optimization (present since Python 3.7+).Evaluated Approaches (Ranked by Recommendation)
1. Python
loggingModule (Recommended)Pattern:
Pros:
%formatting defers string constructionCons:
.format()calls must be converted to lazy%styleKey implementation note: Use
logger.debug("msg %s", arg)notlogger.debug(f"msg {arg}")to get the lazy formatting benefit.2. Write to
os.devnull(NUL on Windows)Pattern:
Pros:
Cons:
3.
sys.stdout.write()DirectlyPattern: Replace
print(msg)withsys.stdout.write(msg + "\n")Pros:
Cons:
4. Module-Level Debug Flag
Pattern:
Pros:
Cons:
5.
if __debug__:Guards with-OFlagPattern:
Pros:
-OCons:
-OFiles Requiring Changes
Python/explode_geometry.pyprint()calls withloggingmodule; add logger setupBundle2/Contents/python/explode_geometry.pyPython/explode_geometry_classic.pyprintstatements (legacy MaxPlus, Python 2 syntax)Implementation Sketch
Benchmark Plan
To get real-world timings inside 3ds Max (not theoretical benchmarks), a
perf/folder will be created containing logging-variant copies of the explode script and a runner that measures wall-clock time end-to-end.perf/Folder Structureexplode_geometry_errors_only.pyretains only the single error-path print at L167:All 29 debug/info prints are removed. This represents the practical minimum — a shipped plugin that stays silent during normal operation but still surfaces errors to the Listener.
Runner Script Behaviour (
runner.py)For each variant file, the runner:
rt.resetMaxFile(noPrompt=True)orrt.delete rt.objectsouterAmount=4, delete original=Truetime.perf_counter()before and after the explode callOutput Format
Sources
Logging Performance Evaluation Implementation Plan
Overview
Replace the 30 synchronous
print()calls in the Explode Geometry plugin with Python'sloggingmodule (level=WARNING in production), and run real-world benchmarks inside 3ds Max across all evaluated approaches to validate the expected ~190x-1000x speedup on per-face-count-scaling workloads.Current State Analysis
Key Discoveries:
Python/explode_geometry.py:156-283— 30print()calls across 4 functions; all use.format()(eager), meaning string construction happens even if output is discardedBundle2/Contents/python/explode_geometry.py— identical file; must receive identical changesPython/explode_geometry_classic.py:176,273— legacy MaxPlus/Python 2 file with only 2 prints; out of scope (Python 2 syntax, max 2021 only)convert_to_triangle_faces():227-228formats 11 arguments including 9 floats — this single call scales as O(faces) and is the dominant cost driversys.stdoutto the MaxScript Listener (Scintilla GUI widget), making eachprint()synchronous and blocking on the main thread with GUI repaint overheadlogger.debug("msg %s", arg)with level=WARNING costs ~14 ns/call (level-check short-circuit), versus ~2,660 ns+ perprint()to Listener — ~190x improvement floor, 1000x+ with GUI overhead factored in%formatting is essential:logger.debug(f"...")orlogger.debug("...".format(...))still evaluates the string before the level check, negating the benefitDesired End State
After this branch is complete:
perf/folder exists with 6 variant scripts and arunner.pythat can be executed inside 3ds Max to produce a timing tablePython/explode_geometry.pyandBundle2/Contents/python/explode_geometry.pyuse theloggingmodule with level=WARNING in production, lazy%formatting, and dual handlers (stdout for INFO and below, stderr for WARNING+)perf/RESULTS.md) showing measured wall-clock times for each variant on a standardized test meshVerification: Running
runner.pyinside 3ds Max produces a complete timing table with no errors. The logging variant scripts do not emit any output to the MaxScript Listener during normal (non-error) operation.What We're NOT Doing
Python/explode_geometry_classic.py— legacy MaxPlus/Python 2 file, not used in Max 2022+Implementation Approach
Selected approach from research: Python
loggingmodule with:logger = logging.getLogger("ExplodeGeometry")sys.stdoutfor DEBUG/INFO (white Listener text),sys.stderrfor WARNING+ (red Listener text)logging.WARNING— all debug/info calls cost ~14 ns (level-check only).format()calls converted to lazy%style on debug/info log linesBenchmarking first (TASK 1) establishes the baseline before modifying production code, so results reflect the actual before/after difference.
IMPORTANT: Checkboxes are for implementation steps only. Steps requiring manual human verification (browser testing, manual QA, visual inspection, staging verification, human review) MUST NOT be checkboxes — place them in the numbered "Manual Testing Steps" section at the bottom of the plan instead.
TASK 1: Create perf/ Benchmarking Folder [HIGH PRIORITY]
Status: NOT STARTED
Milestone:
perf/folder exists with all 6 variant scripts and a workingrunner.pythat can be executed inside 3ds Max to produce a timing comparison tableperf/directory at the repository rootperf/explode_geometry_print.py— copy of the currentPython/explode_geometry.pywith all 30print()calls unchanged; this is the "before" baselineperf/explode_geometry_errors_only.py— remove all 29 debug/info prints, retain only the single error print at L167 (print("[ExplodeGeometry] ERROR: {}".format(msg))); this is the practical production minimumperf/explode_geometry_devnull.py— addimport osand redirectsys.stdout = open(os.devnull, "w")at module level before any print calls; all 30 prints remain unchangedperf/explode_geometry_logger_all.py— fullloggingmodule setup (dual handlers as per the implementation sketch),logger.setLevel(logging.DEBUG)so all 30 messages are emitted; convert all.format()to lazy%perf/explode_geometry_logger_info.py— same as logger_all butlogger.setLevel(logging.INFO); the per-face debug calls (the O(faces) hotspot) are filtered out, config/lifecycle messages still emittedperf/explode_geometry_noprint.py— remove all 30 print statements entirely; no logging setup; this is the theoretical performance floorperf/runner.pywith the following structure:importlib.import_moduleorexec(open(...).read())since they share function names)rt.resetMaxFile(noPrompt=True), (2) create a standard test cone (rt.Cone(radius1=50, radius2=0, height=100, heightsegs=10, capsegs=5, sides=32)), (3) select it withrt.select(cone), (4) calltime.perf_counter()before and after the variant'sconvert_to_triangle_faces()function directly (bypassing GUI), (5) clear scene, recreate cone, (6) repeat forconvert_to_mnmesh_faces()| variant | explode type | time (s) |import timeforperf_counter()Validation: Running
runner.pyinside the 3ds Max Python listener (e.g., via pasting into the listener) produces a complete table with 12 data rows and no import errors.Requirements from spec:
time.perf_counter()) on a standardized test mesh inside 3ds MaxFiles to Create:
perf/runner.py— orchestrator that imports each variant and runs timing measurementsperf/explode_geometry_print.py— baseline: all 30 prints as-isperf/explode_geometry_errors_only.py— 29 prints removed, 1 error print retainedperf/explode_geometry_devnull.py— stdout redirected to os.devnull, prints unchangedperf/explode_geometry_logger_all.py— logging module, level=DEBUG, all messages emittedperf/explode_geometry_logger_info.py— logging module, level=INFO, per-face debug filteredperf/explode_geometry_noprint.py— zero prints, no loggingTASK 2: Migrate Python/explode_geometry.py to logging module [HIGH PRIORITY]
Status: NOT STARTED
Milestone: All 30
print()calls replaced withlogger.*()calls using lazy%formatting; logger setup at module level with dual handlers; production level set to WARNINGimport loggingandimport systo the imports section (after the existingimport randomat L12)rt = pymxs.runtime(around L13), using anif not logger.handlers:guard to prevent duplicate handlers on script reload:logger = logging.getLogger("ExplodeGeometry")addFilter(lambda r: r.levelno < logging.WARNING)logger.setLevel(logging.WARNING)for productiondo_explode()) withlogger.debug()calls using%slazy formattinglogger.warning("ERROR: %s", msg)so it routes to stderr (red Listener text)Processing N object(s)) withlogger.debug("[TriMesh] Processing %d object(s)", len(transformation_set))Object i/N: name) withlogger.debug("[TriMesh] Object %d/%d: %s", i, len(transformation_set), n.name)Deleting original) withlogger.debug("[TriMesh] Deleting original %s", n.name)[MNMesh] Processing) withlogger.debug("[MNMesh] Processing %d object(s)", len(transformation_set))[MNMesh] Object i/N) withlogger.debug("[MNMesh] Object %d/%d: %s", i, len(transformation_set), node.name)[MNMesh] Deleting) withlogger.debug("[MNMesh] Deleting original %s", node.name)Done. Redrawing views.) withlogger.info("Done. Redrawing views.")Converting to mesh) withlogger.debug("[TriMesh] Converting %s to mesh...", node.name)has N face(s)) withlogger.debug("[TriMesh] %s has %d face(s) to explode", node.name, num_faces)logger.debug("[TriMesh] Face %d/%d: verts=(%.2f,%.2f,%.2f) (%.2f,%.2f,%.2f) (%.2f,%.2f,%.2f)", face_idx, num_faces, v1.x, v1.y, v1.z, v2.x, v2.y, v2.z, v3.x, v3.y, v3.z)— lazy%means vertex coords are NOT read/formatted when level=WARNINGCreated piece) withlogger.debug("[TriMesh] Created piece %s for face %d", new_node.name, face_idx)Finished exploding) withlogger.debug("[TriMesh] Finished exploding %s", node.name)[Poly] Converting) withlogger.debug("[Poly] Converting %s to poly...", node.name)[Poly] has N face(s)) withlogger.debug("[Poly] %s has %d face(s) to explode", node.name, num_faces)Detaching face) withlogger.debug("[Poly] Detaching face %d/%d", face_idx, num_faces)WARNING: Could not find detached node) withlogger.warning("[Poly] WARNING: Could not find detached node for face %d", face_idx)— routes to stderr (red text)Created piece) withlogger.debug("[Poly] Created piece %s for face %d", new_node.name, face_idx)Finished exploding) withlogger.debug("[Poly] Finished exploding %s", node.name)applySettingssummary) withlogger.debug("applySettings on %s: shell=%s (amt=%s) editMesh=%s collapse=%s centerPivot=%s", n.name, addShell, shell_amount, addEditMesh, collapseNode, centerPivot)Adding Shell modifier) withlogger.debug("Adding Shell modifier (outerAmount=%s)", shell_amount)Adding Edit Mesh modifier) withlogger.debug("Adding Edit Mesh modifier")Collapsing modifier stack) withlogger.debug("Collapsing modifier stack")Centering pivot) withlogger.debug("Centering pivot")Validation: After editing,
grep -c "print(" Python/explode_geometry.pyreturns 0. The file parses cleanly:python -c "import ast; ast.parse(open('Python/explode_geometry.py').read()); print('OK')"returns OK.Requirements from spec:
%formatting (not f-strings or.format()) on all logger callslogger.warning()to route to stderr (red Listener text)if not logger.handlers:guard) to survive script reload in 3ds Maxlogging.WARNINGso normal operation emits nothing to the ListenerFiles to Modify:
Python/explode_geometry.py— add logger setup, replace all 30 print() callsTASK 3: Sync Bundle2/Contents/python/explode_geometry.py [MEDIUM PRIORITY]
Status: NOT STARTED
Milestone:
Bundle2/Contents/python/explode_geometry.pyis identical to the updatedPython/explode_geometry.pyBundle2/Contents/python/explode_geometry.py(the file is currently identical toPython/explode_geometry.py, so the same set of edits applies line-for-line)diff Python/explode_geometry.py Bundle2/Contents/python/explode_geometry.pyshould produce no outputValidation:
diff Python/explode_geometry.py Bundle2/Contents/python/explode_geometry.pyexits 0 with no output.Requirements from spec:
Files to Modify:
Bundle2/Contents/python/explode_geometry.py— identical changes as TASK 2TASK 4: Run Benchmarks and Record Results [MEDIUM PRIORITY]
Status: NOT STARTED
Milestone: Real benchmark results from inside 3ds Max are documented, confirming the logging module approach shows the expected performance improvement
perf/runner.pyin 3ds Max (e.g., drag-drop into viewport or paste into the Python listener:exec(open(r"perf/runner.py").read()))perf/RESULTS.mdwith the captured table, the test mesh parameters (cone: radius1=50, radius2=0, height=100, heightsegs=10, capsegs=5, sides=32), and the 3ds Max version usedexplode_geometry_logger_infoandexplode_geometry_noprintshow meaningfully faster times thanexplode_geometry_printfor both TriMesh and MNMesh pathsValidation:
perf/RESULTS.mdexists and contains a 12-row table. The logger_info and noprint variants show measurably faster times than the print baseline for TriMesh on the standard test mesh.Requirements from spec:
Files to Create:
perf/RESULTS.md— captured timing table with test environment detailsTesting Strategy
Unit Tests:
python -c "import ast; ast.parse(open('Python/explode_geometry.py').read()); print('OK')"— syntax validationgrep -c "print(" Python/explode_geometry.pymust return 0grep -c "print(" Bundle2/Contents/python/explode_geometry.pymust return 0diff Python/explode_geometry.py Bundle2/Contents/python/explode_geometry.pymust return no diffIntegration Tests:
ast.parseon each)runner.pyexecutes inside 3ds Max without exceptions and prints a complete 12-row tableManual Testing Steps:
Python/explode_geometry.py— verify the MaxScript Listener shows NO output during a successful explode (production level=WARNING filters all debug/info)logger.setLevel(logging.DEBUG)in the script, re-run — verify all the familiar debug messages appear in white text in the Listener (confirming the handler wiring is correct)perf/runner.pyinside 3ds Max and verify the table is printed with 12 rows covering all 6 variants x 2 mesh types, with no exceptionsPerformance Considerations
%formatting on everylogger.debug()call — eager f-strings or.format()on filtered calls would eliminate the ~190x speedup and revert to near-print() costif not logger.handlers:guard is critical in 3ds Max since scripts are often re-executed in the same Python session; without it, each reload doubles the handler count and doubles Listener writes@allankoechke commented on GitHub (Jun 19, 2026):
Listener buffer limits: No documentation found on whether the MaxScript Listener has a maximum buffer size or auto-truncation. Very large output volumes may have additional undocumented behavior. NO documentation for this
Actual Listener overhead: No official Autodesk benchmark exists for per-write Listener cost. The GUI repaint overhead on top of Python's print() overhead is inferred from architecture but not quantified. NO docs on this
PYTHONOPTIMIZE in 3ds Max: Whether setting this environment variable before launching 3ds Max works (and what side effects it has) needs testing. No need
Benchmark in 3ds Max: A microbenchmark running inside 3ds Max (e.g., 10,000 print calls vs logging calls) would provide real-world numbers for the Listener overhead specifically. This could be done as part of the implementation PR.NO need
Dual handler pattern: Should INFO and below go to stdout (normal text) and WARNING+ go to stderr (red text) in the Listener? This is a UX decision. YES
Here's the plan:
For the scripts to implement the logging types, create a new folder
perf/, in which we'll copy the explode geometry file for every log type we need to test out. That is,-> for print statments as is, the file stays as is
-> for logging library logger, have explode_geometry_logger.py in which the print statements have been converted to logging calls. This needs to be run twice, once with logging level permitting all and next with logging level only allowing info and above calls
-> etc.
@allankoechke commented on GitHub (Jun 19, 2026):
Applied changes to research:
Diff
@@ -116,7 +116,7 @@ - Lazy `%` formatting defers string construction - Can route to file handler, Listener, or both - Industry standard for Python applications -- stderr handler -> red text in Listener for warnings/errors +- Dual handler: INFO and below to stdout (normal Listener text), WARN +ING+ to stderr (red Listener text) **Cons:** - Slight refactoring effort (30 print -> logger calls) @@ -192,7 +192,6 @@ **Cons:** - 3ds Max controls the embedded Python interpreter — **no documente d way to pass `-O`** -- Setting `PYTHONOPTIMIZE=1` env var before launching Max is untested - and may break Max internals (removes all `assert` statements) - Not practical for this environment ### Files Requiring Changes @@ -207,30 +206,79 @@ ```python import logging +import sys logger = logging.getLogger("ExplodeGeometry") -# Default to WARNING in production (filtered debug costs ~14 ns) if not logger.handlers: - handler = logging.StreamHandler() # -> Listener via sys.stderr ( -red for warnings) - handler.setFormatter(logging.Formatter("[%(name)s] %(message)s")) - logger.addHandler(handler) - logger.setLevel(logging.WARNING) + fmt = logging.Formatter("[%(name)s] %(message)s") + # INFO and below -> stdout -> normal (white) text in Listener + stdout_handler = logging.StreamHandler(sys.stdout) + stdout_handler.setLevel(logging.DEBUG) + stdout_handler.addFilter(lambda r: r.levelno < logging.WARNING) + stdout_handler.setFormatter(fmt) + + # WARNING and above -> stderr -> red text in Listener + stderr_handler = logging.StreamHandler(sys.stderr) + stderr_handler.setLevel(logging.WARNING) + stderr_handler.setFormatter(fmt) + + logger.addHandler(stdout_handler) + logger.addHandler(stderr_handler) + logger.setLevel(logging.WARNING) # change to DEBUG during develo +pment + # Then replace: # print("[ExplodeGeometry] [TriMesh] Face {}/{}: ...".format(...)) # With: # logger.debug("[TriMesh] Face %d/%d: verts=(%.2f,%.2f,%.2f) ...", face_idx, num_faces, ...) ``` -### Open Questions +### Benchmark Plan -1. **Listener buffer limits**: No documentation found on whether the -MaxScript Listener has a maximum buffer size or auto-truncation. Very - large output volumes may have additional undocumented behavior. -2. **Actual Listener overhead**: No official Autodesk benchmark exist -s for per-write Listener cost. The GUI repaint overhead on top of Pyt -hon's print() overhead is inferred from architecture but not quantifi -ed. -3. **`PYTHONOPTIMIZE` in 3ds Max**: Whether setting this environment -variable before launching 3ds Max works (and what side effects it has -) needs testing. -4. **Benchmark in 3ds Max**: A microbenchmark running inside 3ds Max -(e.g., 10,000 print calls vs logging calls) would provide real-world -numbers for the Listener overhead specifically. This could be done as - part of the implementation PR. -5. **Dual handler pattern**: Should INFO and below go to stdout (norm -al text) and WARNING+ go to stderr (red text) in the Listener? This i -s a UX decision. +To get real-world timings inside 3ds Max (not theoretical benchmarks) +, a `perf/` folder will be created containing logging-variant copies +of the explode script and a runner that measures wall-clock time end- +to-end. +#### `perf/` Folder Structure + +``` +perf/ + runner.py # orchestrates all variants, repor +ts results + explode_geometry_print.py # base case: print() as-is + explode_geometry_devnull.py # sys.stdout redirected to os.devn +ull + explode_geometry_logger_all.py # logging module, level=DEBUG (all + messages emitted) + explode_geometry_logger_info.py # logging module, level=INFO (debu +g filtered out) + explode_geometry_noprint.py # base case: no print statements a +t all +``` + +#### Runner Script Behaviour (`runner.py`) + +For each variant file, the runner: + +1. **Clears the scene** — `rt.resetMaxFile(noPrompt=True)` or `rt.d +elete rt.objects` +2. **Creates a large cone** — enough faces to make logging overhead + measurable (e.g., radius1=50, radius2=0, height=100, heightsegs=10, +capsegs=5, sides=32) +3. **Runs TriMesh explode** with: shell modifier `outerAmount=4`, del +ete original=True +4. **Measures wall-clock time** — `time.perf_counter()` before and +after the explode call +5. **Clears scene again**, recreates cone +6. **Runs MNMesh explode** with the same settings and measures time +7. **Repeats steps 1-6** for every variant file + +#### Output Format + +``` +| Script variant | Explode type | Time (s) | +|-----------------------------|--------------|----------| +| explode_geometry_print | TriMesh | x.xxx | +| explode_geometry_print | MNMesh | x.xxx | +| explode_geometry_devnull | TriMesh | x.xxx | +| explode_geometry_devnull | MNMesh | x.xxx | +| explode_geometry_logger_all | TriMesh | x.xxx | +| explode_geometry_logger_all | MNMesh | x.xxx | +| explode_geometry_logger_info| TriMesh | x.xxx | +| explode_geometry_logger_info| MNMesh | x.xxx | +| explode_geometry_noprint | TriMesh | x.xxx | +| explode_geometry_noprint | MNMesh | x.xxx | +``` + ### Sources - [Autodesk: What's New in 3ds Max Python](https://help.autodesk.com/ cloudhelp/2027/ENU/MAXDEV-Python/files/MAXDEV_Python_what_s_new_in_3d s_max_python_api_html.html)@allankoechke commented on GitHub (Jun 19, 2026):
Add an instance where there are no print statements unless for erros, this could be our base case
@allankoechke commented on GitHub (Jun 19, 2026):
Applied changes to research:
Diff
@@ -242,14 +242,21 @@ ``` perf/ - runner.py # orchestrates all variants, repor -ts results - explode_geometry_print.py # base case: print() as-is - explode_geometry_devnull.py # sys.stdout redirected to os.devn -ull - explode_geometry_logger_all.py # logging module, level=DEBUG (all - messages emitted) - explode_geometry_logger_info.py # logging module, level=INFO (debu -g filtered out) - explode_geometry_noprint.py # base case: no print statements a -t all + runner.py # orchestrates all variants, rep +orts results + explode_geometry_print.py # current state: all 30 print() +calls as-is + explode_geometry_errors_only.py # base case: only the error prin +t kept (L167), all others removed + explode_geometry_devnull.py # sys.stdout redirected to os.de +vnull + explode_geometry_logger_all.py # logging module, level=DEBUG (a +ll messages emitted) + explode_geometry_logger_info.py # logging module, level=INFO (de +bug filtered out) + explode_geometry_noprint.py # absolute floor: zero print sta +tements ``` +`explode_geometry_errors_only.py` retains only the single error-path +print at L167: +```python +print("[ExplodeGeometry] ERROR: {}".format(msg)) +``` +All 29 debug/info prints are removed. This represents the practical m +inimum — a shipped plugin that stays silent during normal operation + but still surfaces errors to the Listener. + #### Runner Script Behaviour (`runner.py`) For each variant file, the runner: @@ -265,18 +272,20 @@ #### Output Format ``` -| Script variant | Explode type | Time (s) | -|-----------------------------|--------------|----------| -| explode_geometry_print | TriMesh | x.xxx | -| explode_geometry_print | MNMesh | x.xxx | -| explode_geometry_devnull | TriMesh | x.xxx | -| explode_geometry_devnull | MNMesh | x.xxx | -| explode_geometry_logger_all | TriMesh | x.xxx | -| explode_geometry_logger_all | MNMesh | x.xxx | -| explode_geometry_logger_info| TriMesh | x.xxx | -| explode_geometry_logger_info| MNMesh | x.xxx | -| explode_geometry_noprint | TriMesh | x.xxx | -| explode_geometry_noprint | MNMesh | x.xxx | +| Script variant | Explode type | Time (s) | +|---------------------------------|--------------|----------| +| explode_geometry_print | TriMesh | x.xxx | +| explode_geometry_print | MNMesh | x.xxx | +| explode_geometry_errors_only | TriMesh | x.xxx | <- bas +e case +| explode_geometry_errors_only | MNMesh | x.xxx | <- bas +e case +| explode_geometry_devnull | TriMesh | x.xxx | +| explode_geometry_devnull | MNMesh | x.xxx | +| explode_geometry_logger_all | TriMesh | x.xxx | +| explode_geometry_logger_all | MNMesh | x.xxx | +| explode_geometry_logger_info | TriMesh | x.xxx | +| explode_geometry_logger_info | MNMesh | x.xxx | +| explode_geometry_noprint | TriMesh | x.xxx | +| explode_geometry_noprint | MNMesh | x.xxx | ``` ### Sources@allankoechke commented on GitHub (Jun 19, 2026):
Implementation complete! PR ready for review: https://github.com/allankoechke/ADN-3dsMax-Explode-Geometry/pull/2