Skip to content

DynamicMacros v1.2

Compare
Choose a tag to compare
@3DCoded 3DCoded released this 18 Aug 19:41
· 27 commits to main since this release
6d8b1c4

This release of DynamicMacros has several new features.

Multiple Klipper Instances

When using multiple Klipper instances, the config path is no longer the default ~/printer_data/config. DynamicMacros v1.1.1 introduced a configurable config_path variable for this. Now, DynamicMacros v1.2 automatically detects the configuration path for your Klipper install.

Macro Clusters

DynamicMacros v1.2 has a new feature called macro clusters. In short, this allows for macro files to be grouped together. This also allows disabling of Python and/or the printer object on a per-cluster basis.

DYNAMIC_RENDER command

This feature (explained in the documentation) allows for viewing what will be executed when a macro is run (passing in parameters, printer data, etc.) A quick example:

[gcode_macro test]
gcode:
    M117 {params.A}

When TEST A=2 is run, the macro is internally "rendered" into:

M117 2

Then, this is run. The DYNAMIC_RENDER command allows for viewing of the rendered macro, without running it, making DynamicMacros even more useful as a macro development tool.

Traditional delayed_gcode Syntax

This last major feature of DynamicMacros v1.2 is support for traditional delayed_gcode syntax.


Full Changelog: v1.1.1...v1.2