Skip to content

Allow json arrays in settings for machine.*_sequence#127

Open
AmadeusW wants to merge 1 commit into
sameer:mainfrom
AmadeusW:arraySequences
Open

Allow json arrays in settings for machine.*_sequence#127
AmadeusW wants to merge 1 commit into
sameer:mainfrom
AmadeusW:arraySequences

Conversation

@AmadeusW

@AmadeusW AmadeusW commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Allow json array for _sequence properties.
This allows for legible multi-gcode sequences, for example

  "machine": {
    "begin_sequence": [
      "G28 O",
      "G0 X70 Y30 F4500",
      "M291 P\"Ready to plot\" T0 Z1",
    ],

Array is supported only on input. Internally, the values are concatenated with newlines. That's apparent when the setting is exported:

    "begin_sequence": "G28 O\nG0 X70 Y30 F4500\nM291 P\"Ready to plot\" T0 Z1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant