Skip to content

curr_bed_type support in START_PRINT macro #703

@Delsian

Description

@Delsian

Describe the feature or hardware support you'd like

OrcaSlicer accepts Bed Type variable:
https://github.com/SoftFever/OrcaSlicer/wiki/bed-types
It is good to have curr_bed_type support in START_PRINT macro in a way like this:

[gcode_macro START_PRINT]
...
# Usage: START_PRINT ... CURR_BED_TYPE="{curr_bed_type} ..."
  {% set CURR_BED_TYPE = params.CURR_BED_TYPE|default('none')|string %}
  {% set N_ZO = params.N_ZO|default(0.0)|float %}
...
   {% if CURR_BED_TYPE == 'High Temp Plate' %}
      M118 High Temp Plate (flat)  detected, increasing Z-Offset by 0.09!
      {% set N_ZO = N_ZO + 0.06 %}
    {% elif CURR_BED_TYPE == ['Textured PEI Plate'] %}
        {% set N_ZO = N_ZO + 0.0 %}
    {% else %}
        {% set N_ZO = N_ZO + 0.09 %}
    {% endif %}

  SET_GCODE_OFFSET Z={N_ZO} MOVE=1

If it ok, I can prepare PR for this feature

Additional context or information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttriageThis is a new issue to be sorted (automatic label)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions