{
    "name": "FDM Printer Base Description",
    "version": 2,
    "metadata":
    {
        "type": "machine",
        "author": "Ultimaker",
        "category": "Other",
        "manufacturer": "Unknown",
        "setting_version": 1,
        "file_formats": "text/x-gcode;application/x-stl-ascii;application/x-stl-binary;application/x-wavefront-obj;application/x3g",
        "visible": false,
        "has_materials": true,
        "preferred_material": "*generic_pla*",
        "preferred_quality": "*normal*",
        "machine_extruder_trains":
        {
            "0": "fdmextruder"
        },
        "supports_usb_connection": true
    },
    "settings":
    {
        "machine_settings":
        {
            "label": "Machine",
            "type": "category",
            "description": "Machine specific settings",
            "icon": "category_machine",
            "children":
            {
                "machine_name":
                {
                    "label": "Machine Type",
                    "description": "The name of your 3D printer model.",
                    "default_value": "Unknown",
                    "type": "str",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_show_variants":
                {
                    "label": "Show Machine Variants",
                    "description": "Whether to show the different variants of this machine, which are described in separate json files.",
                    "default_value": false,
                    "type": "bool",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_start_gcode":
                {
                    "label": "Start GCode",
                    "description": "Gcode commands to be executed at the very start - separated by \\n.",
                    "default_value": "G28 ;Home\nG1 Z15.0 F6000 ;Move the platform down 15mm\n;Prime the extruder\nG92 E0\nG1 F200 E3\nG92 E0",
                    "type": "str",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_end_gcode":
                {
                    "label": "End GCode",
                    "description": "Gcode commands to be executed at the very end - separated by \\n.",
                    "default_value": "M104 S0\nM140 S0\n;Retract the filament\nG92 E1\nG1 E-1 F300\nG28 X0 Y0\nM84",
                    "type": "str",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "material_guid":
                {
                    "label": "Material GUID",
                    "description": "GUID of the material. This is set automatically. ",
                    "default_value": "",
                    "type": "str",
                    "enabled": false
                },
                "material_bed_temp_wait":
                {
                    "label": "Wait for Build Plate Heatup",
                    "description": "Whether to insert a command to wait until the build plate temperature is reached at the start.",
                    "default_value": true,
                    "type": "bool",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "material_print_temp_wait":
                {
                    "label": "Wait for Nozzle Heatup",
                    "description": "Whether to wait until the nozzle temperature is reached at the start.",
                    "default_value": true,
                    "type": "bool",
                    "enabled": "machine_nozzle_temp_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "material_print_temp_prepend":
                {
                    "label": "Include Material Temperatures",
                    "description": "Whether to include nozzle temperature commands at the start of the gcode. When the start_gcode already contains nozzle temperature commands Cura frontend will automatically disable this setting.",
                    "default_value": true,
                    "type": "bool",
                    "enabled": "machine_nozzle_temp_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "material_bed_temp_prepend":
                {
                    "label": "Include Build Plate Temperature",
                    "description": "Whether to include build plate temperature commands at the start of the gcode. When the start_gcode already contains build plate temperature commands Cura frontend will automatically disable this setting.",
                    "default_value": true,
                    "type": "bool",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_width":
                {
                    "label": "Machine Width",
                    "description": "The width (X-direction) of the printable area.",
                    "default_value": 100,
                    "type": "float",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_depth":
                {
                    "label": "Machine Depth",
                    "description": "The depth (Y-direction) of the printable area.",
                    "default_value": 100,
                    "type": "float",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_shape":
                {
                    "label": "Build Plate Shape",
                    "description": "The shape of the build plate without taking unprintable areas into account.",
                    "default_value": "rectangular",
                    "type": "enum",
                    "options":
                    {
                        "rectangular": "Rectangular",
                        "elliptic": "Elliptic"
                    },
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_height":
                {
                    "label": "Machine Height",
                    "description": "The height (Z-direction) of the printable area.",
                    "default_value": 100,
                    "type": "float",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_heated_bed":
                {
                    "label": "Has Heated Build Plate",
                    "description": "Whether the machine has a heated build plate present.",
                    "default_value": false,
                    "type": "bool",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_center_is_zero":
                {
                    "label": "Is Center Origin",
                    "description": "Whether the X/Y coordinates of the zero position of the printer is at the center of the printable area.",
                    "default_value": false,
                    "type": "bool",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_extruder_count":
                {
                    "label": "Number of Extruders",
                    "description": "Number of extruder trains. An extruder train is the combination of a feeder, bowden tube, and nozzle.",
                    "default_value": 1,
                    "minimum_value": "1",
                    "maximum_value": "16",
                    "type": "int",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_nozzle_tip_outer_diameter":
                {
                    "label": "Outer nozzle diameter",
                    "description": "The outer diameter of the tip of the nozzle.",
                    "default_value": 1,
                    "type": "float",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "settable_per_meshgroup": false,
                    "settable_globally": false
                },
                "machine_nozzle_head_distance":
                {
                    "label": "Nozzle length",
                    "description": "The height difference between the tip of the nozzle and the lowest part of the print head.",
                    "default_value": 3,
                    "type": "float",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "settable_per_meshgroup": false
                },
                "machine_nozzle_expansion_angle":
                {
                    "label": "Nozzle angle",
                    "description": "The angle between the horizontal plane and the conical part right above the tip of the nozzle.",
                    "unit": "°",
                    "type": "int",
                    "default_value": 45,
                    "maximum_value": "89",
                    "minimum_value": "1",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_heat_zone_length":
                {
                    "label": "Heat zone length",
                    "description": "The distance from the tip of the nozzle in which heat from the nozzle is transferred to the filament.",
                    "default_value": 16,
                    "type": "float",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "settable_per_meshgroup": false
                },
                "machine_filament_park_distance":
                {
                    "label": "Filament Park Distance",
                    "description": "The distance from the tip of the nozzle where to park the filament when an extruder is no longer used.",
                    "default_value": 16,
                    "value": "machine_heat_zone_length",
                    "type": "float",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "settable_per_meshgroup": false
                },
                "machine_nozzle_temp_enabled":
                {
                    "label": "Enable Nozzle Temperature Control",
                    "description": "Whether to control temperature from Cura. Turn this off to control nozzle temperature from outside of Cura.",
                    "default_value": true,
                    "value": "machine_gcode_flavor != \"UltiGCode\"",
                    "type": "bool",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "settable_per_meshgroup": false
                },
                "machine_nozzle_heat_up_speed":
                {
                    "label": "Heat up speed",
                    "description": "The speed (°C/s) by which the nozzle heats up averaged over the window of normal printing temperatures and the standby temperature.",
                    "default_value": 2.0,
                    "unit": "°C/s",
                    "type": "float",
                    "enabled": "machine_nozzle_temp_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "machine_nozzle_cool_down_speed":
                {
                    "label": "Cool down speed",
                    "description": "The speed (°C/s) by which the nozzle cools down averaged over the window of normal printing temperatures and the standby temperature.",
                    "default_value": 2.0,
                    "unit": "°C/s",
                    "type": "float",
                    "enabled": "machine_nozzle_temp_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "machine_min_cool_heat_time_window":
                {
                    "label": "Minimal Time Standby Temperature",
                    "description": "The minimal time an extruder has to be inactive before the nozzle is cooled. Only when an extruder is not used for longer than this time will it be allowed to cool down to the standby temperature.",
                    "default_value": 50.0,
                    "unit": "s",
                    "type": "float",
                    "enabled": "machine_nozzle_temp_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "machine_gcode_flavor":
                {
                    "label": "Gcode flavour",
                    "description": "The type of gcode to be generated.",
                    "type": "enum",
                    "options":
                    {
                        "RepRap (Marlin/Sprinter)": "Marlin",
                        "RepRap (Volumetric)": "Marlin (Volumetric)",
                        "RepRap (RepRap)": "RepRap",
                        "UltiGCode": "Ultimaker 2",
                        "Griffin": "Griffin",
                        "Makerbot": "Makerbot",
                        "BFB": "Bits from Bytes",
                        "MACH3": "Mach3",
                        "Repetier": "Repetier"
                    },
                    "default_value": "RepRap (Marlin/Sprinter)",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_firmware_retract":
                {
                    "label": "Firmware Retraction",
                    "description": "Whether to use firmware retract commands (G10/G11) instead of using the E property in G1 commands to retract the material.",
                    "type": "bool",
                    "default_value": false,
                    "value": "machine_gcode_flavor == 'RepRap (Volumetric)' or machine_gcode_flavor == 'UltiGCode' or machine_gcode_flavor == 'BFB'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_disallowed_areas":
                {
                    "label": "Disallowed areas",
                    "description": "A list of polygons with areas the print head is not allowed to enter.",
                    "type": "polygons",
                    "default_value":
                    [
                    ],
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "nozzle_disallowed_areas":
                {
                    "label": "Nozzle Disallowed Areas",
                    "description": "A list of polygons with areas the nozzle is not allowed to enter.",
                    "type": "polygons",
                    "default_value":
                    [
                    ],
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_head_polygon":
                {
                    "label": "Machine head polygon",
                    "description": "A 2D silhouette of the print head (fan caps excluded).",
                    "type": "polygon",
                    "default_value":
                    [
                        [
                            -1,
                            1
                        ],
                        [
                            -1,
                            -1
                        ],
                        [
                            1,
                            -1
                        ],
                        [
                            1,
                            1
                        ]
                    ],
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_head_with_fans_polygon":
                {
                    "label": "Machine head & Fan polygon",
                    "description": "A 2D silhouette of the print head (fan caps included).",
                    "type": "polygon",
                    "default_value":
                    [
                        [
                            -20,
                            10
                        ],
                        [
                            10,
                            10
                        ],
                        [
                            10,
                            -10
                        ],
                        [
                            -20,
                            -10
                        ]
                    ],
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "gantry_height":
                {
                    "label": "Gantry height",
                    "description": "The height difference between the tip of the nozzle and the gantry system (X and Y axes).",
                    "default_value": 99999999999,
                    "type": "float",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_nozzle_id":
                {
                    "label": "Nozzle ID",
                    "description": "The nozzle ID for an extruder train, such as \"AA 0.4\" and \"BB 0.8\".",
                    "type": "str",
                    "default_value": "unknown",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "machine_nozzle_size":
                {
                    "label": "Nozzle Diameter",
                    "description": "The inner diameter of the nozzle. Change this setting when using a non-standard nozzle size.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.4,
                    "minimum_value": "0.001",
                    "maximum_value_warning": "10",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "machine_use_extruder_offset_to_offset_coords":
                {
                    "label": "Offset With Extruder",
                    "description": "Apply the extruder offset to the coordinate system.",
                    "type": "bool",
                    "default_value": true,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "extruder_prime_pos_z":
                {
                    "label": "Extruder Prime Z Position",
                    "description": "The Z coordinate of the position where the nozzle primes at the start of printing.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 0,
                    "minimum_value_warning": "0",
                    "maximum_value": "machine_height",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "extruder_prime_pos_abs":
                {
                    "label": "Absolute Extruder Prime Position",
                    "description": "Make the extruder prime position absolute rather than relative to the last-known location of the head.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "machine_max_feedrate_x":
                {
                    "label": "Maximum Speed X",
                    "description": "The maximum speed for the motor of the X-direction.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 500,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_max_feedrate_y":
                {
                    "label": "Maximum Speed Y",
                    "description": "The maximum speed for the motor of the Y-direction.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 500,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_max_feedrate_z":
                {
                    "label": "Maximum Speed Z",
                    "description": "The maximum speed for the motor of the Z-direction.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 5,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_max_feedrate_e":
                {
                    "label": "Maximum Feedrate",
                    "description": "The maximum speed of the filament.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 299792458000,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_max_acceleration_x":
                {
                    "label": "Maximum Acceleration X",
                    "description": "Maximum acceleration for the motor of the X-direction",
                    "unit": "mm/s²",
                    "type": "float",
                    "default_value": 9000,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_max_acceleration_y":
                {
                    "label": "Maximum Acceleration Y",
                    "description": "Maximum acceleration for the motor of the Y-direction.",
                    "unit": "mm/s²",
                    "type": "float",
                    "default_value": 9000,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_max_acceleration_z":
                {
                    "label": "Maximum Acceleration Z",
                    "description": "Maximum acceleration for the motor of the Z-direction.",
                    "unit": "mm/s²",
                    "type": "float",
                    "default_value": 100,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_max_acceleration_e":
                {
                    "label": "Maximum Filament Acceleration",
                    "description": "Maximum acceleration for the motor of the filament.",
                    "unit": "mm/s²",
                    "type": "float",
                    "default_value": 10000,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_acceleration":
                {
                    "label": "Default Acceleration",
                    "description": "The default acceleration of print head movement.",
                    "unit": "mm/s²",
                    "type": "float",
                    "default_value": 4000,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_max_jerk_xy":
                {
                    "label": "Default X-Y Jerk",
                    "description": "Default jerk for movement in the horizontal plane.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 20.0,
                    "minimum_value": "0",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_max_jerk_z":
                {
                    "label": "Default Z Jerk",
                    "description": "Default jerk for the motor of the Z-direction.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 0.4,
                    "minimum_value": "0",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_max_jerk_e":
                {
                    "label": "Default Filament Jerk",
                    "description": "Default jerk for the motor of the filament.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 5.0,
                    "minimum_value": "0",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "machine_minimum_feedrate":
                {
                    "label": "Minimum Feedrate",
                    "description": "The minimal movement speed of the print head.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 0.0,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                }
            }
        },
        "resolution":
        {
            "label": "Quality",
            "type": "category",
            "icon": "category_layer_height",
            "description": "All settings that influence the resolution of the print. These settings have a large impact on the quality (and print time)",
            "children":
            {
                "layer_height":
                {
                    "label": "Layer Height",
                    "description": "The height of each layer in mm. Higher values produce faster prints in lower resolution, lower values produce slower prints in higher resolution.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.1,
                    "minimum_value": "0.001",
                    "minimum_value_warning": "0.04",
                    "maximum_value_warning": "0.8 * min(extruderValues('machine_nozzle_size'))",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "layer_height_0":
                {
                    "label": "Initial Layer Height",
                    "description": "The height of the initial layer in mm. A thicker initial layer makes adhesion to the build plate easier.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.3,
                    "resolve": "min(extruderValues('layer_height_0'))",
                    "minimum_value": "0.001",
                    "minimum_value_warning": "0.1",
                    "maximum_value_warning": "0.8 * min(extruderValues('machine_nozzle_size'))",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "slicing_tolerance":
                {
                    "label": "Slicing Tolerance",
                    "description": "How to slice layers with diagonal surfaces. The areas of a layer can be generated based on where the middle of the layer intersects the surface (Middle). Alternatively each layer can have the areas which fall inside of the volume throughout the height of the layer (Exclusive) or a layer has the areas which fall inside anywhere within the layer (Inclusive). Exclusive retains the most details, Inclusive makes for the best fit and Middle takes the least time to process.",
                    "type": "enum",
                    "options":
                    {
                        "middle": "Middle",
                        "exclusive": "Exclusive",
                        "inclusive": "Inclusive"
                    },
                    "default_value": "middle",
                    "settable_per_mesh": true
                },
                "line_width":
                {
                    "label": "Line Width",
                    "description": "Width of a single line. Generally, the width of each line should correspond to the width of the nozzle. However, slightly reducing this value could produce better prints.",
                    "unit": "mm",
                    "minimum_value": "0.001",
                    "minimum_value_warning": "0.1 + 0.4 * machine_nozzle_size",
                    "maximum_value_warning": "2 * machine_nozzle_size",
                    "default_value": 0.4,
                    "type": "float",
                    "value": "machine_nozzle_size",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "wall_line_width":
                        {
                            "label": "Wall Line Width",
                            "description": "Width of a single wall line.",
                            "unit": "mm",
                            "minimum_value": "0.001",
                            "minimum_value_warning": "0.1 + 0.4 * machine_nozzle_size",
                            "maximum_value_warning": "2 * machine_nozzle_size",
                            "value": "line_width",
                            "default_value": 0.4,
                            "type": "float",
                            "limit_to_extruder": "wall_0_extruder_nr if wall_x_extruder_nr == wall_0_extruder_nr else -1",
                            "settable_per_mesh": true,
                            "children":
                            {
                                "wall_line_width_0":
                                {
                                    "label": "Outer Wall Line Width",
                                    "description": "Width of the outermost wall line. By lowering this value, higher levels of detail can be printed.",
                                    "unit": "mm",
                                    "minimum_value": "0.001",
                                    "minimum_value_warning": "(0.1 + 0.4 * machine_nozzle_size) if outer_inset_first else 0.1 * machine_nozzle_size",
                                    "maximum_value_warning": "2 * machine_nozzle_size",
                                    "default_value": 0.4,
                                    "value": "wall_line_width",
                                    "type": "float",
                                    "limit_to_extruder": "wall_0_extruder_nr",
                                    "settable_per_mesh": true
                                },
                                "wall_line_width_x":
                                {
                                    "label": "Inner Wall(s) Line Width",
                                    "description": "Width of a single wall line for all wall lines except the outermost one.",
                                    "unit": "mm",
                                    "minimum_value": "0.001",
                                    "minimum_value_warning": "0.1 + 0.4 * machine_nozzle_size",
                                    "maximum_value_warning": "2 * machine_nozzle_size",
                                    "default_value": 0.4,
                                    "value": "wall_line_width",
                                    "type": "float",
                                    "limit_to_extruder": "wall_x_extruder_nr",
                                    "settable_per_mesh": true
                                }
                            }
                        },
                        "roofing_line_width":
                        {
                            "label": "Top Surface Skin Line Width",
                            "description": "Width of a single line of the areas at the top of the print.",
                            "unit": "mm",
                            "minimum_value": "0.001",
                            "minimum_value_warning": "0.1 + 0.4 * machine_nozzle_size",
                            "maximum_value_warning": "2 * machine_nozzle_size",
                            "default_value": 0.4,
                            "type": "float",
                            "value": "skin_line_width",
                            "limit_to_extruder": "roofing_extruder_nr",
                            "settable_per_mesh": true,
                            "enabled": "roofing_layer_count > 0 and top_layers > 0"
                        },
                        "skin_line_width":
                        {
                            "label": "Top/Bottom Line Width",
                            "description": "Width of a single top/bottom line.",
                            "unit": "mm",
                            "minimum_value": "0.001",
                            "minimum_value_warning": "0.1 + 0.4 * machine_nozzle_size",
                            "maximum_value_warning": "2 * machine_nozzle_size",
                            "default_value": 0.4,
                            "type": "float",
                            "value": "line_width",
                            "limit_to_extruder": "top_bottom_extruder_nr",
                            "settable_per_mesh": true
                        },
                        "infill_line_width":
                        {
                            "label": "Infill Line Width",
                            "description": "Width of a single infill line.",
                            "unit": "mm",
                            "minimum_value": "0.001",
                            "minimum_value_warning": "0.1 + 0.4 * machine_nozzle_size",
                            "maximum_value_warning": "3 * machine_nozzle_size",
                            "default_value": 0.4,
                            "type": "float",
                            "value": "line_width",
                            "enabled": "infill_sparse_density > 0",
                            "limit_to_extruder": "infill_extruder_nr",
                            "settable_per_mesh": true
                        },
                        "skirt_brim_line_width":
                        {
                            "label": "Skirt/Brim Line Width",
                            "description": "Width of a single skirt or brim line.",
                            "unit": "mm",
                            "minimum_value": "0.001",
                            "minimum_value_warning": "0.1 + 0.4 * machine_nozzle_size",
                            "maximum_value_warning": "3 * machine_nozzle_size",
                            "default_value": 0.4,
                            "type": "float",
                            "value": "line_width",
                            "enabled": "resolveOrValue('adhesion_type') == 'skirt' or resolveOrValue('adhesion_type') == 'brim'",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true
                        },
                        "support_line_width":
                        {
                            "label": "Support Line Width",
                            "description": "Width of a single support structure line.",
                            "unit": "mm",
                            "minimum_value": "0.001",
                            "minimum_value_warning": "0.1 + 0.4 * machine_nozzle_size",
                            "maximum_value_warning": "3 * machine_nozzle_size",
                            "default_value": 0.4,
                            "type": "float",
                            "enabled": "support_enable",
                            "value": "line_width",
                            "limit_to_extruder": "support_infill_extruder_nr",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true
                        },
                        "support_interface_line_width":
                        {
                            "label": "Support Interface Line Width",
                            "description": "Width of a single line of support roof or floor.",
                            "unit": "mm",
                            "default_value": 0.4,
                            "minimum_value": "0.001",
                            "minimum_value_warning": "0.1 + 0.4 * machine_nozzle_size",
                            "maximum_value_warning": "2 * machine_nozzle_size",
                            "type": "float",
                            "enabled": "support_enable and support_interface_enable",
                            "limit_to_extruder": "support_interface_extruder_nr",
                            "value": "line_width",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true,
                            "children":
                            {
                                "support_roof_line_width":
                                {
                                    "label": "Support Roof Line Width",
                                    "description": "Width of a single support roof line.",
                                    "unit": "mm",
                                    "default_value": 0.4,
                                    "minimum_value": "0.001",
                                    "minimum_value_warning": "0.4 * machine_nozzle_size",
                                    "maximum_value_warning": "2 * machine_nozzle_size",
                                    "type": "float",
                                    "enabled": "support_enable and support_roof_enable",
                                    "limit_to_extruder": "support_roof_extruder_nr",
                                    "value": "extruderValue(support_roof_extruder_nr, 'support_interface_line_width')",
                                    "settable_per_mesh": false,
                                    "settable_per_extruder": true
                                },
                                "support_bottom_line_width":
                                {
                                    "label": "Support Floor Line Width",
                                    "description": "Width of a single support floor line.",
                                    "unit": "mm",
                                    "default_value": 0.4,
                                    "minimum_value": "0.001",
                                    "minimum_value_warning": "0.4 * machine_nozzle_size",
                                    "maximum_value_warning": "2 * machine_nozzle_size",
                                    "type": "float",
                                    "enabled": "support_enable and support_bottom_enable",
                                    "limit_to_extruder": "support_bottom_extruder_nr",
                                    "value": "extruderValue(support_bottom_extruder_nr, 'support_interface_line_width')",
                                    "settable_per_mesh": false,
                                    "settable_per_extruder": true
                                }
                            }
                        },
                        "prime_tower_line_width":
                        {
                            "label": "Prime Tower Line Width",
                            "description": "Width of a single prime tower line.",
                            "type": "float",
                            "unit": "mm",
                            "enabled": "resolveOrValue('prime_tower_enable')",
                            "default_value": 0.4,
                            "value": "line_width",
                            "minimum_value": "0.001",
                            "minimum_value_warning": "0.1 + 0.4 * machine_nozzle_size",
                            "maximum_value_warning": "2 * machine_nozzle_size",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true
                        },
                        "initial_layer_line_width_factor":
                        {
                            "label": "Initial Layer Line Width",
                            "description": "Multiplier of the line width on the first layer. Increasing this could improve bed adhesion.",
                            "type": "float",
                            "unit": "%",
                            "default_value": 100.0,
                            "minimum_value": "0.001",
                            "maximum_value_warning": "150",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true
                        }
                    }
                }
            }
        },
        "shell":
        {
            "label": "Shell",
            "icon": "category_shell",
            "description": "Shell",
            "type": "category",
            "children":
            {
                "wall_extruder_nr":
                {
                    "label": "Wall Extruder",
                    "description": "The extruder train used for printing the walls. This is used in multi-extrusion.",
                    "type": "optional_extruder",
                    "default_value": "-1",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": true,
                    "settable_globally": true,
                    "enabled": "machine_extruder_count > 1",
                    "children": {
                        "wall_0_extruder_nr":
                        {
                            "label": "Outer Wall Extruder",
                            "description": "The extruder train used for printing the outer wall. This is used in multi-extrusion.",
                            "type": "optional_extruder",
                            "value": "wall_extruder_nr",
                            "default_value": "-1",
                            "settable_per_mesh": false,
                            "settable_per_extruder": false,
                            "settable_per_meshgroup": true,
                            "settable_globally": true,
                            "enabled": "machine_extruder_count > 1"
                        },
                        "wall_x_extruder_nr":
                        {
                            "label": "Inner Wall Extruder",
                            "description": "The extruder train used for printing the inner walls. This is used in multi-extrusion.",
                            "type": "optional_extruder",
                            "value": "wall_extruder_nr",
                            "default_value": "-1",
                            "settable_per_mesh": false,
                            "settable_per_extruder": false,
                            "settable_per_meshgroup": true,
                            "settable_globally": true,
                            "enabled": "machine_extruder_count > 1"
                        }
                    }
                },
                "wall_thickness":
                {
                    "label": "Wall Thickness",
                    "description": "The thickness of the walls in the horizontal direction. This value divided by the wall line width defines the number of walls.",
                    "unit": "mm",
                    "default_value": 0.8,
                    "minimum_value": "0",
                    "minimum_value_warning": "line_width",
                    "maximum_value_warning": "10 * line_width",
                    "type": "float",
                    "limit_to_extruder": "wall_x_extruder_nr",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "wall_line_count":
                        {
                            "label": "Wall Line Count",
                            "description": "The number of walls. When calculated by the wall thickness, this value is rounded to a whole number.",
                            "default_value": 2,
                            "minimum_value": "0",
                            "minimum_value_warning": "1",
                            "maximum_value_warning": "10",
                            "type": "int",
                            "value": "1 if magic_spiralize else max(1, round((wall_thickness - wall_line_width_0) / wall_line_width_x) + 1) if wall_thickness != 0 else 0",
                            "limit_to_extruder": "wall_x_extruder_nr",
                            "settable_per_mesh": true
                        }
                    }
                },
                "wall_0_wipe_dist":
                {
                    "label": "Outer Wall Wipe Distance",
                    "description": "Distance of a travel move inserted after the outer wall, to hide the Z seam better.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.2,
                    "value": "machine_nozzle_size / 2",
                    "minimum_value": "0",
                    "maximum_value_warning": "machine_nozzle_size * 2",
                    "limit_to_extruder": "wall_0_extruder_nr",
                    "settable_per_mesh": true
                },
                "roofing_extruder_nr":
                {
                    "label": "Top Surface Skin Extruder",
                    "description": "The extruder train used for printing the top most skin. This is used in multi-extrusion.",
                    "type": "optional_extruder",
                    "default_value": "-1",
                    "value": "top_bottom_extruder_nr",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": true,
                    "settable_globally": true,
                    "enabled": "machine_extruder_count > 1 and max(extruderValues('roofing_layer_count')) > 0 and max(extruderValues('top_layers')) > 0"
                },
                "roofing_layer_count":
                {
                    "label": "Top Surface Skin Layers",
                    "description": "The number of top most skin layers. Usually only one top most layer is sufficient to generate higher quality top surfaces.",
                    "default_value": 0,
                    "minimum_value": "0",
                    "maximum_value_warning": "top_layers - 1",
                    "type": "int",
                    "value": "0",
                    "limit_to_extruder": "roofing_extruder_nr",
                    "settable_per_mesh": true,
                    "enabled": "top_layers > 0"
                },
                "roofing_pattern":
                {
                    "label": "Top Surface Skin Pattern",
                    "description": "The pattern of the top most layers.",
                    "type": "enum",
                    "options":
                    {
                        "lines": "Lines",
                        "concentric": "Concentric",
                        "zigzag": "Zig Zag"
                    },
                    "default_value": "lines",
                    "value": "top_bottom_pattern",
                    "limit_to_extruder": "roofing_extruder_nr",
                    "settable_per_mesh": true,
                    "enabled": "roofing_layer_count > 0 and top_layers > 0"
                },
                "roofing_angles":
                {
                    "label": "Top Surface Skin Line Directions",
                    "description": "A list of integer line directions to use when the top surface skin layers use the lines or zig zag pattern. Elements from the list are used sequentially as the layers progress and when the end of the list is reached, it starts at the beginning again. The list items are separated by commas and the whole list is contained in square brackets. Default is an empty list which means use the traditional default angles (45 and 135 degrees).",
                    "type": "[int]",
                    "default_value": "[ ]",
                    "value": "skin_angles",
                    "enabled": "roofing_pattern != 'concentric' and roofing_layer_count > 0 and top_layers > 0",
                    "limit_to_extruder": "roofing_extruder_nr",
                    "settable_per_mesh": true
                },
                "top_bottom_extruder_nr":
                {
                    "label": "Top/Bottom Extruder",
                    "description": "The extruder train used for printing the top and bottom skin. This is used in multi-extrusion.",
                    "type": "optional_extruder",
                    "default_value": "-1",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": true,
                    "settable_globally": true,
                    "enabled": "machine_extruder_count > 1"
                },
                "top_bottom_thickness":
                {
                    "label": "Top/Bottom Thickness",
                    "description": "The thickness of the top/bottom layers in the print. This value divided by the layer height defines the number of top/bottom layers.",
                    "unit": "mm",
                    "default_value": 0.8,
                    "minimum_value": "0",
                    "minimum_value_warning": "0.6",
                    "maximum_value": "machine_height",
                    "type": "float",
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "top_thickness":
                        {
                            "label": "Top Thickness",
                            "description": "The thickness of the top layers in the print. This value divided by the layer height defines the number of top layers.",
                            "unit": "mm",
                            "default_value": 0.8,
                            "minimum_value": "0",
                            "minimum_value_warning": "0.2 + resolveOrValue('layer_height')",
                            "maximum_value": "machine_height",
                            "type": "float",
                            "value": "top_bottom_thickness",
                            "limit_to_extruder": "top_bottom_extruder_nr",
                            "settable_per_mesh": true,
                            "children":
                            {
                                "top_layers":
                                {
                                    "label": "Top Layers",
                                    "description": "The number of top layers. When calculated by the top thickness, this value is rounded to a whole number.",
                                    "default_value": 8,
                                    "minimum_value": "0",
                                    "maximum_value_warning": "100",
                                    "type": "int",
                                    "minimum_value_warning": "2",
                                    "value": "0 if infill_sparse_density == 100 else math.ceil(round(top_thickness / resolveOrValue('layer_height'), 4))",
                                    "limit_to_extruder": "top_bottom_extruder_nr",
                                    "settable_per_mesh": true
                                }
                            }
                        },
                        "bottom_thickness":
                        {
                            "label": "Bottom Thickness",
                            "description": "The thickness of the bottom layers in the print. This value divided by the layer height defines the number of bottom layers.",
                            "unit": "mm",
                            "default_value": 0.6,
                            "minimum_value": "0",
                            "minimum_value_warning": "0.2 + resolveOrValue('layer_height')",
                            "type": "float",
                            "value": "top_bottom_thickness",
                            "maximum_value": "machine_height",
                            "limit_to_extruder": "top_bottom_extruder_nr",
                            "settable_per_mesh": true,
                            "children":
                            {
                                "bottom_layers":
                                {
                                    "label": "Bottom Layers",
                                    "description": "The number of bottom layers. When calculated by the bottom thickness, this value is rounded to a whole number.",
                                    "minimum_value": "0",
                                    "minimum_value_warning": "2",
                                    "default_value": 6,
                                    "type": "int",
                                    "value": "999999 if infill_sparse_density == 100 else math.ceil(round(bottom_thickness / resolveOrValue('layer_height'), 4))",
                                    "limit_to_extruder": "top_bottom_extruder_nr",
                                    "settable_per_mesh": true
                                }
                            }
                        }
                    }
                },
                "top_bottom_pattern":
                {
                    "label": "Top/Bottom Pattern",
                    "description": "The pattern of the top/bottom layers.",
                    "type": "enum",
                    "options":
                    {
                        "lines": "Lines",
                        "concentric": "Concentric",
                        "zigzag": "Zig Zag"
                    },
                    "default_value": "lines",
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true
                },
                "top_bottom_pattern_0":
                {
                    "label": "Bottom Pattern Initial Layer",
                    "description": "The pattern on the bottom of the print on the first layer.",
                    "type": "enum",
                    "options":
                    {
                        "lines": "Lines",
                        "concentric": "Concentric",
                        "zigzag": "Zig Zag"
                    },
                    "default_value": "lines",
                    "value": "top_bottom_pattern",
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true
                },
                "skin_angles":
                {
                    "label": "Top/Bottom Line Directions",
                    "description": "A list of integer line directions to use when the top/bottom layers use the lines or zig zag pattern. Elements from the list are used sequentially as the layers progress and when the end of the list is reached, it starts at the beginning again. The list items are separated by commas and the whole list is contained in square brackets. Default is an empty list which means use the traditional default angles (45 and 135 degrees).",
                    "type": "[int]",
                    "default_value": "[ ]",
                    "enabled": "top_bottom_pattern != 'concentric'",
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true
                },
                "wall_0_inset":
                {
                    "label": "Outer Wall Inset",
                    "description": "Inset applied to the path of the outer wall. If the outer wall is smaller than the nozzle, and printed after the inner walls, use this offset to get the hole in the nozzle to overlap with the inner walls instead of the outside of the model.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.0,
                    "value": "(machine_nozzle_size - wall_line_width_0) / 2 if (wall_line_width_0 < machine_nozzle_size and not outer_inset_first) else 0",
                    "minimum_value_warning": "0",
                    "maximum_value_warning": "machine_nozzle_size",
                    "limit_to_extruder": "wall_0_extruder_nr",
                    "settable_per_mesh": true
                },
                "outer_inset_first":
                {
                    "label": "Outer Before Inner Walls",
                    "description": "Prints walls in order of outside to inside when enabled. This can help improve dimensional accuracy in X and Y when using a high viscosity plastic like ABS; however it can decrease outer surface print quality, especially on overhangs.",
                    "type": "bool",
                    "default_value": false,
                    "enabled": "wall_0_extruder_nr == wall_x_extruder_nr",
                    "settable_per_mesh": true
                },
                "alternate_extra_perimeter":
                {
                    "label": "Alternate Extra Wall",
                    "description": "Prints an extra wall at every other layer. This way infill gets caught between these extra walls, resulting in stronger prints.",
                    "type": "bool",
                    "default_value": false,
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "travel_compensate_overlapping_walls_enabled":
                {
                    "label": "Compensate Wall Overlaps",
                    "description": "Compensate the flow for parts of a wall being printed where there is already a wall in place.",
                    "type": "bool",
                    "default_value": true,
                    "limit_to_extruder": "wall_x_extruder_nr",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "travel_compensate_overlapping_walls_0_enabled":
                        {
                            "label": "Compensate Outer Wall Overlaps",
                            "description": "Compensate the flow for parts of an outer wall being printed where there is already a wall in place.",
                            "type": "bool",
                            "default_value": true,
                            "value": "travel_compensate_overlapping_walls_enabled",
                            "limit_to_extruder": "wall_0_extruder_nr",
                            "settable_per_mesh": true
                        },
                        "travel_compensate_overlapping_walls_x_enabled":
                        {
                            "label": "Compensate Inner Wall Overlaps",
                            "description": "Compensate the flow for parts of an inner wall being printed where there is already a wall in place.",
                            "type": "bool",
                            "default_value": true,
                            "value": "travel_compensate_overlapping_walls_enabled",
                            "limit_to_extruder": "wall_x_extruder_nr",
                            "settable_per_mesh": true
                        }
                    }
                },
                "fill_perimeter_gaps":
                {
                    "label": "Fill Gaps Between Walls",
                    "description": "Fills the gaps between walls where no walls fit.",
                    "type": "enum",
                    "options": {
                        "nowhere": "Nowhere",
                        "everywhere": "Everywhere"
                    },
                    "default_value": "everywhere",
                    "limit_to_extruder": "wall_0_extruder_nr",
                    "settable_per_mesh": true
                },
                "filter_out_tiny_gaps":
                {
                    "label": "Filter Out Tiny Gaps",
                    "description": "Filter out tiny gaps to reduce blobs on outside of model.",
                    "type": "bool",
                    "default_value": true,
                    "limit_to_extruder": "wall_0_extruder_nr",
                    "settable_per_mesh": true
                },
                "fill_outline_gaps": {
                    "label": "Print Thin Walls",
                    "description": "Print pieces of the model which are horizontally thinner than the nozzle size.",
                    "type": "bool",
                    "default_value": false,
                    "limit_to_extruder": "wall_0_extruder_nr",
                    "settable_per_mesh": true
                },
                "xy_offset":
                {
                    "label": "Horizontal Expansion",
                    "description": "Amount of offset applied to all polygons in each layer. Positive values can compensate for too big holes; negative values can compensate for too small holes.",
                    "unit": "mm",
                    "type": "float",
                    "minimum_value_warning": "-1",
                    "maximum_value_warning": "1",
                    "default_value": 0,
                    "limit_to_extruder": "wall_0_extruder_nr",
                    "settable_per_mesh": true
                },
                "xy_offset_layer_0":
                {
                    "label": "Initial Layer Horizontal Expansion",
                    "description": "Amount of offset applied to all polygons in the first layer. A negative value can compensate for squishing of the first layer known as \"elephant's foot\".",
                    "unit": "mm",
                    "type": "float",
                    "minimum_value_warning": "-1",
                    "maximum_value_warning": "1",
                    "default_value": 0,
                    "value": "xy_offset",
                    "limit_to_extruder": "wall_0_extruder_nr",
                    "settable_per_mesh": true
                },
                "z_seam_type":
                {
                    "label": "Z Seam Alignment",
                    "description": "Starting point of each path in a layer. When paths in consecutive layers start at the same point a vertical seam may show on the print. When aligning these near a user specified location, the seam is easiest to remove. When placed randomly the inaccuracies at the paths' start will be less noticeable. When taking the shortest path the print will be quicker.",
                    "type": "enum",
                    "options":
                    {
                        "back": "User Specified",
                        "shortest": "Shortest",
                        "random": "Random",
                        "sharpest_corner": "Sharpest Corner"
                    },
                    "default_value": "sharpest_corner",
                    "limit_to_extruder": "wall_0_extruder_nr",
                    "settable_per_mesh": true
                },
                "z_seam_x":
                {
                    "label": "Z Seam X",
                    "description": "The X coordinate of the position near where to start printing each part in a layer.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 100.0,
                    "value": "machine_width / 2",
                    "enabled": "z_seam_type == 'back'",
                    "limit_to_extruder": "wall_0_extruder_nr",
                    "settable_per_mesh": true
                },
                "z_seam_y":
                {
                    "label": "Z Seam Y",
                    "description": "The Y coordinate of the position near where to start printing each part in a layer.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 100.0,
                    "value": "machine_depth * 3",
                    "enabled": "z_seam_type == 'back'",
                    "limit_to_extruder": "wall_0_extruder_nr",
                    "settable_per_mesh": true
                },
                "z_seam_corner":
                {
                    "label": "Seam Corner Preference",
                    "description": "Control whether corners on the model outline influence the position of the seam. None means that corners have no influence on the seam position. Hide Seam makes the seam more likely to occur on an inside corner. Expose Seam makes the seam more likely to occur on an outside corner. Hide or Expose Seam makes the seam more likely to occur at an inside or outside corner.",
                    "type": "enum",
                    "options":
                    {
                        "z_seam_corner_none":  "None",
                        "z_seam_corner_inner": "Hide Seam",
                        "z_seam_corner_outer": "Expose Seam",
                        "z_seam_corner_any":   "Hide or Expose Seam"
                    },
                    "default_value": "z_seam_corner_inner",
                    "enabled": "z_seam_type != 'random'",
                    "limit_to_extruder": "wall_0_extruder_nr",
                    "settable_per_mesh": true
                },
                "z_seam_relative":
                {
                    "label": "Z Seam Relative",
                    "description": "When enabled, the z seam coordinates are relative to each part's centre. When disabled, the coordinates define an absolute position on the build plate.",
                    "unit": "mm",
                    "type": "bool",
                    "default_value": false,
                    "enabled": "z_seam_type == 'back'",
                    "limit_to_extruder": "wall_0_extruder_nr",
                    "settable_per_mesh": true
                },
                "skin_no_small_gaps_heuristic":
                {
                    "label": "Ignore Small Z Gaps",
                    "description": "When the model has small vertical gaps, about 5% extra computation time can be spent on generating top and bottom skin in these narrow spaces. In such case, disable the setting.",
                    "type": "bool",
                    "default_value": true,
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true
                },
                "skin_outline_count":
                {
                    "label": "Extra Skin Wall Count",
                    "description": "Replaces the outermost part of the top/bottom pattern with a number of concentric lines. Using one or two lines improves roofs that start on infill material.",
                    "default_value": 1,
                    "minimum_value": "0",
                    "maximum_value_warning": "10",
                    "type": "int",
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true
                },
                "ironing_enabled":
                {
                    "label": "Enable Ironing",
                    "description": "Go over the top surface one additional time, but without extruding material. This is meant to melt the plastic on top further, creating a smoother surface.",
                    "type": "bool",
                    "default_value": false,
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true
                },
                "ironing_only_highest_layer":
                {
                    "label": "Iron Only Highest Layer",
                    "description": "Only perform ironing on the very last layer of the mesh. This saves time if the lower layers don't need a smooth surface finish.",
                    "type": "bool",
                    "default_value": false,
                    "enabled": "ironing_enabled",
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true
                },
                "ironing_pattern":
                {
                    "label": "Ironing Pattern",
                    "description": "The pattern to use for ironing top surfaces.",
                    "type": "enum",
                    "options":
                    {
                        "concentric": "Concentric",
                        "zigzag": "Zig Zag"
                    },
                    "default_value": "zigzag",
                    "enabled": "ironing_enabled",
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true
                },
                "ironing_line_spacing":
                {
                    "label": "Ironing Line Spacing",
                    "description": "The distance between the lines of ironing.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 0.1,
                    "minimum_value": "0.001",
                    "maximum_value_warning": "machine_nozzle_tip_outer_diameter",
                    "enabled": "ironing_enabled",
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true
                },
                "ironing_flow":
                {
                    "label": "Ironing Flow",
                    "description": "The amount of material, relative to a normal skin line, to extrude during ironing. Keeping the nozzle filled helps filling some of the crevices of the top surface, but too much results in overextrusion and blips on the side of the surface.",
                    "type": "float",
                    "unit": "%",
                    "default_value": 10.0,
                    "minimum_value": "0",
                    "maximum_value_warning": "50",
                    "enabled": "ironing_enabled",
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true
                },
                "ironing_inset":
                {
                    "label": "Ironing Inset",
                    "description": "A distance to keep from the edges of the model. Ironing all the way to the edge of the mesh may result in a jagged edge on your print.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 0.35,
                    "value": "wall_line_width_0 / 2",
                    "minimum_value_warning": "0",
                    "maximum_value_warning": "wall_line_width_0",
                    "enabled": "ironing_enabled",
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true
                },
                "speed_ironing":
                {
                    "label": "Ironing Speed",
                    "description": "The speed at which to pass over the top surface.",
                    "type": "float",
                    "unit": "mm/s",
                    "default_value": 20.0,
                    "value": "speed_topbottom * 20 / 30",
                    "minimum_value": "0.001",
                    "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                    "maximum_value_warning": "100",
                    "enabled": "ironing_enabled",
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true
                },
                "acceleration_ironing":
                {
                    "label": "Ironing Acceleration",
                    "description": "The acceleration with which ironing is performed.",
                    "unit": "mm/s²",
                    "type": "float",
                    "minimum_value": "0.1",
                    "minimum_value_warning": "100",
                    "maximum_value_warning": "10000",
                    "default_value": 3000,
                    "value": "acceleration_topbottom",
                    "enabled": "resolveOrValue('acceleration_enabled') and ironing_enabled",
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true
                },
                "jerk_ironing":
                {
                    "label": "Ironing Jerk",
                    "description": "The maximum instantaneous velocity change while performing ironing.",
                    "unit": "mm/s",
                    "type": "float",
                    "minimum_value": "0",
                    "maximum_value_warning": "50",
                    "default_value": 20,
                    "value": "jerk_topbottom",
                    "enabled": "resolveOrValue('jerk_enabled') and ironing_enabled",
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true
                }
            }
        },
        "infill":
        {
            "label": "Infill",
            "icon": "category_infill",
            "description": "Infill",
            "type": "category",
            "children":
            {
                "infill_extruder_nr":
                {
                    "label": "Infill Extruder",
                    "description": "The extruder train used for printing infill. This is used in multi-extrusion.",
                    "type": "optional_extruder",
                    "default_value": "-1",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": true,
                    "settable_globally": true,
                    "enabled": "machine_extruder_count > 1"
                },
                "infill_sparse_density":
                {
                    "label": "Infill Density",
                    "description": "Adjusts the density of infill of the print.",
                    "unit": "%",
                    "type": "float",
                    "default_value": 20,
                    "minimum_value": "0",
                    "maximum_value_warning": "100",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "infill_line_distance":
                        {
                            "label": "Infill Line Distance",
                            "description": "Distance between the printed infill lines. This setting is calculated by the infill density and the infill line width.",
                            "unit": "mm",
                            "type": "float",
                            "default_value": 2,
                            "minimum_value": "0",
                            "minimum_value_warning": "infill_line_width",
                            "value": "0 if infill_sparse_density == 0 else (infill_line_width * 100) / infill_sparse_density * (2 if infill_pattern == 'grid' else (3 if infill_pattern == 'triangles' or infill_pattern == 'trihexagon' or infill_pattern == 'cubic' or infill_pattern == 'cubicsubdiv' else (2 if infill_pattern == 'tetrahedral' or infill_pattern == 'quarter_cubic' else (1 if infill_pattern == 'cross' or infill_pattern == 'cross_3d' else 1))))",
                            "limit_to_extruder": "infill_extruder_nr",
                            "settable_per_mesh": true
                        }
                    }
                },
                "infill_pattern":
                {
                    "label": "Infill Pattern",
                    "description": "The pattern of the infill material of the print. The line and zig zag infill swap direction on alternate layers, reducing material cost. The grid, triangle, tri-hexagon, cubic, octet, quarter cubic, cross and concentric patterns are fully printed every layer. Cubic, quarter cubic and octet infill change with every layer to provide a more equal distribution of strength over each direction.",
                    "type": "enum",
                    "options":
                    {
                        "grid": "Grid",
                        "lines": "Lines",
                        "triangles": "Triangles",
                        "trihexagon": "Tri-Hexagon",
                        "cubic": "Cubic",
                        "cubicsubdiv": "Cubic Subdivision",
                        "tetrahedral": "Octet",
                        "quarter_cubic": "Quarter Cubic",
                        "concentric": "Concentric",
                        "concentric_3d": "Concentric 3D",
                        "zigzag": "Zig Zag",
                        "cross": "Cross",
                        "cross_3d": "Cross 3D"
                    },
                    "default_value": "grid",
                    "enabled": "infill_sparse_density > 0",
                    "value": "'lines' if infill_sparse_density > 25 else 'grid'",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "zig_zaggify_infill":
                {
                    "label": "Connect Infill Lines",
                    "description": "Connect the ends where the infill pattern meets the inner wall using a line which follows the shape of the inner wall. Enabling this setting can make the infill adhere to the walls better and reduce the effects of infill on the quality of vertical surfaces. Disabling this setting reduces the amount of material used.",
                    "type": "bool",
                    "default_value": true,
                    "enabled": "infill_pattern == 'cross' or infill_pattern == 'cross_3d'",
                    "settable_per_mesh": true
                },
                "infill_angles":
                {
                    "label": "Infill Line Directions",
                    "description": "A list of integer line directions to use. Elements from the list are used sequentially as the layers progress and when the end of the list is reached, it starts at the beginning again. The list items are separated by commas and the whole list is contained in square brackets. Default is an empty list which means use the traditional default angles (45 and 135 degrees for the lines and zig zag patterns and 45 degrees for all other patterns).",
                    "type": "[int]",
                    "default_value": "[ ]",
                    "enabled": "infill_pattern != 'concentric' and infill_pattern != 'concentric_3d' and infill_pattern != 'cubicsubdiv' and infill_sparse_density > 0",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "infill_offset_x":
                {
                    "label": "Infill X Offset",
                    "description": "The infill pattern is moved this distance along the X axis.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0,
                    "enabled": "infill_pattern == 'grid' or infill_pattern == 'lines' or infill_pattern == 'triangles' or infill_pattern == 'cubic' or infill_pattern == 'tetrahedral' or infill_pattern == 'quarter_cubic' or infill_pattern == 'zigzag'",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "infill_offset_y":
                {
                    "label": "Infill Y Offset",
                    "description": "The infill pattern is moved this distance along the Y axis.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0,
                    "enabled": "infill_pattern == 'grid' or infill_pattern == 'lines' or infill_pattern == 'triangles' or infill_pattern == 'cubic' or infill_pattern == 'tetrahedral' or infill_pattern == 'quarter_cubic' or infill_pattern == 'zigzag'",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "sub_div_rad_add":
                {
                    "label": "Cubic Subdivision Shell",
                    "description": "An addition to the radius from the center of each cube to check for the boundary of the model, as to decide whether this cube should be subdivided. Larger values lead to a thicker shell of small cubes near the boundary of the model.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.4,
                    "value": "wall_line_width_x",
                    "minimum_value_warning": "-1 * infill_line_distance",
                    "maximum_value_warning": "5 * infill_line_distance",
                    "enabled": "infill_sparse_density > 0 and infill_pattern == 'cubicsubdiv'",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "infill_overlap":
                {
                    "label": "Infill Overlap Percentage",
                    "description": "The amount of overlap between the infill and the walls. A slight overlap allows the walls to connect firmly to the infill.",
                    "unit": "%",
                    "type": "float",
                    "default_value": 10,
                    "value": "10 if infill_sparse_density < 95 and infill_pattern != 'concentric' else 0",
                    "minimum_value_warning": "-50",
                    "maximum_value_warning": "100",
                    "enabled": "infill_sparse_density > 0 and infill_pattern != 'concentric'",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "infill_overlap_mm":
                        {
                            "label": "Infill Overlap",
                            "description": "The amount of overlap between the infill and the walls. A slight overlap allows the walls to connect firmly to the infill.",
                            "unit": "mm",
                            "type": "float",
                            "default_value": 0.04,
                            "minimum_value_warning": "-0.5 * machine_nozzle_size",
                            "maximum_value_warning": "machine_nozzle_size",
                            "value": "0.5 * ( infill_line_width + (wall_line_width_x if wall_line_count > 1 else wall_line_width_0) ) * infill_overlap / 100 if infill_sparse_density < 95 and infill_pattern != 'concentric' else 0",
                            "enabled": "infill_sparse_density > 0 and infill_pattern != 'concentric'",
                            "settable_per_mesh": true
                        }
                    }
                },
                "skin_overlap":
                {
                    "label": "Skin Overlap Percentage",
                    "description": "The amount of overlap between the skin and the walls as a percentage of the line width. A slight overlap allows the walls to connect firmly to the skin. This is a percentage of the average line widths of the skin lines and the innermost wall.",
                    "unit": "%",
                    "type": "float",
                    "default_value": 5,
                    "minimum_value_warning": "-50",
                    "maximum_value_warning": "100",
                    "value": "5 if top_bottom_pattern != 'concentric' else 0",
                    "enabled": "top_bottom_pattern != 'concentric'",
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "skin_overlap_mm":
                        {
                            "label": "Skin Overlap",
                            "description": "The amount of overlap between the skin and the walls. A slight overlap allows the walls to connect firmly to the skin.",
                            "unit": "mm",
                            "type": "float",
                            "default_value": 0.02,
                            "minimum_value_warning": "-0.5 * machine_nozzle_size",
                            "maximum_value_warning": "machine_nozzle_size",
                            "value": "0.5 * ( skin_line_width + (wall_line_width_x if wall_line_count > 1 else wall_line_width_0) ) * skin_overlap / 100 if top_bottom_pattern != 'concentric' else 0",
                            "enabled": "top_bottom_pattern != 'concentric'",
                            "settable_per_mesh": true
                        }
                    }
                },
                "infill_wipe_dist":
                {
                    "label": "Infill Wipe Distance",
                    "description": "Distance of a travel move inserted after every infill line, to make the infill stick to the walls better. This option is similar to infill overlap, but without extrusion and only on one end of the infill line.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.04,
                    "value": "wall_line_width_0 / 4 if wall_line_count == 1 else wall_line_width_x / 4",
                    "minimum_value_warning": "0",
                    "maximum_value_warning": "machine_nozzle_size",
                    "enabled": "infill_sparse_density > 0",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "infill_sparse_thickness":
                {
                    "label": "Infill Layer Thickness",
                    "description": "The thickness per layer of infill material. This value should always be a multiple of the layer height and is otherwise rounded.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.1,
                    "minimum_value": "resolveOrValue('layer_height')",
                    "maximum_value_warning": "0.75 * machine_nozzle_size",
                    "maximum_value": "resolveOrValue('layer_height') * (1.45 if spaghetti_infill_enabled else 8)",
                    "value": "resolveOrValue('layer_height')",
                    "enabled": "infill_sparse_density > 0 and not spaghetti_infill_enabled",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "gradual_infill_steps":
                {
                    "label": "Gradual Infill Steps",
                    "description": "Number of times to reduce the infill density by half when getting further below top surfaces. Areas which are closer to top surfaces get a higher density, up to the Infill Density.",
                    "default_value": 0,
                    "type": "int",
                    "minimum_value": "0",
                    "maximum_value_warning": "1 if (infill_pattern == 'cross' or infill_pattern == 'cross_3d' or support_pattern == 'concentric' or support_pattern == 'concentric_3d') else 5",
                    "maximum_value": "0 if spaghetti_infill_enabled else (999999 if infill_line_distance == 0 else (20 - math.log(infill_line_distance) / math.log(2)))",
                    "enabled": "infill_sparse_density > 0 and infill_pattern != 'cubicsubdiv' and not spaghetti_infill_enabled",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "gradual_infill_step_height":
                {
                    "label": "Gradual Infill Step Height",
                    "description": "The height of infill of a given density before switching to half the density.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 1.5,
                    "minimum_value": "0.0001",
                    "minimum_value_warning": "3 * resolveOrValue('layer_height')",
                    "enabled": "infill_sparse_density > 0 and gradual_infill_steps > 0 and infill_pattern != 'cubicsubdiv'",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "infill_before_walls":
                {
                    "label": "Infill Before Walls",
                    "description": "Print the infill before printing the walls. Printing the walls first may lead to more accurate walls, but overhangs print worse. Printing the infill first leads to sturdier walls, but the infill pattern might sometimes show through the surface.",
                    "type": "bool",
                    "default_value": true,
                    "enabled": "infill_sparse_density > 0 and wall_x_extruder_nr == infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "min_infill_area":
                {
                    "label": "Minimum Infill Area",
                    "description": "Don't generate areas of infill smaller than this (use skin instead).",
                    "unit": "mm²",
                    "type": "float",
                    "minimum_value": "0",
                    "default_value": 0,
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "skin_preshrink":
                {
                    "label": "Skin Removal Width",
                    "description": "The largest width of skin areas which are to be removed. Every skin area smaller than this value will disappear. This can help in limiting the amount of time and material spent on printing top/bottom skin at slanted surfaces in the model.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0,
                    "value": "wall_line_width_0 + (wall_line_count - 1) * wall_line_width_x",
                    "minimum_value": "0",
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "top_skin_preshrink":
                        {
                            "label": "Top Skin Removal Width",
                            "description": "The largest width of top skin areas which are to be removed. Every skin area smaller than this value will disappear. This can help in limiting the amount of time and material spent on printing top skin at slanted surfaces in the model.",
                            "unit": "mm",
                            "type": "float",
                            "default_value": 0,
                            "value": "skin_preshrink",
                            "minimum_value": "0",
                            "limit_to_extruder": "top_bottom_extruder_nr",
                            "settable_per_mesh": true
                        },
                        "bottom_skin_preshrink":
                        {
                            "label": "Bottom Skin Removal Width",
                            "description": "The largest width of bottom skin areas which are to be removed. Every skin area smaller than this value will disappear. This can help in limiting the amount of time and material spent on printing bottom skin at slanted surfaces in the model.",
                            "unit": "mm",
                            "type": "float",
                            "default_value": 0,
                            "value": "skin_preshrink",
                            "minimum_value": "0",
                            "limit_to_extruder": "top_bottom_extruder_nr",
                            "settable_per_mesh": true
                        }
                    }
                },
                "expand_skins_expand_distance":
                {
                    "label": "Skin Expand Distance",
                    "description": "The distance the skins are expanded into the infill. Higher values makes the skin attach better to the infill pattern and makes the walls on neighboring layers adhere better to the skin. Lower values save amount of material used.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 2.8,
                    "value": "wall_line_width_0 + (wall_line_count - 1) * wall_line_width_x",
                    "minimum_value": "-skin_preshrink",
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "top_skin_expand_distance":
                        {
                            "label": "Top Skin Expand Distance",
                            "description": "The distance the top skins are expanded into the infill. Higher values makes the skin attach better to the infill pattern and makes the walls on the layer above adhere better to the skin. Lower values save amount of material used.",
                            "unit": "mm",
                            "type": "float",
                            "default_value": 2.8,
                            "value": "expand_skins_expand_distance",
                            "minimum_value": "-top_skin_preshrink",
                            "limit_to_extruder": "top_bottom_extruder_nr",
                            "settable_per_mesh": true
                        },
                        "bottom_skin_expand_distance":
                        {
                            "label": "Bottom Skin Expand Distance",
                            "description": "The distance the bottom skins are expanded into the infill. Higher values makes the skin attach better to the infill pattern and makes the skin adhere better to the walls on the layer below. Lower values save amount of material used.",
                            "unit": "mm",
                            "type": "float",
                            "default_value": 2.8,
                            "value": "expand_skins_expand_distance",
                            "minimum_value": "-bottom_skin_preshrink",
                            "limit_to_extruder": "top_bottom_extruder_nr",
                            "settable_per_mesh": true
                        }
                    }
                },
                "max_skin_angle_for_expansion":
                {
                    "label": "Maximum Skin Angle for Expansion",
                    "description": "Top and/or bottom surfaces of your object with an angle larger than this setting, won't have their top/bottom skin expanded. This avoids expanding the narrow skin areas that are created when the model surface has a near vertical slope. An angle of 0° is horizontal, while an angle of 90° is vertical.",
                    "unit": "°",
                    "type": "float",
                    "minimum_value": "0",
                    "minimum_value_warning": "2",
                    "maximum_value": "90",
                    "default_value": 90,
                    "enabled": "top_skin_expand_distance > 0 or bottom_skin_expand_distance > 0",
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "min_skin_width_for_expansion":
                        {
                            "label": "Minimum Skin Width for Expansion",
                            "description": "Skin areas narrower than this are not expanded. This avoids expanding the narrow skin areas that are created when the model surface has a slope close to the vertical.",
                            "unit": "mm",
                            "type": "float",
                            "default_value": 2.24,
                            "value": "top_layers * layer_height / math.tan(math.radians(max_skin_angle_for_expansion))",
                            "minimum_value": "0",
                            "enabled": "top_skin_expand_distance > 0 or bottom_skin_expand_distance > 0",
                            "limit_to_extruder": "top_bottom_extruder_nr",
                            "settable_per_mesh": true
                        }
                    }
                }
            }
        },
        "material":
        {
            "label": "Material",
            "icon": "category_material",
            "description": "Material",
            "type": "category",
            "children":
            {
                "material_flow_dependent_temperature":
                {
                    "label": "Auto Temperature",
                    "description": "Change the temperature for each layer automatically with the average flow speed of that layer.",
                    "type": "bool",
                    "default_value": false,
                    "enabled": "machine_nozzle_temp_enabled and False",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "default_material_print_temperature":
                {
                    "label": "Default Printing Temperature",
                    "description": "The default temperature used for printing. This should be the \"base\" temperature of a material. All other print temperatures should use offsets based on this value",
                    "unit": "°C",
                    "type": "float",
                    "default_value": 210,
                    "minimum_value_warning": "0",
                    "maximum_value_warning": "285",
                    "enabled": "machine_nozzle_temp_enabled",
                    "settable_per_extruder": true,
                    "settable_per_mesh": false,
                    "minimum_value": "-273.15"
                },
                "material_print_temperature":
                {
                    "label": "Printing Temperature",
                    "description": "The temperature used for printing.",
                    "unit": "°C",
                    "type": "float",
                    "default_value": 210,
                    "value": "default_material_print_temperature",
                    "minimum_value": "-273.15",
                    "minimum_value_warning": "0",
                    "maximum_value_warning": "285",
                    "enabled": "machine_nozzle_temp_enabled and not (material_flow_dependent_temperature)",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "material_print_temperature_layer_0":
                {
                    "label": "Printing Temperature Initial Layer",
                    "description": "The temperature used for printing the first layer. Set at 0 to disable special handling of the initial layer.",
                    "unit": "°C",
                    "type": "float",
                    "default_value": 215,
                    "value": "material_print_temperature",
                    "minimum_value": "-273.15",
                    "minimum_value_warning": "0",
                    "maximum_value_warning": "285",
                    "enabled": "machine_nozzle_temp_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "material_initial_print_temperature":
                {
                    "label": "Initial Printing Temperature",
                    "description": "The minimal temperature while heating up to the Printing Temperature at which printing can already start.",
                    "unit": "°C",
                    "type": "float",
                    "default_value": 200,
                    "value": "max(-273.15, material_print_temperature - 10)",
                    "minimum_value": "-273.15",
                    "minimum_value_warning": "material_standby_temperature",
                    "maximum_value_warning": "material_print_temperature",
                    "enabled": "machine_nozzle_temp_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "material_final_print_temperature":
                {
                    "label": "Final Printing Temperature",
                    "description": "The temperature to which to already start cooling down just before the end of printing.",
                    "unit": "°C",
                    "type": "float",
                    "default_value": 195,
                    "value": "max(-273.15, material_print_temperature - 15)",
                    "minimum_value": "-273.15",
                    "minimum_value_warning": "material_standby_temperature",
                    "maximum_value_warning": "material_print_temperature",
                    "enabled": "machine_nozzle_temp_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "material_flow_temp_graph":
                {
                    "label": "Flow Temperature Graph",
                    "description": "Data linking material flow (in mm3 per second) to temperature (degrees Celsius).",
                    "unit": "[[mm³,°C]]",
                    "type": "str",
                    "default_value": "[[3.5,200],[7.0,240]]",
                    "enabled": "False and machine_nozzle_temp_enabled and material_flow_dependent_temperature",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "material_extrusion_cool_down_speed":
                {
                    "label": "Extrusion Cool Down Speed Modifier",
                    "description": "The extra speed by which the nozzle cools while extruding. The same value is used to signify the heat up speed lost when heating up while extruding.",
                    "unit": "°C/s",
                    "type": "float",
                    "default_value": 0.7,
                    "minimum_value": "0",
                    "maximum_value_warning": "10.0",
                    "maximum_value": "machine_nozzle_heat_up_speed",
                    "enabled": "material_flow_dependent_temperature or (machine_extruder_count > 1 and material_final_print_temperature != material_print_temperature)",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "material_bed_temperature":
                {
                    "label": "Build Plate Temperature",
                    "description": "The temperature used for the heated build plate. If this is 0, the bed temperature will not be adjusted.",
                    "unit": "°C",
                    "type": "float",
                    "resolve": "max(extruderValues('material_bed_temperature'))",
                    "default_value": 60,
                    "minimum_value": "-273.15",
                    "minimum_value_warning": "0",
                    "maximum_value_warning": "130",
                    "enabled": "machine_heated_bed and machine_gcode_flavor != \"UltiGCode\"",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "material_bed_temperature_layer_0":
                {
                    "label": "Build Plate Temperature Initial Layer",
                    "description": "The temperature used for the heated build plate at the first layer.",
                    "unit": "°C",
                    "type": "float",
                    "resolve": "max(extruderValues('material_bed_temperature_layer_0'))",
                    "default_value": 60,
                    "value": "resolveOrValue('material_bed_temperature')",
                    "minimum_value": "-273.15",
                    "minimum_value_warning": "max(extruderValues('material_bed_temperature'))",
                    "maximum_value_warning": "130",
                    "enabled": "machine_heated_bed and machine_gcode_flavor != \"UltiGCode\"",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "material_diameter":
                {
                    "label": "Diameter",
                    "description": "Adjusts the diameter of the filament used. Match this value with the diameter of the used filament.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 2.85,
                    "minimum_value": "0.0001",
                    "minimum_value_warning": "0.4",
                    "maximum_value_warning": "3.5",
                    "enabled": "machine_gcode_flavor != \"UltiGCode\"",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "material_adhesion_tendency":
                {
                    "label": "Adhesion Tendency",
                    "description": "Surface adhesion tendency.",
                    "type": "int",
                    "default_value": 10,
                    "minimum_value": "0",
                    "maximum_value": "10",
                    "enabled": false,
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "material_surface_energy":
                {
                    "label": "Surface Energy",
                    "description": "Surface energy.",
                    "unit": "%",
                    "type": "int",
                    "default_value": 100,
                    "minimum_value": "0",
                    "maximum_value": "100",
                    "enabled": false,
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "material_flow":
                {
                    "label": "Flow",
                    "description": "Flow compensation: the amount of material extruded is multiplied by this value.",
                    "unit": "%",
                    "default_value": 100,
                    "type": "float",
                    "minimum_value": "5",
                    "minimum_value_warning": "50",
                    "maximum_value_warning": "150",
                    "enabled": "machine_gcode_flavor != \"UltiGCode\"",
                    "settable_per_mesh": true
                },
                "retraction_enable":
                {
                    "label": "Enable Retraction",
                    "description": "Retract the filament when the nozzle is moving over a non-printed area. ",
                    "type": "bool",
                    "default_value": true,
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "retract_at_layer_change":{
                    "label": "Retract at Layer Change",
                    "description": "Retract the filament when the nozzle is moving to the next layer.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "retraction_amount":
                {
                    "label": "Retraction Distance",
                    "description": "The length of material retracted during a retraction move.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 6.5,
                    "minimum_value_warning": "-0.0001",
                    "maximum_value_warning": "10.0",
                    "enabled": "retraction_enable and machine_gcode_flavor != \"UltiGCode\"",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "retraction_speed":
                {
                    "label": "Retraction Speed",
                    "description": "The speed at which the filament is retracted and primed during a retraction move.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 25,
                    "minimum_value": "0.0001",
                    "minimum_value_warning": "1",
                    "maximum_value": "machine_max_feedrate_e",
                    "maximum_value_warning": "70",
                    "enabled": "retraction_enable and machine_gcode_flavor != \"UltiGCode\"",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "children":
                    {
                        "retraction_retract_speed":
                        {
                            "label": "Retraction Retract Speed",
                            "description": "The speed at which the filament is retracted during a retraction move.",
                            "unit": "mm/s",
                            "type": "float",
                            "default_value": 25,
                            "minimum_value": "0.0001",
                            "maximum_value": "machine_max_feedrate_e",
                            "minimum_value_warning": "1",
                            "maximum_value_warning": "70",
                            "enabled": "retraction_enable and machine_gcode_flavor != \"UltiGCode\"",
                            "value": "retraction_speed",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true
                        },
                        "retraction_prime_speed":
                        {
                            "label": "Retraction Prime Speed",
                            "description": "The speed at which the filament is primed during a retraction move.",
                            "unit": "mm/s",
                            "type": "float",
                            "default_value": 25,
                            "minimum_value": "0.0001",
                            "maximum_value": "machine_max_feedrate_e",
                            "minimum_value_warning": "1",
                            "maximum_value_warning": "70",
                            "enabled": "retraction_enable and machine_gcode_flavor != \"UltiGCode\"",
                            "value": "retraction_speed",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true
                        }
                    }
                },
                "retraction_extra_prime_amount":
                {
                    "label": "Retraction Extra Prime Amount",
                    "description": "Some material can ooze away during a travel move, which can be compensated for here.",
                    "unit": "mm³",
                    "type": "float",
                    "default_value": 0,
                    "minimum_value_warning": "-0.0001",
                    "maximum_value_warning": "5.0",
                    "enabled": "retraction_enable",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "retraction_min_travel":
                {
                    "label": "Retraction Minimum Travel",
                    "description": "The minimum distance of travel needed for a retraction to happen at all. This helps to get fewer retractions in a small area.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 1.5,
                    "value": "line_width * 2",
                    "minimum_value": "0",
                    "maximum_value_warning": "10",
                    "enabled": "retraction_enable",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "retraction_count_max":
                {
                    "label": "Maximum Retraction Count",
                    "description": "This setting limits the number of retractions occurring within the minimum extrusion distance window. Further retractions within this window will be ignored. This avoids retracting repeatedly on the same piece of filament, as that can flatten the filament and cause grinding issues.",
                    "default_value": 90,
                    "minimum_value": "0",
                    "maximum_value_warning": "100",
                    "type": "int",
                    "enabled": "retraction_enable",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "retraction_extrusion_window":
                {
                    "label": "Minimum Extrusion Distance Window",
                    "description": "The window in which the maximum retraction count is enforced. This value should be approximately the same as the retraction distance, so that effectively the number of times a retraction passes the same patch of material is limited.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 4.5,
                    "minimum_value": "0",
                    "maximum_value_warning": "retraction_amount * 2",
                    "value": "retraction_amount",
                    "enabled": "retraction_enable",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "material_standby_temperature":
                {
                    "label": "Standby Temperature",
                    "description": "The temperature of the nozzle when another nozzle is currently used for printing.",
                    "type": "float",
                    "unit": "°C",
                    "default_value": 150,
                    "minimum_value": "-273.15",
                    "minimum_value_warning": "0",
                    "maximum_value_warning": "260",
                    "enabled": "machine_extruder_count > 1 and machine_nozzle_temp_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "switch_extruder_retraction_amount":
                {
                    "label": "Nozzle Switch Retraction Distance",
                    "description": "The amount of retraction: Set at 0 for no retraction at all. This should generally be the same as the length of the heat zone.",
                    "type": "float",
                    "unit": "mm",
                    "enabled": "retraction_enable",
                    "default_value": 20,
                    "value": "machine_heat_zone_length",
                    "minimum_value_warning": "0",
                    "maximum_value_warning": "100",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "switch_extruder_retraction_speeds":
                {
                    "label": "Nozzle Switch Retraction Speed",
                    "description": "The speed at which the filament is retracted. A higher retraction speed works better, but a very high retraction speed can lead to filament grinding.",
                    "type": "float",
                    "unit": "mm/s",
                    "enabled": "retraction_enable",
                    "default_value": 20,
                    "minimum_value": "0.1",
                    "minimum_value_warning": "1",
                    "maximum_value": "machine_max_feedrate_e",
                    "maximum_value_warning": "70",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "children":
                    {
                        "switch_extruder_retraction_speed":
                        {
                            "label": "Nozzle Switch Retract Speed",
                            "description": "The speed at which the filament is retracted during a nozzle switch retract.",
                            "type": "float",
                            "unit": "mm/s",
                            "enabled": "retraction_enable",
                            "default_value": 20,
                            "value": "switch_extruder_retraction_speeds",
                            "minimum_value": "0.1",
                            "minimum_value_warning": "1",
                            "maximum_value": "machine_max_feedrate_e",
                            "maximum_value_warning": "70",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true
                        },
                        "switch_extruder_prime_speed":
                        {
                            "label": "Nozzle Switch Prime Speed",
                            "description": "The speed at which the filament is pushed back after a nozzle switch retraction.",
                            "type": "float",
                            "unit": "mm/s",
                            "enabled": "retraction_enable",
                            "default_value": 20,
                            "value": "switch_extruder_retraction_speeds",
                            "minimum_value": "0.1",
                            "minimum_value_warning": "1",
                            "maximum_value": "machine_max_feedrate_e",
                            "maximum_value_warning": "70",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true
                        }
                    }
                }
            }
        },
        "speed":
        {
            "label": "Speed",
            "icon": "category_speed",
            "description": "Speed",
            "type": "category",
            "children":
            {
                "speed_print":
                {
                    "label": "Print Speed",
                    "description": "The speed at which printing happens.",
                    "unit": "mm/s",
                    "type": "float",
                    "minimum_value": "0.1",
                    "maximum_value_warning": "150",
                    "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                    "default_value": 60,
                    "settable_per_mesh": true,
                    "children":
                    {
                        "speed_infill":
                        {
                            "label": "Infill Speed",
                            "description": "The speed at which infill is printed.",
                            "unit": "mm/s",
                            "type": "float",
                            "minimum_value": "0.1",
                            "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                            "maximum_value_warning": "150",
                            "default_value": 60,
                            "value": "speed_print",
                            "enabled": "infill_sparse_density > 0",
                            "limit_to_extruder": "infill_extruder_nr",
                            "settable_per_mesh": true
                        },
                        "speed_wall":
                        {
                            "label": "Wall Speed",
                            "description": "The speed at which the walls are printed.",
                            "unit": "mm/s",
                            "type": "float",
                            "minimum_value": "0.1",
                            "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                            "maximum_value_warning": "150",
                            "default_value": 30,
                            "value": "speed_print / 2",
                            "settable_per_mesh": true,
                            "children":
                            {
                                "speed_wall_0":
                                {
                                    "label": "Outer Wall Speed",
                                    "description": "The speed at which the outermost walls are printed. Printing the outer wall at a lower speed improves the final skin quality. However, having a large difference between the inner wall speed and the outer wall speed will affect quality in a negative way.",
                                    "unit": "mm/s",
                                    "type": "float",
                                    "minimum_value": "0.1",
                                    "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                                    "maximum_value_warning": "150",
                                    "default_value": 30,
                                    "value": "speed_wall",
                                    "limit_to_extruder": "wall_0_extruder_nr",
                                    "settable_per_mesh": true
                                },
                                "speed_wall_x":
                                {
                                    "label": "Inner Wall Speed",
                                    "description": "The speed at which all inner walls are printed. Printing the inner wall faster than the outer wall will reduce printing time. It works well to set this in between the outer wall speed and the infill speed.",
                                    "unit": "mm/s",
                                    "type": "float",
                                    "minimum_value": "0.1",
                                    "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                                    "maximum_value_warning": "150",
                                    "default_value": 60,
                                    "value": "speed_wall * 2",
                                    "limit_to_extruder": "wall_x_extruder_nr",
                                    "settable_per_mesh": true
                                }
                            }
                        },
                        "speed_roofing":
                        {
                            "label": "Top Surface Skin Speed",
                            "description": "The speed at which top surface skin layers are printed.",
                            "unit": "mm/s",
                            "type": "float",
                            "minimum_value": "0.1",
                            "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                            "maximum_value_warning": "150",
                            "default_value": 25,
                            "value": "speed_topbottom",
                            "limit_to_extruder": "roofing_extruder_nr",
                            "settable_per_mesh": true,
                            "enabled": "roofing_layer_count > 0 and top_layers > 0"
                        },
                        "speed_topbottom":
                        {
                            "label": "Top/Bottom Speed",
                            "description": "The speed at which top/bottom layers are printed.",
                            "unit": "mm/s",
                            "type": "float",
                            "minimum_value": "0.1",
                            "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                            "maximum_value_warning": "150",
                            "default_value": 30,
                            "value": "speed_print / 2",
                            "limit_to_extruder": "top_bottom_extruder_nr",
                            "settable_per_mesh": true
                        },
                        "speed_support":
                        {
                            "label": "Support Speed",
                            "description": "The speed at which the support structure is printed. Printing support at higher speeds can greatly reduce printing time. The surface quality of the support structure is not important since it is removed after printing.",
                            "unit": "mm/s",
                            "type": "float",
                            "minimum_value": "0.1",
                            "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                            "maximum_value_warning": "150",
                            "default_value": 60,
                            "value": "speed_print",
                            "enabled": "support_enable",
                            "settable_per_mesh": false,
                            "limit_to_extruder": "support_extruder_nr",
                            "settable_per_extruder": true,
                            "children":
                            {
                                "speed_support_infill":
                                {
                                    "label": "Support Infill Speed",
                                    "description": "The speed at which the infill of support is printed. Printing the infill at lower speeds improves stability.",
                                    "unit": "mm/s",
                                    "type": "float",
                                    "default_value": 60,
                                    "minimum_value": "0.1",
                                    "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                                    "maximum_value_warning": "150",
                                    "value": "speed_support",
                                    "enabled": "support_enable",
                                    "limit_to_extruder": "support_infill_extruder_nr",
                                    "settable_per_mesh": false,
                                    "settable_per_extruder": true
                                },
                                "speed_support_interface":
                                {
                                    "label": "Support Interface Speed",
                                    "description": "The speed at which the roofs and floors of support are printed. Printing them at lower speeds can improve overhang quality.",
                                    "unit": "mm/s",
                                    "type": "float",
                                    "default_value": 40,
                                    "minimum_value": "0.1",
                                    "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                                    "maximum_value_warning": "150",
                                    "enabled": "support_interface_enable and support_enable",
                                    "limit_to_extruder": "support_interface_extruder_nr",
                                    "value": "speed_support / 1.5",
                                    "settable_per_mesh": false,
                                    "settable_per_extruder": true,
                                    "children":
                                    {
                                        "speed_support_roof":
                                        {
                                            "label": "Support Roof Speed",
                                            "description": "The speed at which the roofs of support are printed. Printing them at lower speeds can improve overhang quality.",
                                            "unit": "mm/s",
                                            "type": "float",
                                            "default_value": 40,
                                            "minimum_value": "0.1",
                                            "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                                            "maximum_value_warning": "150",
                                            "enabled": "support_roof_enable and support_enable",
                                            "limit_to_extruder": "support_roof_extruder_nr",
                                            "value": "extruderValue(support_roof_extruder_nr, 'speed_support_interface')",
                                            "settable_per_mesh": false,
                                            "settable_per_extruder": true
                                        },
                                        "speed_support_bottom":
                                        {
                                            "label": "Support Floor Speed",
                                            "description": "The speed at which the floor of support is printed. Printing it at lower speed can improve adhesion of support on top of your model.",
                                            "unit": "mm/s",
                                            "type": "float",
                                            "default_value": 40,
                                            "minimum_value": "0.1",
                                            "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                                            "maximum_value_warning": "150",
                                            "enabled": "support_bottom_enable and support_enable",
                                            "limit_to_extruder": "support_bottom_extruder_nr",
                                            "value": "extruderValue(support_bottom_extruder_nr, 'speed_support_interface')",
                                            "settable_per_mesh": false,
                                            "settable_per_extruder": true
                                        }
                                    }
                                }
                            }
                        },
                        "speed_prime_tower":
                        {
                            "label": "Prime Tower Speed",
                            "description": "The speed at which the prime tower is printed. Printing the prime tower slower can make it more stable when the adhesion between the different filaments is suboptimal.",
                            "type": "float",
                            "unit": "mm/s",
                            "enabled": "resolveOrValue('prime_tower_enable')",
                            "default_value": 60,
                            "value": "speed_print",
                            "minimum_value": "0.1",
                            "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                            "maximum_value_warning": "150",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true
                        }
                    }
                },
                "speed_travel":
                {
                    "label": "Travel Speed",
                    "description": "The speed at which travel moves are made.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 120,
                    "minimum_value": "0.1",
                    "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                    "maximum_value_warning": "300",
                    "value": "speed_print if magic_spiralize else 120",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "speed_layer_0":
                {
                    "label": "Initial Layer Speed",
                    "description": "The speed for the initial layer. A lower value is advised to improve adhesion to the build plate.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 30,
                    "value": "speed_print * 30 / 60",
                    "minimum_value": "0.1",
                    "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                    "maximum_value_warning": "300",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "speed_print_layer_0":
                        {
                            "label": "Initial Layer Print Speed",
                            "description": "The speed of printing for the initial layer. A lower value is advised to improve adhesion to the build plate.",
                            "unit": "mm/s",
                            "type": "float",
                            "default_value": 30,
                            "value": "speed_layer_0",
                            "minimum_value": "0.1",
                            "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                            "maximum_value_warning": "300",
                            "settable_per_mesh": true
                        },
                        "speed_travel_layer_0":
                        {
                            "label": "Initial Layer Travel Speed",
                            "description": "The speed of travel moves in the initial layer. A lower value is advised to prevent pulling previously printed parts away from the build plate. The value of this setting can automatically be calculated from the ratio between the Travel Speed and the Print Speed.",
                            "unit": "mm/s",
                            "type": "float",
                            "default_value": 60,
                            "value": "speed_layer_0 * speed_travel / speed_print",
                            "minimum_value": "0.1",
                            "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                            "maximum_value_warning": "300",
                            "settable_per_extruder": true,
                            "settable_per_mesh": false
                        }
                    }
                },
                "skirt_brim_speed":
                {
                    "label": "Skirt/Brim Speed",
                    "description": "The speed at which the skirt and brim are printed. Normally this is done at the initial layer speed, but sometimes you might want to print the skirt or brim at a different speed.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 30,
                    "minimum_value": "0.1",
                    "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                    "maximum_value_warning": "300",
                    "value": "speed_layer_0",
                    "enabled": "resolveOrValue('adhesion_type') == 'skirt' or resolveOrValue('adhesion_type') == 'brim'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "limit_to_extruder": "adhesion_extruder_nr"
                },
                "max_feedrate_z_override":
                {
                    "label": "Maximum Z Speed",
                    "description": "The maximum speed with which the build plate is moved. Setting this to zero causes the print to use the firmware defaults for the maximum z speed.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 0,
                    "minimum_value": "0",
                    "maximum_value": "299792458000",
                    "maximum_value_warning": "machine_max_feedrate_z",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "speed_slowdown_layers":
                {
                    "label": "Number of Slower Layers",
                    "description": "The first few layers are printed slower than the rest of the model, to get better adhesion to the build plate and improve the overall success rate of prints. The speed is gradually increased over these layers.",
                    "type": "int",
                    "default_value": 2,
                    "resolve": "round(sum(extruderValues('speed_slowdown_layers')) / len(extruderValues('speed_slowdown_layers')))",
                    "minimum_value": "0",
                    "maximum_value_warning": "3.2 / resolveOrValue('layer_height')",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "speed_equalize_flow_enabled":
                {
                    "label": "Equalize Filament Flow",
                    "description": "Print thinner than normal lines faster so that the amount of material extruded per second remains the same. Thin pieces in your model might require lines printed with smaller line width than provided in the settings. This setting controls the speed changes for such lines.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "speed_equalize_flow_max":
                {
                    "label": "Maximum Speed for Flow Equalization",
                    "description": "Maximum print speed when adjusting the print speed in order to equalize flow.",
                    "type": "float",
                    "unit": "mm/s",
                    "enabled": "speed_equalize_flow_enabled",
                    "default_value": 150,
                    "minimum_value": "0.1",
                    "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                    "maximum_value_warning": "150",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "acceleration_enabled":
                {
                    "label": "Enable Acceleration Control",
                    "description": "Enables adjusting the print head acceleration. Increasing the accelerations can reduce printing time at the cost of print quality.",
                    "type": "bool",
                    "default_value": false,
                    "resolve": "any(extruderValues('acceleration_enabled'))",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "acceleration_print":
                {
                    "label": "Print Acceleration",
                    "description": "The acceleration with which printing happens.",
                    "unit": "mm/s²",
                    "type": "float",
                    "minimum_value": "0.1",
                    "minimum_value_warning": "100",
                    "maximum_value_warning": "10000",
                    "default_value": 3000,
                    "enabled": "resolveOrValue('acceleration_enabled')",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "acceleration_infill":
                        {
                            "label": "Infill Acceleration",
                            "description": "The acceleration with which infill is printed.",
                            "unit": "mm/s²",
                            "type": "float",
                            "minimum_value": "0.1",
                            "minimum_value_warning": "100",
                            "maximum_value_warning": "10000",
                            "default_value": 3000,
                            "value": "acceleration_print",
                            "enabled": "resolveOrValue('acceleration_enabled') and infill_sparse_density > 0",
                            "limit_to_extruder": "infill_extruder_nr",
                            "settable_per_mesh": true
                        },
                        "acceleration_wall":
                        {
                            "label": "Wall Acceleration",
                            "description": "The acceleration with which the walls are printed.",
                            "unit": "mm/s²",
                            "type": "float",
                            "minimum_value": "0.1",
                            "minimum_value_warning": "100",
                            "maximum_value_warning": "10000",
                            "default_value": 3000,
                            "value": "acceleration_print",
                            "enabled": "resolveOrValue('acceleration_enabled')",
                            "settable_per_mesh": true,
                            "children":
                            {
                                "acceleration_wall_0":
                                {
                                    "label": "Outer Wall Acceleration",
                                    "description": "The acceleration with which the outermost walls are printed.",
                                    "unit": "mm/s²",
                                    "type": "float",
                                    "minimum_value": "0.1",
                                    "minimum_value_warning": "100",
                                    "maximum_value_warning": "10000",
                                    "default_value": 3000,
                                    "value": "acceleration_wall",
                                    "enabled": "resolveOrValue('acceleration_enabled')",
                                    "limit_to_extruder": "wall_0_extruder_nr",
                                    "settable_per_mesh": true
                                },
                                "acceleration_wall_x":
                                {
                                    "label": "Inner Wall Acceleration",
                                    "description": "The acceleration with which all inner walls are printed.",
                                    "unit": "mm/s²",
                                    "type": "float",
                                    "minimum_value": "0.1",
                                    "minimum_value_warning": "100",
                                    "maximum_value_warning": "10000",
                                    "default_value": 3000,
                                    "value": "acceleration_wall",
                                    "enabled": "resolveOrValue('acceleration_enabled')",
                                    "limit_to_extruder": "wall_x_extruder_nr",
                                    "settable_per_mesh": true
                                }
                            }
                        },
                        "acceleration_roofing":
                        {
                            "label": "Top Surface Skin Acceleration",
                            "description": "The acceleration with which top surface skin layers are printed.",
                            "unit": "mm/s²",
                            "type": "float",
                            "minimum_value": "0.1",
                            "minimum_value_warning": "100",
                            "maximum_value_warning": "10000",
                            "default_value": 3000,
                            "value": "acceleration_topbottom",
                            "enabled": "resolveOrValue('acceleration_enabled') and roofing_layer_count > 0 and top_layers > 0",
                            "limit_to_extruder": "roofing_extruder_nr",
                            "settable_per_mesh": true
                        },
                        "acceleration_topbottom":
                        {
                            "label": "Top/Bottom Acceleration",
                            "description": "The acceleration with which top/bottom layers are printed.",
                            "unit": "mm/s²",
                            "type": "float",
                            "minimum_value": "0.1",
                            "minimum_value_warning": "100",
                            "maximum_value_warning": "10000",
                            "default_value": 3000,
                            "value": "acceleration_print",
                            "enabled": "resolveOrValue('acceleration_enabled')",
                            "limit_to_extruder": "top_bottom_extruder_nr",
                            "settable_per_mesh": true
                        },
                        "acceleration_support":
                        {
                            "label": "Support Acceleration",
                            "description": "The acceleration with which the support structure is printed.",
                            "unit": "mm/s²",
                            "type": "float",
                            "minimum_value": "0.1",
                            "minimum_value_warning": "100",
                            "maximum_value_warning": "10000",
                            "default_value": 3000,
                            "value": "acceleration_print",
                            "enabled": "resolveOrValue('acceleration_enabled') and support_enable",
                            "settable_per_mesh": false,
                            "limit_to_extruder": "support_extruder_nr",
                            "settable_per_extruder": true,
                            "children":
                            {
                                "acceleration_support_infill":
                                {
                                    "label": "Support Infill Acceleration",
                                    "description": "The acceleration with which the infill of support is printed.",
                                    "unit": "mm/s²",
                                    "type": "float",
                                    "default_value": 3000,
                                    "value": "acceleration_support",
                                    "minimum_value": "0.1",
                                    "minimum_value_warning": "100",
                                    "maximum_value_warning": "10000",
                                    "enabled": "resolveOrValue('acceleration_enabled') and support_enable",
                                    "limit_to_extruder": "support_infill_extruder_nr",
                                    "settable_per_mesh": false,
                                    "settable_per_extruder": true
                                },
                                "acceleration_support_interface":
                                {
                                    "label": "Support Interface Acceleration",
                                    "description": "The acceleration with which the roofs and floors of support are printed. Printing them at lower acceleration can improve overhang quality.",
                                    "unit": "mm/s²",
                                    "type": "float",
                                    "default_value": 3000,
                                    "value": "acceleration_support",
                                    "minimum_value": "0.1",
                                    "minimum_value_warning": "100",
                                    "maximum_value_warning": "10000",
                                    "enabled": "resolveOrValue('acceleration_enabled') and support_interface_enable and support_enable",
                                    "limit_to_extruder": "support_interface_extruder_nr",
                                    "settable_per_mesh": false,
                                    "settable_per_extruder": true,
                                    "children":
                                    {
                                        "acceleration_support_roof":
                                        {
                                            "label": "Support Roof Acceleration",
                                            "description": "The acceleration with which the roofs of support are printed. Printing them at lower acceleration can improve overhang quality.",
                                            "unit": "mm/s²",
                                            "type": "float",
                                            "default_value": 3000,
                                            "value": "extruderValue(support_roof_extruder_nr, 'acceleration_support_interface')",
                                            "minimum_value": "0.1",
                                            "minimum_value_warning": "100",
                                            "maximum_value_warning": "10000",
                                            "enabled": "acceleration_enabled and support_roof_enable and support_enable",
                                            "limit_to_extruder": "support_roof_extruder_nr",
                                            "settable_per_mesh": false,
                                            "settable_per_extruder": true
                                        },
                                        "acceleration_support_bottom":
                                        {
                                            "label": "Support Floor Acceleration",
                                            "description": "The acceleration with which the floors of support are printed. Printing them at lower acceleration can improve adhesion of support on top of your model.",
                                            "unit": "mm/s²",
                                            "type": "float",
                                            "default_value": 3000,
                                            "value": "extruderValue(support_bottom_extruder_nr, 'acceleration_support_interface')",
                                            "minimum_value": "0.1",
                                            "minimum_value_warning": "100",
                                            "maximum_value_warning": "10000",
                                            "enabled": "acceleration_enabled and support_bottom_enable and support_enable",
                                            "limit_to_extruder": "support_bottom_extruder_nr",
                                            "settable_per_mesh": false,
                                            "settable_per_extruder": true
                                        }
                                    }
                                }
                            }
                        },
                        "acceleration_prime_tower":
                        {
                            "label": "Prime Tower Acceleration",
                            "description": "The acceleration with which the prime tower is printed.",
                            "unit": "mm/s²",
                            "type": "float",
                            "minimum_value": "0.1",
                            "minimum_value_warning": "100",
                            "maximum_value_warning": "10000",
                            "default_value": 3000,
                            "value": "acceleration_print",
                            "enabled": "resolveOrValue('prime_tower_enable') and resolveOrValue('acceleration_enabled')",
                            "settable_per_mesh": false
                        }
                    }
                },
                "acceleration_travel":
                {
                    "label": "Travel Acceleration",
                    "description": "The acceleration with which travel moves are made.",
                    "unit": "mm/s²",
                    "type": "float",
                    "default_value": 5000,
                    "minimum_value": "0.1",
                    "minimum_value_warning": "100",
                    "maximum_value_warning": "10000",
                    "value": "acceleration_print if magic_spiralize else 5000",
                    "enabled": "resolveOrValue('acceleration_enabled')",
                    "settable_per_mesh": false
                },
                "acceleration_layer_0":
                {
                    "label": "Initial Layer Acceleration",
                    "description": "The acceleration for the initial layer.",
                    "unit": "mm/s²",
                    "type": "float",
                    "default_value": 3000,
                    "value": "acceleration_print",
                    "minimum_value": "0.1",
                    "minimum_value_warning": "100",
                    "maximum_value_warning": "10000",
                    "enabled": "resolveOrValue('acceleration_enabled')",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "acceleration_print_layer_0":
                        {
                            "label": "Initial Layer Print Acceleration",
                            "description": "The acceleration during the printing of the initial layer.",
                            "unit": "mm/s",
                            "type": "float",
                            "default_value": 3000,
                            "value": "acceleration_layer_0",
                            "minimum_value": "0.1",
                            "minimum_value_warning": "100",
                            "maximum_value_warning": "10000",
                            "enabled": "resolveOrValue('acceleration_enabled')",
                            "settable_per_mesh": true
                        },
                        "acceleration_travel_layer_0":
                        {
                            "label": "Initial Layer Travel Acceleration",
                            "description": "The acceleration for travel moves in the initial layer.",
                            "unit": "mm/s",
                            "type": "float",
                            "default_value": 3000,
                            "value": "acceleration_layer_0 * acceleration_travel / acceleration_print",
                            "minimum_value": "0.1",
                            "minimum_value_warning": "100",
                            "maximum_value_warning": "10000",
                            "enabled": "resolveOrValue('acceleration_enabled')",
                            "settable_per_extruder": true,
                            "settable_per_mesh": false
                        }
                    }
                },
                "acceleration_skirt_brim":
                {
                    "label": "Skirt/Brim Acceleration",
                    "description": "The acceleration with which the skirt and brim are printed. Normally this is done with the initial layer acceleration, but sometimes you might want to print the skirt or brim at a different acceleration.",
                    "unit": "mm/s²",
                    "type": "float",
                    "default_value": 3000,
                    "value": "acceleration_layer_0",
                    "minimum_value": "0.1",
                    "minimum_value_warning": "100",
                    "maximum_value_warning": "10000",
                    "enabled": "resolveOrValue('acceleration_enabled')",
                    "settable_per_mesh": false,
                    "limit_to_extruder": "adhesion_extruder_nr"
                },
                "jerk_enabled":
                {
                    "label": "Enable Jerk Control",
                    "description": "Enables adjusting the jerk of print head when the velocity in the X or Y axis changes. Increasing the jerk can reduce printing time at the cost of print quality.",
                    "type": "bool",
                    "default_value": false,
                    "resolve": "any(extruderValues('jerk_enabled'))",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "jerk_print":
                {
                    "label": "Print Jerk",
                    "description": "The maximum instantaneous velocity change of the print head.",
                    "unit": "mm/s",
                    "type": "float",
                    "minimum_value": "0",
                    "maximum_value_warning": "50",
                    "default_value": 20,
                    "enabled": "resolveOrValue('jerk_enabled')",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "jerk_infill":
                        {
                            "label": "Infill Jerk",
                            "description": "The maximum instantaneous velocity change with which infill is printed.",
                            "unit": "mm/s",
                            "type": "float",
                            "minimum_value": "0",
                            "maximum_value_warning": "50",
                            "default_value": 20,
                            "value": "jerk_print",
                            "enabled": "resolveOrValue('jerk_enabled') and infill_sparse_density > 0",
                            "limit_to_extruder": "infill_extruder_nr",
                            "settable_per_mesh": true
                        },
                        "jerk_wall":
                        {
                            "label": "Wall Jerk",
                            "description": "The maximum instantaneous velocity change with which the walls are printed.",
                            "unit": "mm/s",
                            "type": "float",
                            "minimum_value": "0",
                            "maximum_value_warning": "50",
                            "default_value": 20,
                            "value": "jerk_print",
                            "enabled": "resolveOrValue('jerk_enabled')",
                            "settable_per_mesh": true,
                            "children":
                            {
                                "jerk_wall_0":
                                {
                                    "label": "Outer Wall Jerk",
                                    "description": "The maximum instantaneous velocity change with which the outermost walls are printed.",
                                    "unit": "mm/s",
                                    "type": "float",
                                    "minimum_value": "0",
                                    "maximum_value_warning": "50",
                                    "default_value": 20,
                                    "value": "jerk_wall",
                                    "enabled": "resolveOrValue('jerk_enabled')",
                                    "limit_to_extruder": "wall_0_extruder_nr",
                                    "settable_per_mesh": true
                                },
                                "jerk_wall_x":
                                {
                                    "label": "Inner Wall Jerk",
                                    "description": "The maximum instantaneous velocity change with which all inner walls are printed.",
                                    "unit": "mm/s",
                                    "type": "float",
                                    "minimum_value": "0",
                                    "maximum_value_warning": "50",
                                    "default_value": 20,
                                    "value": "jerk_wall",
                                    "enabled": "resolveOrValue('jerk_enabled')",
                                    "limit_to_extruder": "wall_x_extruder_nr",
                                    "settable_per_mesh": true
                                }
                            }
                        },
                        "jerk_roofing":
                        {
                            "label": "Top Surface Skin Jerk",
                            "description": "The maximum instantaneous velocity change with which top surface skin layers are printed.",
                            "unit": "mm/s",
                            "type": "float",
                            "minimum_value": "0",
                            "maximum_value_warning": "50",
                            "default_value": 20,
                            "value": "jerk_topbottom",
                            "enabled": "resolveOrValue('jerk_enabled') and roofing_layer_count > 0 and top_layers > 0",
                            "limit_to_extruder": "roofing_extruder_nr",
                            "settable_per_mesh": true
                        },
                        "jerk_topbottom":
                        {
                            "label": "Top/Bottom Jerk",
                            "description": "The maximum instantaneous velocity change with which top/bottom layers are printed.",
                            "unit": "mm/s",
                            "type": "float",
                            "minimum_value": "0",
                            "maximum_value_warning": "50",
                            "default_value": 20,
                            "value": "jerk_print",
                            "enabled": "resolveOrValue('jerk_enabled')",
                            "limit_to_extruder": "top_bottom_extruder_nr",
                            "settable_per_mesh": true
                        },
                        "jerk_support":
                        {
                            "label": "Support Jerk",
                            "description": "The maximum instantaneous velocity change with which the support structure is printed.",
                            "unit": "mm/s",
                            "type": "float",
                            "minimum_value": "0",
                            "maximum_value_warning": "50",
                            "default_value": 20,
                            "value": "jerk_print",
                            "enabled": "resolveOrValue('jerk_enabled') and support_enable",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true,
                            "limit_to_extruder": "support_extruder_nr",
                            "children":
                            {
                                "jerk_support_infill":
                                {
                                    "label": "Support Infill Jerk",
                                    "description": "The maximum instantaneous velocity change with which the infill of support is printed.",
                                    "unit": "mm/s",
                                    "type": "float",
                                    "default_value": 20,
                                    "value": "jerk_support",
                                    "minimum_value": "0",
                                    "maximum_value_warning": "50",
                                    "enabled": "resolveOrValue('jerk_enabled') and support_enable",
                                    "limit_to_extruder": "support_infill_extruder_nr",
                                    "settable_per_mesh": false,
                                    "settable_per_extruder": true
                                },
                                "jerk_support_interface":
                                {
                                    "label": "Support Interface Jerk",
                                    "description": "The maximum instantaneous velocity change with which the roofs and floors of support are printed.",
                                    "unit": "mm/s",
                                    "type": "float",
                                    "default_value": 20,
                                    "value": "jerk_support",
                                    "minimum_value": "0",
                                    "maximum_value_warning": "50",
                                    "enabled": "resolveOrValue('jerk_enabled') and support_interface_enable and support_enable",
                                    "limit_to_extruder": "support_interface_extruder_nr",
                                    "settable_per_mesh": false,
                                    "settable_per_extruder": true,
                                    "children":
                                    {
                                        "jerk_support_roof":
                                        {
                                            "label": "Support Roof Jerk",
                                            "description": "The maximum instantaneous velocity change with which the roofs of support are printed.",
                                            "unit": "mm/s",
                                            "type": "float",
                                            "default_value": 20,
                                            "value": "extruderValue(support_roof_extruder_nr, 'jerk_support_interface')",
                                            "minimum_value": "0",
                                            "maximum_value_warning": "50",
                                            "enabled": "resolveOrValue('jerk_enabled') and support_roof_enable and support_enable",
                                            "limit_to_extruder": "support_roof_extruder_nr",
                                            "settable_per_mesh": false,
                                            "settable_per_extruder": true
                                        },
                                        "jerk_support_bottom":
                                        {
                                            "label": "Support Floor Jerk",
                                            "description": "The maximum instantaneous velocity change with which the floors of support are printed.",
                                            "unit": "mm/s",
                                            "type": "float",
                                            "default_value": 20,
                                            "value": "extruderValue(support_roof_extruder_nr, 'jerk_support_interface')",
                                            "minimum_value": "0",
                                            "maximum_value_warning": "50",
                                            "enabled": "resolveOrValue('jerk_enabled') and support_bottom_enable and support_enable",
                                            "limit_to_extruder": "support_bottom_extruder_nr",
                                            "settable_per_mesh": false,
                                            "settable_per_extruder": true
                                        }
                                    }
                                }
                            }
                        },
                        "jerk_prime_tower":
                        {
                            "label": "Prime Tower Jerk",
                            "description": "The maximum instantaneous velocity change with which the prime tower is printed.",
                            "unit": "mm/s",
                            "type": "float",
                            "minimum_value": "0",
                            "maximum_value_warning": "50",
                            "default_value": 20,
                            "value": "jerk_print",
                            "enabled": "resolveOrValue('prime_tower_enable') and resolveOrValue('jerk_enabled')",
                            "settable_per_mesh": false
                        }
                    }
                },
                "jerk_travel":
                {
                    "label": "Travel Jerk",
                    "description": "The maximum instantaneous velocity change with which travel moves are made.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 30,
                    "minimum_value": "0",
                    "maximum_value_warning": "50",
                    "value": "jerk_print if magic_spiralize else 30",
                    "enabled": "resolveOrValue('jerk_enabled')",
                    "settable_per_mesh": false
                },
                "jerk_layer_0":
                {
                    "label": "Initial Layer Jerk",
                    "description": "The print maximum instantaneous velocity change for the initial layer.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 20,
                    "value": "jerk_print",
                    "minimum_value": "0",
                    "maximum_value_warning": "50",
                    "enabled": "resolveOrValue('jerk_enabled')",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "jerk_print_layer_0":
                        {
                            "label": "Initial Layer Print Jerk",
                            "description": "The maximum instantaneous velocity change during the printing of the initial layer.",
                            "unit": "mm/s",
                            "type": "float",
                            "default_value": 20,
                            "value": "jerk_layer_0",
                            "minimum_value": "0",
                            "maximum_value_warning": "50",
                            "enabled": "resolveOrValue('jerk_enabled')",
                            "settable_per_mesh": true
                        },
                        "jerk_travel_layer_0":
                        {
                            "label": "Initial Layer Travel Jerk",
                            "description": "The acceleration for travel moves in the initial layer.",
                            "unit": "mm/s",
                            "type": "float",
                            "default_value": 20,
                            "value": "jerk_layer_0 * jerk_travel / jerk_print",
                            "minimum_value": "0",
                            "maximum_value_warning": "50",
                            "enabled": "resolveOrValue('jerk_enabled')",
                            "settable_per_extruder": true,
                            "settable_per_mesh": false
                        }
                    }
                },
                "jerk_skirt_brim":
                {
                    "label": "Skirt/Brim Jerk",
                    "description": "The maximum instantaneous velocity change with which the skirt and brim are printed.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 20,
                    "minimum_value": "0",
                    "maximum_value_warning": "50",
                    "value": "jerk_layer_0",
                    "enabled": "resolveOrValue('jerk_enabled')",
                    "settable_per_mesh": false,
                    "limit_to_extruder": "adhesion_extruder_nr"
                }
            }
        },
        "travel":
        {
            "label": "Travel",
            "icon": "category_travel",
            "description": "travel",
            "type": "category",
            "children":
            {
                "retraction_combing":
                {
                    "label": "Combing Mode",
                    "description": "Combing keeps the nozzle within already printed areas when traveling. This results in slightly longer travel moves but reduces the need for retractions. If combing is off, the material will retract and the nozzle moves in a straight line to the next point. It is also possible to avoid combing over top/bottom skin areas by combing within the infill only.",
                    "type": "enum",
                    "options":
                    {
                        "off": "Off",
                        "all": "All",
                        "noskin": "No Skin"
                    },
                    "default_value": "all",
                    "resolve": "'noskin' if 'noskin' in extruderValues('retraction_combing') else ('all' if 'all' in extruderValues('retraction_combing') else 'off')",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "travel_retract_before_outer_wall":
                {
                    "label": "Retract Before Outer Wall",
                    "description": "Always retract when moving to start an outer wall.",
                    "type": "bool",
                    "default_value": false,
                    "enabled": "retraction_enable",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "travel_avoid_other_parts":
                {
                    "label": "Avoid Printed Parts When Traveling",
                    "description": "The nozzle avoids already printed parts when traveling. This option is only available when combing is enabled.",
                    "type": "bool",
                    "default_value": true,
                    "enabled": "resolveOrValue('retraction_combing') != 'off'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "travel_avoid_distance":
                {
                    "label": "Travel Avoid Distance",
                    "description": "The distance between the nozzle and already printed parts when avoiding during travel moves.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.625,
                    "value": "machine_nozzle_tip_outer_diameter / 2 * 1.25",
                    "minimum_value": "0",
                    "minimum_value_warning": "machine_nozzle_tip_outer_diameter * 0.5",
                    "maximum_value_warning": "machine_nozzle_tip_outer_diameter * 5",
                    "enabled": "resolveOrValue('retraction_combing') != 'off' and travel_avoid_other_parts",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "start_layers_at_same_position":
                {
                    "label": "Start Layers with the Same Part",
                    "description": "In each layer start with printing the object near the same point, so that we don't start a new layer with printing the piece which the previous layer ended with. This makes for better overhangs and small parts, but increases printing time.",
                    "type": "bool",
                    "default_value": false,
                    "enabled": false,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": true
                },
                "layer_start_x":
                {
                    "label": "Layer Start X",
                    "description": "The X coordinate of the position near where to find the part to start printing each layer.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.0,
                    "minimum_value": "machine_width / -2 if machine_center_is_zero else 0",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "settable_per_meshgroup": true
                },
                "layer_start_y":
                {
                    "label": "Layer Start Y",
                    "description": "The Y coordinate of the position near where to find the part to start printing each layer.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.0,
                    "minimum_value": "machine_depth / -2 if machine_center_is_zero else 0",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "settable_per_meshgroup": true
                },
                "retraction_hop_enabled": {
                    "label": "Z Hop When Retracted",
                    "description": "Whenever a retraction is done, the build plate is lowered to create clearance between the nozzle and the print. It prevents the nozzle from hitting the print during travel moves, reducing the chance to knock the print from the build plate.",
                    "type": "bool",
                    "default_value": false,
                    "enabled": "retraction_enable",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "retraction_hop_only_when_collides": {
                    "label": "Z Hop Only Over Printed Parts",
                    "description": "Only perform a Z Hop when moving over printed parts which cannot be avoided by horizontal motion by Avoid Printed Parts when Traveling.",
                    "type": "bool",
                    "default_value": false,
                    "enabled": "retraction_enable and retraction_hop_enabled and travel_avoid_other_parts",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "retraction_hop": {
                    "label": "Z Hop Height",
                    "description": "The height difference when performing a Z Hop.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 1,
                    "minimum_value_warning": "0",
                    "maximum_value_warning": "10",
                    "enabled": "retraction_enable and retraction_hop_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "retraction_hop_after_extruder_switch": {
                    "label": "Z Hop After Extruder Switch",
                    "description": "After the machine switched from one extruder to the other, the build plate is lowered to create clearance between the nozzle and the print. This prevents the nozzle from leaving oozed material on the outside of a print.",
                    "type": "bool",
                    "default_value": true,
                    "enabled": "retraction_hop_enabled and machine_extruder_count > 1",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                }
            }
        },
        "cooling":
        {
            "label": "Cooling",
            "icon": "category_cool",
            "description": "Cooling",
            "type": "category",
            "children":
            {
                "cool_fan_enabled":
                {
                    "label": "Enable Print Cooling",
                    "description": "Enables the print cooling fans while printing. The fans improve print quality on layers with short layer times and bridging / overhangs.",
                    "type": "bool",
                    "default_value": true,
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "cool_fan_speed":
                {
                    "label": "Fan Speed",
                    "description": "The speed at which the print cooling fans spin.",
                    "unit": "%",
                    "type": "float",
                    "minimum_value": "0",
                    "maximum_value": "100",
                    "default_value": 100,
                    "value": "100.0 if cool_fan_enabled else 0.0",
                    "enabled": "cool_fan_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "children":
                    {
                        "cool_fan_speed_min":
                        {
                            "label": "Regular Fan Speed",
                            "description": "The speed at which the fans spin before hitting the threshold. When a layer prints faster than the threshold, the fan speed gradually inclines towards the maximum fan speed.",
                            "unit": "%",
                            "type": "float",
                            "minimum_value": "0",
                            "maximum_value": "100",
                            "value": "cool_fan_speed",
                            "default_value": 100,
                            "enabled": "cool_fan_enabled",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true
                        },
                        "cool_fan_speed_max":
                        {
                            "label": "Maximum Fan Speed",
                            "description": "The speed at which the fans spin on the minimum layer time. The fan speed gradually increases between the regular fan speed and maximum fan speed when the threshold is hit.",
                            "unit": "%",
                            "type": "float",
                            "minimum_value": "max(0, cool_fan_speed_min)",
                            "maximum_value": "100",
                            "default_value": 100,
                            "enabled": "cool_fan_enabled",
                            "value": "cool_fan_speed",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true
                        }
                    }
                },
                "cool_min_layer_time_fan_speed_max":
                {
                    "label": "Regular/Maximum Fan Speed Threshold",
                    "description": "The layer time which sets the threshold between regular fan speed and maximum fan speed. Layers that print slower than this time use regular fan speed. For faster layers the fan speed gradually increases towards the maximum fan speed.",
                    "unit": "s",
                    "type": "float",
                    "default_value": 10,
                    "maximum_value_warning": "600",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "cool_fan_speed_0":
                {
                    "label": "Initial Fan Speed",
                    "description": "The speed at which the fans spin at the start of the print. In subsequent layers the fan speed is gradually increased up to the layer corresponding to Regular Fan Speed at Height.",
                    "unit": "%",
                    "type": "float",
                    "minimum_value": "0",
                    "maximum_value": "100",
                    "default_value": 0,
                    "enabled": "cool_fan_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "cool_fan_full_at_height":
                {
                    "label": "Regular Fan Speed at Height",
                    "description": "The height at which the fans spin on regular fan speed. At the layers below the fan speed gradually increases from Initial Fan Speed to Regular Fan Speed.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.5,
                    "value": "0 if resolveOrValue('adhesion_type') == 'raft' else resolveOrValue('layer_height_0')",
                    "minimum_value": "0",
                    "maximum_value_warning": "10.0",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "children":
                    {
                        "cool_fan_full_layer":
                        {
                            "label": "Regular Fan Speed at Layer",
                            "description": "The layer at which the fans spin on regular fan speed. If regular fan speed at height is set, this value is calculated and rounded to a whole number.",
                            "type": "int",
                            "default_value": 2,
                            "minimum_value": "1",
                            "maximum_value_warning": "10 / resolveOrValue('layer_height')",
                            "value": "max(1, int(math.floor((cool_fan_full_at_height - resolveOrValue('layer_height_0')) / resolveOrValue('layer_height')) + 2))",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true
                        }
                    }
                },
                "cool_min_layer_time":
                {
                    "label": "Minimum Layer Time",
                    "description": "The minimum time spent in a layer. This forces the printer to slow down, to at least spend the time set here in one layer. This allows the printed material to cool down properly before printing the next layer. Layers may still take shorter than the minimal layer time if Lift Head is disabled and if the Minimum Speed would otherwise be violated.",
                    "unit": "s",
                    "type": "float",
                    "default_value": 5,
                    "minimum_value": "0",
                    "maximum_value_warning": "600",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "cool_min_speed":
                {
                    "label": "Minimum Speed",
                    "description": "The minimum print speed, despite slowing down due to the minimum layer time. When the printer would slow down too much, the pressure in the nozzle would be too low and result in bad print quality.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 10,
                    "minimum_value": "0",
                    "maximum_value_warning": "100",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "cool_lift_head":
                {
                    "label": "Lift Head",
                    "description": "When the minimum speed is hit because of minimum layer time, lift the head away from the print and wait the extra time until the minimum layer time is reached.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                }
            }
        },
        "support":
        {
            "label": "Support",
            "type": "category",
            "icon": "category_support",
            "description": "Support",
            "children":
            {
                "support_enable":
                {
                    "label": "Generate Support",
                    "description": "Generate structures to support parts of the model which have overhangs. Without these structures, such parts would collapse during printing.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": true,
                    "settable_per_extruder": false
                },
                "support_extruder_nr":
                {
                    "label": "Support Extruder",
                    "description": "The extruder train to use for printing the support. This is used in multi-extrusion.",
                    "type": "extruder",
                    "default_value": "0",
                    "enabled": "support_enable and machine_extruder_count > 1",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "children": {
                        "support_infill_extruder_nr":
                        {
                            "label": "Support Infill Extruder",
                            "description": "The extruder train to use for printing the infill of the support. This is used in multi-extrusion.",
                            "type": "extruder",
                            "default_value": "0",
                            "value": "support_extruder_nr",
                            "enabled": "support_enable and machine_extruder_count > 1",
                            "settable_per_mesh": false,
                            "settable_per_extruder": false
                        },
                        "support_extruder_nr_layer_0":
                        {
                            "label": "First Layer Support Extruder",
                            "description": "The extruder train to use for printing the first layer of support infill. This is used in multi-extrusion.",
                            "type": "extruder",
                            "default_value": "0",
                            "value": "support_extruder_nr",
                            "enabled": "support_enable and machine_extruder_count > 1",
                            "settable_per_mesh": false,
                            "settable_per_extruder": false
                        },
                        "support_interface_extruder_nr":
                        {
                            "label": "Support Interface Extruder",
                            "description": "The extruder train to use for printing the roofs and floors of the support. This is used in multi-extrusion.",
                            "type": "extruder",
                            "default_value": "0",
                            "value": "support_extruder_nr",
                            "enabled": "support_enable and machine_extruder_count > 1",
                            "settable_per_mesh": false,
                            "settable_per_extruder": false,
                            "children":
                            {
                                "support_roof_extruder_nr":
                                {
                                    "label": "Support Roof Extruder",
                                    "description": "The extruder train to use for printing the roofs of the support. This is used in multi-extrusion.",
                                    "type": "extruder",
                                    "default_value": "0",
                                    "value": "support_interface_extruder_nr",
                                    "enabled": "support_enable and machine_extruder_count > 1",
                                    "settable_per_mesh": false,
                                    "settable_per_extruder": false
                                },
                                "support_bottom_extruder_nr":
                                {
                                    "label": "Support Floor Extruder",
                                    "description": "The extruder train to use for printing the floors of the support. This is used in multi-extrusion.",
                                    "type": "extruder",
                                    "default_value": "0",
                                    "value": "support_interface_extruder_nr",
                                    "enabled": "support_enable and machine_extruder_count > 1",
                                    "settable_per_mesh": false,
                                    "settable_per_extruder": false
                                }
                            }
                        }
                    }
                },
                "support_type":
                {
                    "label": "Support Placement",
                    "description": "Adjusts the placement of the support structures. The placement can be set to touching build plate or everywhere. When set to everywhere the support structures will also be printed on the model.",
                    "type": "enum",
                    "options":
                    {
                        "buildplate": "Touching Buildplate",
                        "everywhere": "Everywhere"
                    },
                    "default_value": "everywhere",
                    "resolve": "'everywhere' if 'everywhere' in extruderValues('support_type') else 'buildplate'",
                    "enabled": "support_enable",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "support_angle":
                {
                    "label": "Support Overhang Angle",
                    "description": "The minimum angle of overhangs for which support is added. At a value of 0° all overhangs are supported, 90° will not provide any support.",
                    "unit": "°",
                    "type": "float",
                    "minimum_value": "0",
                    "maximum_value": "90",
                    "maximum_value_warning": "80",
                    "default_value": 50,
                    "limit_to_extruder": "support_roof_extruder_nr if support_roof_enable else support_infill_extruder_nr",
                    "enabled": "support_enable",
                    "settable_per_mesh": true
                },
                "support_pattern":
                {
                    "label": "Support Pattern",
                    "description": "The pattern of the support structures of the print. The different options available result in sturdy or easy to remove support.",
                    "type": "enum",
                    "options":
                    {
                        "lines": "Lines",
                        "grid": "Grid",
                        "triangles": "Triangles",
                        "concentric": "Concentric",
                        "concentric_3d": "Concentric 3D",
                        "zigzag": "Zig Zag",
                        "cross": "Cross"
                    },
                    "default_value": "zigzag",
                    "enabled": "support_enable",
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "support_connect_zigzags":
                {
                    "label": "Connect Support ZigZags",
                    "description": "Connect the ZigZags. This will increase the strength of the zig zag support structure.",
                    "type": "bool",
                    "default_value": true,
                    "enabled": "support_enable and (support_pattern == 'zigzag')",
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "support_infill_rate":
                {
                    "label": "Support Density",
                    "description": "Adjusts the density of the support structure. A higher value results in better overhangs, but the supports are harder to remove.",
                    "unit": "%",
                    "type": "float",
                    "minimum_value": "0",
                    "maximum_value_warning": "100",
                    "default_value": 15,
                    "enabled": "support_enable",
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "children":
                    {
                        "support_line_distance":
                        {
                            "label": "Support Line Distance",
                            "description": "Distance between the printed support structure lines. This setting is calculated by the support density.",
                            "unit": "mm",
                            "type": "float",
                            "minimum_value": "0",
                            "minimum_value_warning": "support_line_width",
                            "default_value": 2.66,
                            "enabled": "support_enable",
                            "value": "0 if support_infill_rate == 0 else (support_line_width * 100) / support_infill_rate * (2 if support_pattern == 'grid' else (3 if support_pattern == 'triangles' else 1))",
                            "limit_to_extruder": "support_infill_extruder_nr",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true
                        }
                    }
                },
                "support_z_distance":
                {
                    "label": "Support Z Distance",
                    "description": "Distance from the top/bottom of the support structure to the print. This gap provides clearance to remove the supports after the model is printed. This value is rounded up to a multiple of the layer height.",
                    "unit": "mm",
                    "type": "float",
                    "minimum_value": "0",
                    "maximum_value_warning": "machine_nozzle_size",
                    "default_value": 0.1,
                    "limit_to_extruder": "support_interface_extruder_nr if support_interface_enable else support_infill_extruder_nr",
                    "enabled": "support_enable",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "support_top_distance":
                        {
                            "label": "Support Top Distance",
                            "description": "Distance from the top of the support to the print.",
                            "unit": "mm",
                            "minimum_value": "0",
                            "maximum_value_warning": "machine_nozzle_size",
                            "default_value": 0.1,
                            "type": "float",
                            "enabled": "support_enable",
                            "value": "extruderValue(support_roof_extruder_nr if support_roof_enable else support_infill_extruder_nr, 'support_z_distance')",
                            "limit_to_extruder": "support_roof_extruder_nr if support_roof_enable else support_infill_extruder_nr",
                            "settable_per_mesh": true
                        },
                        "support_bottom_distance":
                        {
                            "label": "Support Bottom Distance",
                            "description": "Distance from the print to the bottom of the support.",
                            "unit": "mm",
                            "minimum_value": "0",
                            "maximum_value_warning": "machine_nozzle_size",
                            "default_value": 0.1,
                            "value": "extruderValue(support_bottom_extruder_nr if support_bottom_enable else support_infill_extruder_nr, 'support_z_distance') if support_type == 'everywhere' else 0",
                            "limit_to_extruder": "support_bottom_extruder_nr if support_bottom_enable else support_infill_extruder_nr",
                            "type": "float",
                            "enabled": "support_enable and resolveOrValue('support_type') == 'everywhere'",
                            "settable_per_mesh": true
                        }
                    }
                },
                "support_xy_distance":
                {
                    "label": "Support X/Y Distance",
                    "description": "Distance of the support structure from the print in the X/Y directions.",
                    "unit": "mm",
                    "type": "float",
                    "minimum_value": "0",
                    "maximum_value_warning": "1.5 * machine_nozzle_tip_outer_diameter",
                    "default_value": 0.7,
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "enabled": "support_enable",
                    "settable_per_mesh": true
                },
                "support_xy_overrides_z":
                {
                    "label": "Support Distance Priority",
                    "description": "Whether the Support X/Y Distance overrides the Support Z Distance or vice versa. When X/Y overrides Z the X/Y distance can push away the support from the model, influencing the actual Z distance to the overhang. We can disable this by not applying the X/Y distance around overhangs.",
                    "type": "enum",
                    "options":
                    {
                        "xy_overrides_z": "X/Y overrides Z",
                        "z_overrides_xy": "Z overrides X/Y"
                    },
                    "default_value": "z_overrides_xy",
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "enabled": "support_enable",
                    "settable_per_mesh": true
                },
                "support_xy_distance_overhang":
                {
                    "label": "Minimum Support X/Y Distance",
                    "description": "Distance of the support structure from the overhang in the X/Y directions. ",
                    "unit": "mm",
                    "type": "float",
                    "minimum_value": "0",
                    "maximum_value_warning": "support_xy_distance",
                    "default_value": 0.2,
                    "value": "machine_nozzle_size / 2",
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "enabled": "support_enable and support_xy_overrides_z == 'z_overrides_xy'",
                    "settable_per_mesh": true
                },
                "support_bottom_stair_step_height":
                {
                    "label": "Support Stair Step Height",
                    "description": "The height of the steps of the stair-like bottom of support resting on the model. A low value makes the support harder to remove, but too high values can lead to unstable support structures. Set to zero to turn off the stair-like behaviour.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.3,
                    "limit_to_extruder": "support_bottom_extruder_nr if support_bottom_enable else support_infill_extruder_nr",
                    "minimum_value": "0",
                    "maximum_value_warning": "1.0",
                    "enabled": "support_enable",
                    "settable_per_mesh": true
                },
                "support_bottom_stair_step_width":
                {
                    "label": "Support Stair Step Maximum Width",
                    "description": "The maximum width of the steps of the stair-like bottom of support resting on the model. A low value makes the support harder to remove, but too high values can lead to unstable support structures.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 5.0,
                    "limit_to_extruder": "support_interface_extruder_nr if support_interface_enable else support_infill_extruder_nr",
                    "minimum_value": "0",
                    "maximum_value_warning": "10.0",
                    "enabled": "support_enable",
                    "settable_per_mesh": true
                },
                "support_join_distance":
                {
                    "label": "Support Join Distance",
                    "description": "The maximum distance between support structures in the X/Y directions. When seperate structures are closer together than this value, the structures merge into one.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 2.0,
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "minimum_value_warning": "0",
                    "maximum_value_warning": "10",
                    "enabled": "support_enable",
                    "settable_per_mesh": true
                },
                "support_offset":
                {
                    "label": "Support Horizontal Expansion",
                    "description": "Amount of offset applied to all support polygons in each layer. Positive values can smooth out the support areas and result in more sturdy support.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.2,
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "minimum_value_warning": "-1 * machine_nozzle_size",
                    "maximum_value_warning": "10 * machine_nozzle_size",
                    "enabled": "support_enable",
                    "settable_per_mesh": true
                },
                "support_infill_sparse_thickness":
                {
                    "label": "Support Infill Layer Thickness",
                    "description": "The thickness per layer of support infill material. This value should always be a multiple of the layer height and is otherwise rounded.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.1,
                    "minimum_value": "resolveOrValue('layer_height')",
                    "maximum_value_warning": "0.75 * machine_nozzle_size",
                    "maximum_value": "resolveOrValue('layer_height') * 8",
                    "value": "resolveOrValue('layer_height')",
                    "enabled": "support_enable and support_infill_rate > 0",
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "settable_per_mesh": false
                },
                "gradual_support_infill_steps":
                {
                    "label": "Gradual Support Infill Steps",
                    "description": "Number of times to reduce the support infill density by half when getting further below top surfaces. Areas which are closer to top surfaces get a higher density, up to the Support Infill Density.",
                    "default_value": 0,
                    "type": "int",
                    "minimum_value": "0",
                    "maximum_value_warning": "1 if (support_pattern == 'cross' or support_pattern == 'lines' or support_pattern == 'zigzag' or support_pattern == 'concentric' or support_pattern == 'concentric_3d') else 5",
                    "maximum_value": "999999 if support_line_distance == 0 else (20 - math.log(support_line_distance) / math.log(2))",
                    "enabled": "support_enable and support_infill_rate > 0",
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "settable_per_mesh": false
                },
                "gradual_support_infill_step_height":
                {
                    "label": "Gradual Support Infill Step Height",
                    "description": "The height of support infill of a given density before switching to half the density.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 1,
                    "minimum_value": "0.0001",
                    "minimum_value_warning": "3 * resolveOrValue('layer_height')",
                    "enabled": "support_enable and support_infill_rate > 0 and gradual_support_infill_steps > 0",
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "settable_per_mesh": false
                },
                "support_interface_enable":
                {
                    "label": "Enable Support Interface",
                    "description": "Generate a dense interface between the model and the support. This will create a skin at the top of the support on which the model is printed and at the bottom of the support, where it rests on the model.",
                    "type": "bool",
                    "default_value": false,
                    "limit_to_extruder": "support_interface_extruder_nr",
                    "enabled": "support_enable",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "support_roof_enable":
                        {
                            "label": "Enable Support Roof",
                            "description": "Generate a dense slab of material between the top of support and the model. This will create a skin between the model and support.",
                            "type": "bool",
                            "default_value": false,
                            "value": "extruderValue(support_roof_extruder_nr, 'support_interface_enable')",
                            "limit_to_extruder": "support_roof_extruder_nr",
                            "enabled": "support_enable",
                            "settable_per_mesh": true
                        },
                        "support_bottom_enable":
                        {
                            "label": "Enable Support Floor",
                            "description": "Generate a dense slab of material between the bottom of the support and the model. This will create a skin between the model and support.",
                            "type": "bool",
                            "default_value": false,
                            "value": "extruderValue(support_bottom_extruder_nr, 'support_interface_enable')",
                            "limit_to_extruder": "support_bottom_extruder_nr",
                            "enabled": "support_enable",
                            "settable_per_mesh": true
                        }
                    }
                },
                "support_interface_height":
                {
                    "label": "Support Interface Thickness",
                    "description": "The thickness of the interface of the support where it touches with the model on the bottom or the top.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 1,
                    "minimum_value": "0",
                    "minimum_value_warning": "0.2 + layer_height",
                    "maximum_value_warning": "10",
                    "limit_to_extruder": "support_interface_extruder_nr",
                    "enabled": "support_interface_enable and support_enable",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "support_roof_height":
                        {
                            "label": "Support Roof Thickness",
                            "description": "The thickness of the support roofs. This controls the amount of dense layers at the top of the support on which the model rests.",
                            "unit": "mm",
                            "type": "float",
                            "default_value": 1,
                            "minimum_value": "0",
                            "minimum_value_warning": "0.2 + layer_height",
                            "maximum_value_warning": "10",
                            "value": "extruderValue(support_roof_extruder_nr, 'support_interface_height')",
                            "limit_to_extruder": "support_roof_extruder_nr",
                            "enabled": "support_roof_enable and support_enable",
                            "settable_per_mesh": true
                        },
                        "support_bottom_height":
                        {
                            "label": "Support Floor Thickness",
                            "description": "The thickness of the support floors. This controls the number of dense layers that are printed on top of places of a model on which support rests.",
                            "unit": "mm",
                            "type": "float",
                            "default_value": 1,
                            "value": "extruderValue(support_bottom_extruder_nr, 'support_interface_height')",
                            "minimum_value": "0",
                            "minimum_value_warning": "min(0.2 + layer_height, support_bottom_stair_step_height)",
                            "maximum_value_warning": "10",
                            "limit_to_extruder": "support_bottom_extruder_nr",
                            "enabled": "support_bottom_enable and support_enable",
                            "settable_per_mesh": true
                        }
                    }
                },
                "support_interface_skip_height": {
                    "label": "Support Interface Resolution",
                    "description": "When checking where there's model above and below the support, take steps of the given height. Lower values will slice slower, while higher values may cause normal support to be printed in some places where there should have been support interface.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.3,
                    "minimum_value": "0",
                    "maximum_value_warning": "support_interface_height",
                    "limit_to_extruder": "support_interface_extruder_nr",
                    "enabled": "support_interface_enable and support_enable",
                    "settable_per_mesh": true
                },
                "support_interface_density":
                {
                    "label": "Support Interface Density",
                    "description": "Adjusts the density of the roofs and floors of the support structure. A higher value results in better overhangs, but the supports are harder to remove.",
                    "unit": "%",
                    "type": "float",
                    "default_value": 100,
                    "minimum_value": "0",
                    "maximum_value_warning": "100",
                    "limit_to_extruder": "support_interface_extruder_nr",
                    "enabled": "support_interface_enable and support_enable",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "children":
                    {
                        "support_roof_density":
                        {
                            "label": "Support Roof Density",
                            "description": "The density of the roofs of the support structure. A higher value results in better overhangs, but the supports are harder to remove.",
                            "unit": "%",
                            "type": "float",
                            "default_value": 100,
                            "minimum_value": "0",
                            "maximum_value": "100",
                            "limit_to_extruder": "support_roof_extruder_nr",
                            "enabled": "support_roof_enable and support_enable",
                            "value": "extruderValue(support_roof_extruder_nr, 'support_interface_density')",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true,
                            "children":
                            {
                                "support_roof_line_distance":
                                {
                                    "label": "Support Roof Line Distance",
                                    "description": "Distance between the printed support roof lines. This setting is calculated by the Support Roof Density, but can be adjusted separately.",
                                    "unit": "mm",
                                    "type": "float",
                                    "default_value": 0.4,
                                    "minimum_value": "0",
                                    "minimum_value_warning": "support_roof_line_width - 0.0001",
                                    "value": "0 if support_roof_density == 0 else (support_roof_line_width * 100) / support_roof_density * (2 if support_roof_pattern == 'grid' else (3 if support_roof_pattern == 'triangles' else 1))",
                                    "limit_to_extruder": "support_roof_extruder_nr",
                                    "enabled": "support_roof_enable and support_enable",
                                    "settable_per_mesh": false,
                                    "settable_per_extruder": true
                                }
                            }
                        },
                        "support_bottom_density":
                        {
                            "label": "Support Floor Density",
                            "description": "The density of the floors of the support structure. A higher value results in better adhesion of the support on top of the model.",
                            "unit": "%",
                            "type": "float",
                            "default_value": 100,
                            "minimum_value": "0",
                            "maximum_value": "100",
                            "limit_to_extruder": "support_bottom_extruder_nr",
                            "enabled": "support_bottom_enable and support_enable",
                            "value": "extruderValue(support_bottom_extruder_nr, 'support_interface_density')",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true,
                            "children":
                            {
                                "support_bottom_line_distance":
                                {
                                    "label": "Support Floor Line Distance",
                                    "description": "Distance between the printed support floor lines. This setting is calculated by the Support Floor Density, but can be adjusted separately.",
                                    "unit": "mm",
                                    "type": "float",
                                    "default_value": 0.4,
                                    "minimum_value": "0",
                                    "minimum_value_warning": "support_bottom_line_width - 0.0001",
                                    "value": "0 if support_bottom_density == 0 else (support_bottom_line_width * 100) / support_bottom_density * (2 if support_bottom_pattern == 'grid' else (3 if support_bottom_pattern == 'triangles' else 1))",
                                    "limit_to_extruder": "support_bottom_extruder_nr",
                                    "enabled": "support_bottom_enable and support_enable",
                                    "settable_per_mesh": false,
                                    "settable_per_extruder": true
                                }
                            }
                        }
                    }
                },
                "support_interface_pattern":
                {
                    "label": "Support Interface Pattern",
                    "description": "The pattern with which the interface of the support with the model is printed.",
                    "type": "enum",
                    "options":
                    {
                        "lines": "Lines",
                        "grid": "Grid",
                        "triangles": "Triangles",
                        "concentric": "Concentric",
                        "concentric_3d": "Concentric 3D",
                        "zigzag": "Zig Zag"
                    },
                    "default_value": "concentric",
                    "limit_to_extruder": "support_interface_extruder_nr",
                    "enabled": "support_interface_enable and support_enable",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "children":
                    {
                        "support_roof_pattern":
                        {
                            "label": "Support Roof Pattern",
                            "description": "The pattern with which the roofs of the support are printed.",
                            "type": "enum",
                            "options":
                            {
                                "lines": "Lines",
                                "grid": "Grid",
                                "triangles": "Triangles",
                                "concentric": "Concentric",
                                "concentric_3d": "Concentric 3D",
                                "zigzag": "Zig Zag"
                            },
                            "default_value": "concentric",
                            "value": "extruderValue(support_roof_extruder_nr, 'support_interface_pattern')",
                            "limit_to_extruder": "support_roof_extruder_nr",
                            "enabled": "support_roof_enable and support_enable",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true
                        },
                        "support_bottom_pattern":
                        {
                            "label": "Support Floor Pattern",
                            "description": "The pattern with which the floors of the support are printed.",
                            "type": "enum",
                            "options":
                            {
                                "lines": "Lines",
                                "grid": "Grid",
                                "triangles": "Triangles",
                                "concentric": "Concentric",
                                "concentric_3d": "Concentric 3D",
                                "zigzag": "Zig Zag"
                            },
                            "default_value": "concentric",
                            "value": "extruderValue(support_bottom_extruder_nr, 'support_interface_pattern')",
                            "limit_to_extruder": "support_bottom_extruder_nr",
                            "enabled": "support_bottom_enable and support_enable",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true
                        }
                    }
                },
                "support_use_towers":
                {
                    "label": "Use Towers",
                    "description": "Use specialized towers to support tiny overhang areas. These towers have a larger diameter than the region they support. Near the overhang the towers' diameter decreases, forming a roof.",
                    "type": "bool",
                    "default_value": true,
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "enabled": "support_enable",
                    "settable_per_mesh": true
                },
                "support_tower_diameter":
                {
                    "label": "Tower Diameter",
                    "description": "The diameter of a special tower.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 3.0,
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "minimum_value": "0",
                    "minimum_value_warning": "2 * machine_nozzle_size",
                    "maximum_value_warning": "20",
                    "enabled": "support_enable and support_use_towers",
                    "settable_per_mesh": true
                },
                "support_minimal_diameter":
                {
                    "label": "Minimum Diameter",
                    "description": "Minimum diameter in the X/Y directions of a small area which is to be supported by a specialized support tower.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 3.0,
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "minimum_value": "0",
                    "minimum_value_warning": "2 * machine_nozzle_size",
                    "maximum_value_warning": "20",
                    "maximum_value": "support_tower_diameter",
                    "enabled": "support_enable and support_use_towers",
                    "settable_per_mesh": true
                },
                "support_tower_roof_angle":
                {
                    "label": "Tower Roof Angle",
                    "description": "The angle of a rooftop of a tower. A higher value results in pointed tower roofs, a lower value results in flattened tower roofs.",
                    "unit": "°",
                    "type": "int",
                    "minimum_value": "0",
                    "maximum_value": "90",
                    "default_value": 65,
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "enabled": "support_enable and support_use_towers",
                    "settable_per_mesh": true
                }
            }
        },
        "platform_adhesion":
        {
            "label": "Build Plate Adhesion",
            "type": "category",
            "icon": "category_adhesion",
            "description": "Adhesion",
            "children":
            {
                "prime_blob_enable":
                {
                    "label": "Enable Prime Blob",
                    "description": "Whether to prime the filament with a blob before printing. Turning this setting on will ensure that the extruder will have material ready at the nozzle before printing. Printing Brim or Skirt can act like priming too, in which case turning this setting off saves some time.",
                    "type": "bool",
                    "resolve": "any(extruderValues('prime_blob_enable'))",
                    "default_value": true,
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "enabled": false
                },
                "extruder_prime_pos_x":
                {
                    "label": "Extruder Prime X Position",
                    "description": "The X coordinate of the position where the nozzle primes at the start of printing.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 0,
                    "minimum_value_warning": "machine_width / -2 if machine_center_is_zero else 0",
                    "maximum_value_warning": "machine_width / 2 if machine_center_is_zero else machine_width",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "enabled": false
                },
                "extruder_prime_pos_y":
                {
                    "label": "Extruder Prime Y Position",
                    "description": "The Y coordinate of the position where the nozzle primes at the start of printing.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 0,
                    "minimum_value_warning": "machine_depth / -2 if machine_center_is_zero else 0",
                    "maximum_value_warning": "machine_depth / 2 if machine_center_is_zero else machine_depth",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "enabled": false
                },
                "adhesion_type":
                {
                    "label": "Build Plate Adhesion Type",
                    "description": "Different options that help to improve both priming your extrusion and adhesion to the build plate. Brim adds a single layer flat area around the base of your model to prevent warping. Raft adds a thick grid with a roof below the model. Skirt is a line printed around the model, but not connected to the model.",
                    "type": "enum",
                    "options":
                    {
                        "skirt": "Skirt",
                        "brim": "Brim",
                        "raft": "Raft",
                        "none": "None"
                    },
                    "default_value": "brim",
                    "resolve": "extruderValue(adhesion_extruder_nr, 'adhesion_type')",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "adhesion_extruder_nr":
                {
                    "label": "Build Plate Adhesion Extruder",
                    "description": "The extruder train to use for printing the skirt/brim/raft. This is used in multi-extrusion.",
                    "type": "extruder",
                    "default_value": "0",
                    "enabled": "machine_extruder_count > 1 and resolveOrValue('adhesion_type') != 'none'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "skirt_line_count":
                {
                    "label": "Skirt Line Count",
                    "description": "Multiple skirt lines help to prime your extrusion better for small models. Setting this to 0 will disable the skirt.",
                    "type": "int",
                    "default_value": 1,
                    "minimum_value": "0",
                    "maximum_value_warning": "10",
                    "enabled": "resolveOrValue('adhesion_type') == 'skirt'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "limit_to_extruder": "adhesion_extruder_nr"
                },
                "skirt_gap":
                {
                    "label": "Skirt Distance",
                    "description": "The horizontal distance between the skirt and the first layer of the print.\nThis is the minimum distance. Multiple skirt lines will extend outwards from this distance.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 3,
                    "minimum_value_warning": "max(extruderValues('machine_nozzle_size'))",
                    "maximum_value_warning": "10",
                    "enabled": "resolveOrValue('adhesion_type') == 'skirt'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "limit_to_extruder": "adhesion_extruder_nr"
                },
                "skirt_brim_minimal_length":
                {
                    "label": "Skirt/Brim Minimum Length",
                    "description": "The minimum length of the skirt or brim. If this length is not reached by all skirt or brim lines together, more skirt or brim lines will be added until the minimum length is reached. Note: If the line count is set to 0 this is ignored.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 250,
                    "minimum_value": "0",
                    "minimum_value_warning": "25",
                    "maximum_value_warning": "2500",
                    "enabled": "resolveOrValue('adhesion_type') == 'skirt' or resolveOrValue('adhesion_type') == 'brim'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "brim_width":
                {
                    "label": "Brim Width",
                    "description": "The distance from the model to the outermost brim line. A larger brim enhances adhesion to the build plate, but also reduces the effective print area.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 8.0,
                    "minimum_value": "0.0",
                    "maximum_value_warning": "50.0",
                    "enabled": "resolveOrValue('adhesion_type') == 'brim'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "limit_to_extruder": "adhesion_extruder_nr",
                    "children":
                    {
                        "brim_line_count":
                        {
                            "label": "Brim Line Count",
                            "description": "The number of lines used for a brim. More brim lines enhance adhesion to the build plate, but also reduces the effective print area.",
                            "type": "int",
                            "default_value": 20,
                            "minimum_value": "0",
                            "maximum_value_warning": "50 / skirt_brim_line_width",
                            "value": "math.ceil(brim_width / (skirt_brim_line_width * initial_layer_line_width_factor / 100.0))",
                            "enabled": "resolveOrValue('adhesion_type') == 'brim'",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true,
                            "limit_to_extruder": "adhesion_extruder_nr"
                        }
                    }
                },
                "brim_outside_only":
                {
                    "label": "Brim Only on Outside",
                    "description": "Only print the brim on the outside of the model. This reduces the amount of brim you need to remove afterwards, while it doesn't reduce the bed adhesion that much.",
                    "type": "bool",
                    "default_value": true,
                    "enabled": "resolveOrValue('adhesion_type') == 'brim'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "limit_to_extruder": "adhesion_extruder_nr"
                },
                "raft_margin":
                {
                    "label": "Raft Extra Margin",
                    "description": "If the raft is enabled, this is the extra raft area around the model which is also given a raft. Increasing this margin will create a stronger raft while using more material and leaving less area for your print.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 15,
                    "minimum_value_warning": "raft_interface_line_width",
                    "maximum_value_warning": "20",
                    "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                    "limit_to_extruder": "adhesion_extruder_nr",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "raft_smoothing":
                {
                    "label": "Raft Smoothing",
                    "description": "This setting controls how much inner corners in the raft outline are rounded. Inward corners are rounded to a semi circle with a radius equal to the value given here. This setting also removes holes in the raft outline which are smaller than such a circle.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 5,
                    "minimum_value": "0",
                    "minimum_value_warning": "raft_interface_line_width",
                    "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                    "limit_to_extruder": "adhesion_extruder_nr",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "raft_airgap":
                {
                    "label": "Raft Air Gap",
                    "description": "The gap between the final raft layer and the first layer of the model. Only the first layer is raised by this amount to lower the bonding between the raft layer and the model. Makes it easier to peel off the raft.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.3,
                    "minimum_value": "0",
                    "maximum_value_warning": "min(extruderValues('machine_nozzle_size'))",
                    "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "limit_to_extruder": "adhesion_extruder_nr"
                },
                "layer_0_z_overlap":
                {
                    "label": "Initial Layer Z Overlap",
                    "description": "Make the first and second layer of the model overlap in the Z direction to compensate for the filament lost in the airgap. All models above the first model layer will be shifted down by this amount.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.22,
                    "value": "raft_airgap / 2",
                    "minimum_value": "0",
                    "maximum_value_warning": "raft_airgap",
                    "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "limit_to_extruder": "adhesion_extruder_nr"
                },
                "raft_surface_layers":
                {
                    "label": "Raft Top Layers",
                    "description": "The number of top layers on top of the 2nd raft layer. These are fully filled layers that the model sits on. 2 layers result in a smoother top surface than 1.",
                    "type": "int",
                    "default_value": 2,
                    "minimum_value": "0",
                    "maximum_value_warning": "20",
                    "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "limit_to_extruder": "adhesion_extruder_nr"
                },
                "raft_surface_thickness":
                {
                    "label": "Raft Top Layer Thickness",
                    "description": "Layer thickness of the top raft layers.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.1,
                    "value": "resolveOrValue('layer_height')",
                    "minimum_value": "0.001",
                    "minimum_value_warning": "0.04",
                    "maximum_value_warning": "0.75 * machine_nozzle_size",
                    "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "limit_to_extruder": "adhesion_extruder_nr"
                },
                "raft_surface_line_width":
                {
                    "label": "Raft Top Line Width",
                    "description": "Width of the lines in the top surface of the raft. These can be thin lines so that the top of the raft becomes smooth.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.4,
                    "value": "line_width",
                    "minimum_value": "0.001",
                    "minimum_value_warning": "machine_nozzle_size * 0.1",
                    "maximum_value_warning": "machine_nozzle_size * 2",
                    "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "limit_to_extruder": "adhesion_extruder_nr"
                },
                "raft_surface_line_spacing":
                {
                    "label": "Raft Top Spacing",
                    "description": "The distance between the raft lines for the top raft layers. The spacing should be equal to the line width, so that the surface is solid.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.4,
                    "minimum_value": "0",
                    "minimum_value_warning": "raft_surface_line_width",
                    "maximum_value_warning": "raft_surface_line_width * 3",
                    "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                    "value": "raft_surface_line_width",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "limit_to_extruder": "adhesion_extruder_nr"
                },
                "raft_interface_thickness":
                {
                    "label": "Raft Middle Thickness",
                    "description": "Layer thickness of the middle raft layer.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.15,
                    "value": "resolveOrValue('layer_height') * 1.5",
                    "minimum_value": "0.001",
                    "minimum_value_warning": "0.04",
                    "maximum_value_warning": "0.75 * machine_nozzle_size",
                    "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "limit_to_extruder": "adhesion_extruder_nr"
                },
                "raft_interface_line_width":
                {
                    "label": "Raft Middle Line Width",
                    "description": "Width of the lines in the middle raft layer. Making the second layer extrude more causes the lines to stick to the build plate.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.7,
                    "value": "line_width * 2",
                    "minimum_value": "0.001",
                    "minimum_value_warning": "machine_nozzle_size * 0.5",
                    "maximum_value_warning": "machine_nozzle_size * 3",
                    "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "limit_to_extruder": "adhesion_extruder_nr"
                },
                "raft_interface_line_spacing":
                {
                    "label": "Raft Middle Spacing",
                    "description": "The distance between the raft lines for the middle raft layer. The spacing of the middle should be quite wide, while being dense enough to support the top raft layers.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.9,
                    "value": "raft_interface_line_width + 0.2",
                    "minimum_value": "0",
                    "minimum_value_warning": "raft_interface_line_width",
                    "maximum_value_warning": "15.0",
                    "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "limit_to_extruder": "adhesion_extruder_nr"
                },
                "raft_base_thickness":
                {
                    "label": "Raft Base Thickness",
                    "description": "Layer thickness of the base raft layer. This should be a thick layer which sticks firmly to the printer build plate.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.3,
                    "value": "resolveOrValue('layer_height_0') * 1.2",
                    "minimum_value": "0.001",
                    "minimum_value_warning": "0.04",
                    "maximum_value_warning": "0.75 * raft_base_line_width",
                    "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "limit_to_extruder": "adhesion_extruder_nr"
                },
                "raft_base_line_width":
                {
                    "label": "Raft Base Line Width",
                    "description": "Width of the lines in the base raft layer. These should be thick lines to assist in build plate adhesion.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.8,
                    "minimum_value": "0.001",
                    "value": "machine_nozzle_size * 2",
                    "minimum_value_warning": "machine_nozzle_size * 0.5",
                    "maximum_value_warning": "machine_nozzle_size * 3",
                    "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "limit_to_extruder": "adhesion_extruder_nr"
                },
                "raft_base_line_spacing":
                {
                    "label": "Raft Line Spacing",
                    "description": "The distance between the raft lines for the base raft layer. Wide spacing makes for easy removal of the raft from the build plate.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 1.6,
                    "value": "raft_base_line_width * 2",
                    "minimum_value": "0",
                    "minimum_value_warning": "raft_base_line_width",
                    "maximum_value_warning": "100",
                    "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "limit_to_extruder": "adhesion_extruder_nr"
                },
                "raft_speed":
                {
                    "label": "Raft Print Speed",
                    "description": "The speed at which the raft is printed.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 20,
                    "minimum_value": "0.1",
                    "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                    "maximum_value_warning": "200",
                    "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                    "value": "speed_print / 60 * 30",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "limit_to_extruder": "adhesion_extruder_nr",
                    "children":
                    {
                        "raft_surface_speed":
                        {
                            "label": "Raft Top Print Speed",
                            "description": "The speed at which the top raft layers are printed. These should be printed a bit slower, so that the nozzle can slowly smooth out adjacent surface lines.",
                            "unit": "mm/s",
                            "type": "float",
                            "default_value": 20,
                            "minimum_value": "0.1",
                            "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                            "maximum_value_warning": "100",
                            "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                            "value": "raft_speed",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true,
                            "limit_to_extruder": "adhesion_extruder_nr"
                        },
                        "raft_interface_speed":
                        {
                            "label": "Raft Middle Print Speed",
                            "description": "The speed at which the middle raft layer is printed. This should be printed quite slowly, as the volume of material coming out of the nozzle is quite high.",
                            "unit": "mm/s",
                            "type": "float",
                            "default_value": 15,
                            "value": "raft_speed * 0.75",
                            "minimum_value": "0.1",
                            "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                            "maximum_value_warning": "150",
                            "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true,
                            "limit_to_extruder": "adhesion_extruder_nr"
                        },
                        "raft_base_speed":
                        {
                            "label": "Raft Base Print Speed",
                            "description": "The speed at which the base raft layer is printed. This should be printed quite slowly, as the volume of material coming out of the nozzle is quite high.",
                            "unit": "mm/s",
                            "type": "float",
                            "default_value": 15,
                            "minimum_value": "0.1",
                            "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                            "maximum_value_warning": "200",
                            "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                            "value": "0.75 * raft_speed",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true,
                            "limit_to_extruder": "adhesion_extruder_nr"
                        }
                    }
                },
                "raft_acceleration":
                {
                    "label": "Raft Print Acceleration",
                    "description": "The acceleration with which the raft is printed.",
                    "unit": "mm/s²",
                    "type": "float",
                    "default_value": 3000,
                    "minimum_value": "0.1",
                    "minimum_value_warning": "100",
                    "maximum_value_warning": "10000",
                    "value": "acceleration_print",
                    "enabled": "resolveOrValue('adhesion_type') == 'raft' and resolveOrValue('acceleration_enabled')",
                    "settable_per_mesh": false,
                    "limit_to_extruder": "adhesion_extruder_nr",
                    "children":
                    {
                        "raft_surface_acceleration":
                        {
                            "label": "Raft Top Print Acceleration",
                            "description": "The acceleration with which the top raft layers are printed.",
                            "unit": "mm/s²",
                            "type": "float",
                            "default_value": 3000,
                            "value": "raft_acceleration",
                            "minimum_value": "0.1",
                            "minimum_value_warning": "100",
                            "maximum_value_warning": "10000",
                            "enabled": "resolveOrValue('adhesion_type') == 'raft' and resolveOrValue('acceleration_enabled')",
                            "settable_per_mesh": false,
                            "limit_to_extruder": "adhesion_extruder_nr"
                        },
                        "raft_interface_acceleration":
                        {
                            "label": "Raft Middle Print Acceleration",
                            "description": "The acceleration with which the middle raft layer is printed.",
                            "unit": "mm/s²",
                            "type": "float",
                            "default_value": 3000,
                            "value": "raft_acceleration",
                            "minimum_value": "0.1",
                            "minimum_value_warning": "100",
                            "maximum_value_warning": "10000",
                            "enabled": "resolveOrValue('adhesion_type') == 'raft' and resolveOrValue('acceleration_enabled')",
                            "settable_per_mesh": false,
                            "limit_to_extruder": "adhesion_extruder_nr"
                        },
                        "raft_base_acceleration":
                        {
                            "label": "Raft Base Print Acceleration",
                            "description": "The acceleration with which the base raft layer is printed.",
                            "unit": "mm/s²",
                            "type": "float",
                            "default_value": 3000,
                            "value": "raft_acceleration",
                            "minimum_value": "0.1",
                            "minimum_value_warning": "100",
                            "maximum_value_warning": "10000",
                            "enabled": "resolveOrValue('adhesion_type') == 'raft' and resolveOrValue('acceleration_enabled')",
                            "settable_per_mesh": false,
                            "limit_to_extruder": "adhesion_extruder_nr"
                        }
                    }
                },
                "raft_jerk":
                {
                    "label": "Raft Print Jerk",
                    "description": "The jerk with which the raft is printed.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 20,
                    "minimum_value": "0",
                    "minimum_value_warning": "5",
                    "maximum_value_warning": "50",
                    "value": "jerk_print",
                    "enabled": "resolveOrValue('adhesion_type') == 'raft' and resolveOrValue('jerk_enabled')",
                    "settable_per_mesh": false,
                    "limit_to_extruder": "adhesion_extruder_nr",
                    "children":
                    {
                        "raft_surface_jerk":
                        {
                            "label": "Raft Top Print Jerk",
                            "description": "The jerk with which the top raft layers are printed.",
                            "unit": "mm/s",
                            "type": "float",
                            "default_value": 20,
                            "value": "raft_jerk",
                            "minimum_value": "0",
                            "minimum_value_warning": "5",
                            "maximum_value_warning": "100",
                            "enabled": "resolveOrValue('adhesion_type') == 'raft' and resolveOrValue('jerk_enabled')",
                            "settable_per_mesh": false,
                            "limit_to_extruder": "adhesion_extruder_nr"
                        },
                        "raft_interface_jerk":
                        {
                            "label": "Raft Middle Print Jerk",
                            "description": "The jerk with which the middle raft layer is printed.",
                            "unit": "mm/s",
                            "type": "float",
                            "default_value": 20,
                            "value": "raft_jerk",
                            "minimum_value": "0",
                            "minimum_value_warning": "5",
                            "maximum_value_warning": "50",
                            "enabled": "resolveOrValue('adhesion_type') == 'raft' and resolveOrValue('jerk_enabled')",
                            "settable_per_mesh": false,
                            "limit_to_extruder": "adhesion_extruder_nr"
                        },
                        "raft_base_jerk":
                        {
                            "label": "Raft Base Print Jerk",
                            "description": "The jerk with which the base raft layer is printed.",
                            "unit": "mm/s",
                            "type": "float",
                            "default_value": 20,
                            "value": "raft_jerk",
                            "minimum_value": "0",
                            "minimum_value_warning": "5",
                            "maximum_value_warning": "50",
                            "enabled": "resolveOrValue('adhesion_type') == 'raft' and resolveOrValue('jerk_enabled')",
                            "settable_per_mesh": false,
                            "limit_to_extruder": "adhesion_extruder_nr"
                        }
                    }
                },
                "raft_fan_speed":
                {
                    "label": "Raft Fan Speed",
                    "description": "The fan speed for the raft.",
                    "unit": "%",
                    "type": "float",
                    "minimum_value": "0",
                    "maximum_value": "100",
                    "default_value": 0,
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                    "limit_to_extruder": "adhesion_extruder_nr",
                    "children":
                    {
                        "raft_surface_fan_speed":
                        {
                            "label": "Raft Top Fan Speed",
                            "description": "The fan speed for the top raft layers.",
                            "unit": "%",
                            "type": "float",
                            "minimum_value": "0",
                            "maximum_value": "100",
                            "default_value": 0,
                            "value": "raft_fan_speed",
                            "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true,
                            "limit_to_extruder": "adhesion_extruder_nr"
                        },
                        "raft_interface_fan_speed":
                        {
                            "label": "Raft Middle Fan Speed",
                            "description": "The fan speed for the middle raft layer.",
                            "unit": "%",
                            "type": "float",
                            "minimum_value": "0",
                            "maximum_value": "100",
                            "default_value": 0,
                            "value": "raft_fan_speed",
                            "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true,
                            "limit_to_extruder": "adhesion_extruder_nr"
                        },
                        "raft_base_fan_speed":
                        {
                            "label": "Raft Base Fan Speed",
                            "description": "The fan speed for the base raft layer.",
                            "unit": "%",
                            "type": "float",
                            "minimum_value": "0",
                            "maximum_value": "100",
                            "default_value": 0,
                            "value": "raft_fan_speed",
                            "enabled": "resolveOrValue('adhesion_type') == 'raft'",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true,
                            "limit_to_extruder": "adhesion_extruder_nr"
                        }
                    }
                }
            }
        },
        "dual":
        {
            "label": "Dual Extrusion",
            "type": "category",
            "icon": "category_dual",
            "description": "Settings used for printing with multiple extruders.",
            "children":
            {
                "prime_tower_enable":
                {
                    "label": "Enable Prime Tower",
                    "description": "Print a tower next to the print which serves to prime the material after each nozzle switch.",
                    "type": "bool",
                    "enabled": "machine_extruder_count > 1",
                    "default_value": false,
                    "resolve": "any(extruderValues('prime_tower_enable'))",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "prime_tower_size":
                {
                    "label": "Prime Tower Size",
                    "description": "The width of the prime tower.",
                    "type": "float",
                    "unit": "mm",
                    "enabled": "resolveOrValue('prime_tower_enable')",
                    "default_value": 20,
                    "resolve": "max(extruderValues('prime_tower_size'))",
                    "minimum_value": "0",
                    "maximum_value": "min(0.5 * machine_width, 0.5 * machine_depth)",
                    "minimum_value_warning": "max(extruderValues('prime_tower_line_width')) * 2",
                    "maximum_value_warning": "20",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "prime_tower_min_volume":
                {
                    "label": "Prime Tower Minimum Volume",
                    "description": "The minimum volume for each layer of the prime tower in order to purge enough material.",
                    "unit": "mm³",
                    "type": "float",
                    "default_value": 10,
                    "minimum_value": "0",
                    "maximum_value_warning": "resolveOrValue('prime_tower_size') ** 2 * resolveOrValue('layer_height')",
                    "enabled": "resolveOrValue('prime_tower_enable')",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "children":
                    {
                        "prime_tower_wall_thickness":
                        {
                            "label": "Prime Tower Thickness",
                            "description": "The thickness of the hollow prime tower. A thickness larger than half the Prime Tower Minimum Volume will result in a dense prime tower.",
                            "unit": "mm",
                            "type": "float",
                            "default_value": 2,
                            "value": "round(max(2 * prime_tower_line_width, 0.5 * (prime_tower_size - math.sqrt(max(0, prime_tower_size ** 2 - prime_tower_min_volume / layer_height)))), 3)",
                            "resolve": "max(extruderValues('prime_tower_wall_thickness'))",
                            "minimum_value": "0.001",
                            "minimum_value_warning": "2 * min(extruderValues('prime_tower_line_width')) - 0.0001",
                            "maximum_value_warning": "prime_tower_size / 2",
                            "enabled": "prime_tower_enable",
                            "settable_per_mesh": false,
                            "settable_per_extruder": false
                        }
                    }
                },
                "prime_tower_position_x":
                {
                    "label": "Prime Tower X Position",
                    "description": "The x coordinate of the position of the prime tower.",
                    "type": "float",
                    "unit": "mm",
                    "enabled": "resolveOrValue('prime_tower_enable')",
                    "default_value": 200,
                    "value": "machine_width - max(extruderValue(adhesion_extruder_nr, 'brim_width') * extruderValue(adhesion_extruder_nr, 'initial_layer_line_width_factor') / 100 if adhesion_type == 'brim' else (extruderValue(adhesion_extruder_nr, 'raft_margin') if adhesion_type == 'raft' else (extruderValue(adhesion_extruder_nr, 'skirt_gap') if adhesion_type == 'skirt' else 0)), max(extruderValues('travel_avoid_distance'))) - max(extruderValues('support_offset')) - sum(extruderValues('skirt_brim_line_width')) * extruderValue(adhesion_extruder_nr, 'initial_layer_line_width_factor') / 100 - 1",
                    "maximum_value": "machine_width / 2 if machine_center_is_zero else machine_width",
                    "minimum_value": "resolveOrValue('prime_tower_size') - machine_width / 2 if machine_center_is_zero else resolveOrValue('prime_tower_size')",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "prime_tower_position_y":
                {
                    "label": "Prime Tower Y Position",
                    "description": "The y coordinate of the position of the prime tower.",
                    "type": "float",
                    "unit": "mm",
                    "enabled": "resolveOrValue('prime_tower_enable')",
                    "default_value": 200,
                    "value": "machine_depth - prime_tower_size - max(extruderValue(adhesion_extruder_nr, 'brim_width') * extruderValue(adhesion_extruder_nr, 'initial_layer_line_width_factor') / 100 if adhesion_type == 'brim' else (extruderValue(adhesion_extruder_nr, 'raft_margin') if adhesion_type == 'raft' else (extruderValue(adhesion_extruder_nr, 'skirt_gap') if adhesion_type == 'skirt' else 0)), max(extruderValues('travel_avoid_distance'))) - max(extruderValues('support_offset')) - sum(extruderValues('skirt_brim_line_width')) * extruderValue(adhesion_extruder_nr, 'initial_layer_line_width_factor') / 100 - 1",
                    "maximum_value": "machine_depth / 2 - resolveOrValue('prime_tower_size') if machine_center_is_zero else machine_depth - resolveOrValue('prime_tower_size')",
                    "minimum_value": "machine_depth / -2 if machine_center_is_zero else 0",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "prime_tower_flow":
                {
                    "label": "Prime Tower Flow",
                    "description": "Flow compensation: the amount of material extruded is multiplied by this value.",
                    "type": "float",
                    "unit": "%",
                    "enabled": "resolveOrValue('prime_tower_enable')",
                    "default_value": 100,
                    "value": "material_flow",
                    "minimum_value": "0.0001",
                    "minimum_value_warning": "50",
                    "maximum_value_warning": "150",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "prime_tower_wipe_enabled":
                {
                    "label": "Wipe Inactive Nozzle on Prime Tower",
                    "description": "After printing the prime tower with one nozzle, wipe the oozed material from the other nozzle off on the prime tower.",
                    "type": "bool",
                    "enabled": "resolveOrValue('prime_tower_enable')",
                    "default_value": true,
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "dual_pre_wipe":
                {
                    "label": "Wipe Nozzle After Switch",
                    "description": "After switching extruder, wipe the oozed material off of the nozzle on the first thing printed. This performs a safe slow wipe move at a place where the oozed material causes least harm to the surface quality of your print.",
                    "type": "bool",
                    "enabled": "resolveOrValue('prime_tower_enable')",
                    "default_value": true,
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "prime_tower_purge_volume":
                {
                    "label": "Prime Tower Purge Volume",
                    "description": "Amount of filament to be purged when wiping on the prime tower. Purging is useful for compensating the filament lost by oozing during inactivity of the nozzle.",
                    "type": "float",
                    "enabled": "resolveOrValue('prime_tower_enable') and dual_pre_wipe",
                    "unit": "mm³",
                    "default_value": 0,
                    "minimum_value": "0",
                    "maximum_value_warning": "1",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "ooze_shield_enabled":
                {
                    "label": "Enable Ooze Shield",
                    "description": "Enable exterior ooze shield. This will create a shell around the model which is likely to wipe a second nozzle if it's at the same height as the first nozzle.",
                    "type": "bool",
                    "resolve": "any(extruderValues('ooze_shield_enabled'))",
                    "enabled": "machine_extruder_count > 1",
                    "default_value": false,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "ooze_shield_angle":
                {
                    "label": "Ooze Shield Angle",
                    "description": "The maximum angle a part in the ooze shield will have. With 0 degrees being vertical, and 90 degrees being horizontal. A smaller angle leads to less failed ooze shields, but more material.",
                    "type": "float",
                    "unit": "°",
                    "enabled": "resolveOrValue('ooze_shield_enabled')",
                    "default_value": 60,
                    "resolve": "min(extruderValues('ooze_shield_angle'))",
                    "minimum_value": "0",
                    "maximum_value": "90",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "ooze_shield_dist":
                {
                    "label": "Ooze Shield Distance",
                    "description": "Distance of the ooze shield from the print, in the X/Y directions.",
                    "type": "float",
                    "unit": "mm",
                    "enabled": "resolveOrValue('ooze_shield_enabled')",
                    "default_value": 2,
                    "resolve": "max(extruderValues('ooze_shield_dist'))",
                    "minimum_value": "0",
                    "maximum_value_warning": "20",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                }
            }
        },
        "meshfix":
        {
            "label": "Mesh Fixes",
            "type": "category",
            "icon": "category_fixes",
            "description": "category_fixes",
            "children":
            {
                "meshfix_union_all":
                {
                    "label": "Union Overlapping Volumes",
                    "description": "Ignore the internal geometry arising from overlapping volumes within a mesh and print the volumes as one. This may cause unintended internal cavities to disappear.",
                    "type": "bool",
                    "default_value": true,
                    "settable_per_mesh": true
                },
                "meshfix_union_all_remove_holes":
                {
                    "label": "Remove All Holes",
                    "description": "Remove the holes in each layer and keep only the outside shape. This will ignore any invisible internal geometry. However, it also ignores layer holes which can be viewed from above or below.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": true
                },
                "meshfix_extensive_stitching":
                {
                    "label": "Extensive Stitching",
                    "description": "Extensive stitching tries to stitch up open holes in the mesh by closing the hole with touching polygons. This option can introduce a lot of processing time.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": true
                },
                "meshfix_keep_open_polygons":
                {
                    "label": "Keep Disconnected Faces",
                    "description": "Normally Cura tries to stitch up small holes in the mesh and remove parts of a layer with big holes. Enabling this option keeps those parts which cannot be stitched. This option should be used as a last resort option when everything else fails to produce proper GCode.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": true
                },
                "meshfix_maximum_resolution":
                {
                    "label": "Maximum Resolution",
                    "description": "The minimum size of a line segment after slicing. If you increase this, the mesh will have a lower resolution. This may allow the printer to keep up with the speed it has to process g-code and will increase slice speed by removing details of the mesh that it can't process anyway.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 0.01,
                    "minimum_value": "0.001",
                    "minimum_value_warning": "0.005",
                    "maximum_value_warning": "0.1",
                    "settable_per_mesh": true
                },
                "multiple_mesh_overlap":
                {
                    "label": "Merged Meshes Overlap",
                    "description": "Make meshes which are touching each other overlap a bit. This makes them bond together better.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 0.15,
                    "minimum_value": "0",
                    "maximum_value_warning": "1.0",
                    "limit_to_extruder": "wall_0_extruder_nr",
                    "settable_per_mesh": true
                },
                "carve_multiple_volumes":
                {
                    "label": "Remove Mesh Intersection",
                    "description": "Remove areas where multiple meshes are overlapping with each other. This may be used if merged dual material objects overlap with each other.",
                    "type": "bool",
                    "default_value": true,
                    "value": "machine_extruder_count > 1",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": true
                },
                "alternate_carve_order":
                {
                    "label": "Alternate Mesh Removal",
                    "description": "Switch to which mesh intersecting volumes will belong with every layer, so that the overlapping meshes become interwoven. Turning this setting off will cause one of the meshes to obtain all of the volume in the overlap, while it is removed from the other meshes.",
                    "type": "bool",
                    "default_value": true,
                    "enabled": "carve_multiple_volumes",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": true
                },
                "remove_empty_first_layers":
                {
                    "label": "Remove Empty First Layers",
                    "description": "Remove empty layers beneath the first printed layer if they are present. Disabling this setting can cause empty first layers if the Slicing Tolerance setting is set to Exclusive or Middle.",
                    "type": "bool",
                    "default_value": true,
                    "enabled": "not support_enable",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                }
            }
        },
        "blackmagic":
        {
            "label": "Special Modes",
            "type": "category",
            "icon": "category_blackmagic",
            "description": "category_blackmagic",
            "children":
            {
                "print_sequence":
                {
                    "label": "Print Sequence",
                    "description": "Whether to print all models one layer at a time or to wait for one model to finish, before moving on to the next. One at a time mode is only possible if all models are separated in such a way that the whole print head can move in between and all models are lower than the distance between the nozzle and the X/Y axes.",
                    "type": "enum",
                    "options":
                    {
                        "all_at_once": "All at Once",
                        "one_at_a_time": "One at a Time"
                    },
                    "default_value": "all_at_once",
                    "enabled": "machine_extruder_count == 1",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "infill_mesh":
                {
                    "label": "Infill Mesh",
                    "description": "Use this mesh to modify the infill of other meshes with which it overlaps. Replaces infill regions of other meshes with regions for this mesh. It's suggested to only print one Wall and no Top/Bottom Skin for this mesh.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": true,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false,
                    "settable_globally": false
                },
                "infill_mesh_order":
                {
                    "label": "Infill Mesh Order",
                    "description": "Determines which infill mesh is inside the infill of another infill mesh. An infill mesh with a higher order will modify the infill of infill meshes with lower order and normal meshes.",
                    "default_value": 0,
                    "value": "1 if infill_mesh else 0",
                    "minimum_value_warning": "1",
                    "maximum_value_warning": "50",
                    "type": "int",
                    "settable_per_mesh": true,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false,
                    "settable_globally": false
                },
                "cutting_mesh":
                {
                    "label": "Cutting Mesh",
                    "description": "Limit the volume of this mesh to within other meshes. You can use this to make certain areas of one mesh print with different settings and with a whole different extruder.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": true,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false,
                    "settable_globally": false
                },
                "mold_enabled":
                {
                    "label": "Mold",
                    "description": "Print models as a mold, which can be cast in order to get a model which resembles the models on the build plate.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": true
                },
                "mold_width":
                {
                    "label": "Minimal Mold Width",
                    "description": "The minimal distance between the ouside of the mold and the outside of the model.",
                    "unit": "mm",
                    "type": "float",
                    "minimum_value_warning": "wall_line_width_0 * 2",
                    "maximum_value_warning": "100",
                    "default_value": 5,
                    "settable_per_mesh": true,
                    "enabled": "mold_enabled"
                },
                "mold_roof_height":
                {
                    "label": "Mold Roof Height",
                    "description": "The height above horizontal parts in your model which to print mold.",
                    "unit": "mm",
                    "type": "float",
                    "minimum_value": "0",
                    "maximum_value_warning": "5",
                    "default_value": 0.5,
                    "settable_per_mesh": true,
                    "enabled": "mold_enabled"
                },
                "mold_angle":
                {
                    "label": "Mold Angle",
                    "description": "The angle of overhang of the outer walls created for the mold. 0° will make the outer shell of the mold vertical, while 90° will make the outside of the model follow the contour of the model.",
                    "unit": "°",
                    "type": "float",
                    "minimum_value": "-89",
                    "minimum_value_warning": "0",
                    "maximum_value_warning": "support_angle",
                    "maximum_value": "90",
                    "default_value": 40,
                    "settable_per_mesh": true,
                    "enabled": "mold_enabled"
                },
                "support_mesh":
                {
                    "label": "Support Mesh",
                    "description": "Use this mesh to specify support areas. This can be used to generate support structure.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": true,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false,
                    "settable_globally": false
                },
                "support_mesh_drop_down":
                {
                    "label": "Drop Down Support Mesh",
                    "description": "Make support everywhere below the support mesh, so that there's no overhang in the support mesh.",
                    "type": "bool",
                    "default_value": true,
                    "enabled": "support_mesh",
                    "settable_per_mesh": true,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false,
                    "settable_globally": false
                },
                "anti_overhang_mesh":
                {
                    "label": "Anti Overhang Mesh",
                    "description": "Use this mesh to specify where no part of the model should be detected as overhang. This can be used to remove unwanted support structure.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": true,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false,
                    "settable_globally": false
                },
                "magic_mesh_surface_mode":
                {
                    "label": "Surface Mode",
                    "description": "Treat the model as a surface only, a volume, or volumes with loose surfaces. The normal print mode only prints enclosed volumes. \"Surface\" prints a single wall tracing the mesh surface with no infill and no top/bottom skin. \"Both\" prints enclosed volumes like normal and any remaining polygons as surfaces.",
                    "type": "enum",
                    "options":
                    {
                        "normal": "Normal",
                        "surface": "Surface",
                        "both": "Both"
                    },
                    "default_value": "normal",
                    "settable_per_mesh": true
                },
                "magic_spiralize":
                {
                    "label": "Spiralize Outer Contour",
                    "description": "Spiralize smooths out the Z move of the outer edge. This will create a steady Z increase over the whole print. This feature turns a solid model into a single walled print with a solid bottom. This feature should only be enabled when each layer only contains a single part.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "smooth_spiralized_contours":
                {
                    "label": "Smooth Spiralized Contours",
                    "description": "Smooth the spiralized contours to reduce the visibility of the Z seam (the Z-seam should be barely visible on the print but will still be visible in the layer view). Note that smoothing will tend to blur fine surface details.",
                    "type": "bool",
                    "default_value": true,
                    "enabled": "magic_spiralize",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "relative_extrusion":
                {
                    "label": "Relative Extrusion",
                    "description": "Use relative extrusion rather than absolute extrusion. Using relative E-steps makes for easier post-processing of the Gcode. However, it's not supported by all printers and it may produce very slight deviations in the amount of deposited material compared to absolute E-steps. Irrespective of this setting, the extrusion mode will always be set to absolute before any Gcode script is output.",
                    "type": "bool",
                    "default_value": false,
                    "value": "machine_gcode_flavor==\"RepRap (RepRap)\"",
                    "enabled": true,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                }
            }
        },
        "experimental":
        {
            "label": "Experimental",
            "type": "category",
            "icon": "category_experimental",
            "description": "experimental!",
            "children":
            {
                "optimize_wall_printing_order":
                {
                    "label": "Optimize Wall Printing Order",
                    "description": "Optimize the order in which walls are printed so as to reduce the number of retractions and the distance travelled. Most parts will benefit from this being enabled but some may actually take longer so please compare the print time estimates with and without optimization.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": true
                },
                "support_skip_some_zags":
                {
                    "label": "Break Up Support In Chunks",
                    "description": "Skip some support line connections to make the support structure easier to break away. This setting is applicable to the Zig Zag support infill pattern.",
                    "type": "bool",
                    "default_value": false,
                    "enabled": "support_enable and (support_pattern == 'zigzag')",
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "support_skip_zag_per_mm":
                {
                    "label": "Support Chunk Size",
                    "description": "Leave out a connection between support lines once every N millimeter to make the support structure easier to break away.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 20,
                    "minimum_value": "0",
                    "minimum_value_warning": "support_line_distance",
                    "enabled": "support_enable and (support_pattern == 'zigzag') and support_skip_some_zags",
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true,
                    "children":
                    {
                        "support_zag_skip_count":
                        {
                            "label": "Support Chunk Line Count",
                            "description": "Skip one in every N connection lines to make the support structure easier to break away.",
                            "type": "int",
                            "default_value": 5,
                            "value": "0 if support_line_distance == 0 else round(support_skip_zag_per_mm / support_line_distance)",
                            "minimum_value": "1",
                            "minimum_value_warning": "3",
                            "enabled": "support_enable and (support_pattern == 'zigzag') and support_skip_some_zags",
                            "limit_to_extruder": "support_infill_extruder_nr",
                            "settable_per_mesh": false,
                            "settable_per_extruder": true
                        }
                    }
                },
                "draft_shield_enabled":
                {
                    "label": "Enable Draft Shield",
                    "description": "This will create a wall around the model, which traps (hot) air and shields against exterior airflow. Especially useful for materials which warp easily.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "draft_shield_dist":
                {
                    "label": "Draft Shield X/Y Distance",
                    "description": "Distance of the draft shield from the print, in the X/Y directions.",
                    "unit": "mm",
                    "type": "float",
                    "minimum_value": "0",
                    "maximum_value_warning": "10",
                    "default_value": 10,
                    "resolve": "max(extruderValues('draft_shield_dist'))",
                    "enabled": "draft_shield_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "draft_shield_height_limitation":
                {
                    "label": "Draft Shield Limitation",
                    "description": "Set the height of the draft shield. Choose to print the draft shield at the full height of the model or at a limited height.",
                    "type": "enum",
                    "options":
                    {
                        "full": "Full",
                        "limited": "Limited"
                    },
                    "default_value": "full",
                    "resolve": "'full' if 'full' in extruderValues('draft_shield_height_limitation') else 'limited'",
                    "enabled": "draft_shield_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "draft_shield_height":
                {
                    "label": "Draft Shield Height",
                    "description": "Height limitation of the draft shield. Above this height no draft shield will be printed.",
                    "unit": "mm",
                    "type": "float",
                    "minimum_value": "0",
                    "maximum_value_warning": "9999",
                    "default_value": 10,
                    "value": "10",
                    "enabled": "draft_shield_enabled and draft_shield_height_limitation == 'limited'",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false
                },
                "conical_overhang_enabled":
                {
                    "label": "Make Overhang Printable",
                    "description": "Change the geometry of the printed model such that minimal support is required. Steep overhangs will become shallow overhangs. Overhanging areas will drop down to become more vertical.",
                    "type": "bool",
                    "default_value": false
                },
                "conical_overhang_angle":
                {
                    "label": "Maximum Model Angle",
                    "description": "The maximum angle of overhangs after the they have been made printable. At a value of 0° all overhangs are replaced by a piece of model connected to the build plate, 90° will not change the model in any way.",
                    "unit": "°",
                    "type": "float",
                    "minimum_value": "-89",
                    "minimum_value_warning": "0",
                    "maximum_value": "89",
                    "default_value": 50,
                    "enabled": "conical_overhang_enabled"
                },
                "coasting_enable":
                {
                    "label": "Enable Coasting",
                    "description": "Coasting replaces the last part of an extrusion path with a travel path. The oozed material is used to print the last piece of the extrusion path in order to reduce stringing.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "coasting_volume":
                {
                    "label": "Coasting Volume",
                    "description": "The volume otherwise oozed. This value should generally be close to the nozzle diameter cubed.",
                    "unit": "mm³",
                    "type": "float",
                    "default_value": 0.064,
                    "minimum_value": "0",
                    "maximum_value_warning": "machine_nozzle_size * 5",
                    "enabled": "coasting_enable",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "coasting_min_volume":
                {
                    "label": "Minimum Volume Before Coasting",
                    "description": "The smallest volume an extrusion path should have before allowing coasting. For smaller extrusion paths, less pressure has been built up in the bowden tube and so the coasted volume is scaled linearly. This value should always be larger than the Coasting Volume.",
                    "unit": "mm³",
                    "type": "float",
                    "default_value": 0.8,
                    "minimum_value": "0",
                    "maximum_value_warning": "10.0",
                    "enabled": "coasting_enable",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "coasting_speed":
                {
                    "label": "Coasting Speed",
                    "description": "The speed by which to move during coasting, relative to the speed of the extrusion path. A value slightly under 100% is advised, since during the coasting move the pressure in the bowden tube drops.",
                    "unit": "%",
                    "type": "float",
                    "default_value": 90,
                    "minimum_value": "0.0001",
                    "maximum_value_warning": "100",
                    "enabled": "coasting_enable",
                    "settable_per_mesh": false,
                    "settable_per_extruder": true
                },
                "skin_alternate_rotation":
                {
                    "label": "Alternate Skin Rotation",
                    "description": "Alternate the direction in which the top/bottom layers are printed. Normally they are printed diagonally only. This setting adds the X-only and Y-only directions.",
                    "type": "bool",
                    "default_value": false,
                    "enabled": "top_bottom_pattern != 'concentric'",
                    "limit_to_extruder": "top_bottom_extruder_nr",
                    "settable_per_mesh": true
                },
                "cross_infill_pocket_size":
                {
                    "label": "Cross 3D Pocket Size",
                    "description": "The size of pockets at four-way crossings in the cross 3D pattern at heights where the pattern is touching itself.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 2.0,
                    "value": "infill_line_distance",
                    "minimum_value": "0",
                    "maximum_value_warning": "infill_line_distance * math.sqrt(2)",
                    "enabled": "infill_pattern == 'cross_3d'",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "cross_infill_apply_pockets_alternatingly":
                {
                    "label": "Alternate Cross 3D Pockets",
                    "description": "Only apply pockets at half of the four-way crossings in the cross 3D pattern and alternate the location of the pockets between heights where the pattern is touching itself.",
                    "type": "bool",
                    "default_value": true,
                    "enabled": "infill_pattern == 'cross_3d'",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "spaghetti_infill_enabled":
                {
                    "label": "Spaghetti Infill",
                    "description": "Print the infill every so often, so that the filament will curl up chaotically inside the object. This reduces print time, but the behaviour is rather unpredictable.",
                    "type": "bool",
                    "default_value": false,
                    "enabled": "infill_sparse_density > 0",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "spaghetti_infill_stepped":
                {
                    "label": "Spaghetti Infill Stepping",
                    "description": "Whether to print spaghetti infill in steps or extrude all the infill filament at the end of the print.",
                    "type": "bool",
                    "default_value": true,
                    "enabled": "infill_sparse_density > 0 and spaghetti_infill_enabled",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "spaghetti_max_infill_angle":
                {
                    "label": "Spaghetti Maximum Infill Angle",
                    "description": "The maximum angle w.r.t. the Z axis of the inside of the print for areas which are to be filled with spaghetti infill afterwards. Lowering this value causes more angled parts in your model to be filled on each layer.",
                    "unit": "°",
                    "type": "float",
                    "default_value": 10,
                    "minimum_value": "0",
                    "maximum_value": "90",
                    "maximum_value_warning": "45",
                    "enabled": "infill_sparse_density > 0 and spaghetti_infill_enabled and spaghetti_infill_stepped",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "spaghetti_max_height":
                {
                    "label": "Spaghetti Infill Maximum Height",
                    "description": "The maximum height of inside space which can be combined and filled from the top.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 2.0,
                    "minimum_value": "layer_height",
                    "maximum_value_warning": "10.0",
                    "enabled": "infill_sparse_density > 0 and spaghetti_infill_enabled and spaghetti_infill_stepped",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "spaghetti_inset":
                {
                    "label": "Spaghetti Inset",
                    "description": "The offset from the walls from where the spaghetti infill will be printed.",
                    "unit": "mm",
                    "type": "float",
                    "default_value": 0.2,
                    "minimum_value_warning": "0",
                    "maximum_value_warning": "5.0",
                    "enabled": "infill_sparse_density > 0 and spaghetti_infill_enabled",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "spaghetti_flow":
                {
                    "label": "Spaghetti Flow",
                    "description": "Adjusts the density of the spaghetti infill. Note that the Infill Density only controls the line spacing of the filling pattern, not the amount of extrusion for spaghetti infill.",
                    "unit": "%",
                    "type": "float",
                    "default_value": 20,
                    "minimum_value": "0",
                    "maximum_value_warning": "100",
                    "enabled": "infill_sparse_density > 0 and spaghetti_infill_enabled",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "spaghetti_infill_extra_volume":
                {
                    "label": "Spaghetti Infill Extra Volume",
                    "description": "A correction term to adjust the total volume being extruded each time when filling spaghetti.",
                    "unit": "mm³",
                    "type": "float",
                    "default_value": 0,
                    "minimum_value_warning": "0",
                    "maximum_value_warning": "100",
                    "enabled": "infill_sparse_density > 0 and spaghetti_infill_enabled",
                    "limit_to_extruder": "infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "support_conical_enabled":
                {
                    "label": "Enable Conical Support",
                    "description": "Experimental feature: Make support areas smaller at the bottom than at the overhang.",
                    "type": "bool",
                    "default_value": false,
                    "enabled": "support_enable",
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "support_conical_angle":
                {
                    "label": "Conical Support Angle",
                    "description": "The angle of the tilt of conical support. With 0 degrees being vertical, and 90 degrees being horizontal. Smaller angles cause the support to be more sturdy, but consist of more material. Negative angles cause the base of the support to be wider than the top.",
                    "unit": "°",
                    "type": "float",
                    "minimum_value": "-90",
                    "minimum_value_warning": "-45",
                    "maximum_value_warning": "45",
                    "maximum_value": "90",
                    "default_value": 30,
                    "enabled": "support_conical_enabled and support_enable",
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "support_conical_min_width":
                {
                    "label": "Conical Support Minimum Width",
                    "description": "Minimum width to which the base of the conical support area is reduced. Small widths can lead to unstable support structures.",
                    "unit": "mm",
                    "default_value": 5.0,
                    "minimum_value": "0",
                    "minimum_value_warning": "machine_nozzle_size * 3",
                    "maximum_value_warning": "100.0",
                    "type": "float",
                    "enabled": "support_conical_enabled and support_enable",
                    "limit_to_extruder": "support_infill_extruder_nr",
                    "settable_per_mesh": true
                },
                "infill_hollow":
                {
                    "label": "Hollow Out Objects",
                    "description": "Remove all infill and make the inside of the object eligible for support.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": true
                },
                "magic_fuzzy_skin_enabled":
                {
                    "label": "Fuzzy Skin",
                    "description": "Randomly jitter while printing the outer wall, so that the surface has a rough and fuzzy look.",
                    "type": "bool",
                    "default_value": false,
                    "limit_to_extruder": "wall_0_extruder_nr",
                    "settable_per_mesh": true
                },
                "magic_fuzzy_skin_thickness":
                {
                    "label": "Fuzzy Skin Thickness",
                    "description": "The width within which to jitter. It's advised to keep this below the outer wall width, since the inner walls are unaltered.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 0.3,
                    "minimum_value": "0.001",
                    "maximum_value_warning": "wall_line_width_0",
                    "enabled": "magic_fuzzy_skin_enabled",
                    "limit_to_extruder": "wall_0_extruder_nr",
                    "settable_per_mesh": true
                },
                "magic_fuzzy_skin_point_density":
                {
                    "label": "Fuzzy Skin Density",
                    "description": "The average density of points introduced on each polygon in a layer. Note that the original points of the polygon are discarded, so a low density results in a reduction of the resolution.",
                    "type": "float",
                    "unit": "1/mm",
                    "default_value": 1.25,
                    "minimum_value": "0.008",
                    "minimum_value_warning": "0.1",
                    "maximum_value_warning": "10",
                    "maximum_value": "2 / magic_fuzzy_skin_thickness",
                    "enabled": "magic_fuzzy_skin_enabled",
                    "limit_to_extruder": "wall_0_extruder_nr",
                    "settable_per_mesh": true,
                    "children":
                    {
                        "magic_fuzzy_skin_point_dist":
                        {
                            "label": "Fuzzy Skin Point Distance",
                            "description": "The average distance between the random points introduced on each line segment. Note that the original points of the polygon are discarded, so a high smoothness results in a reduction of the resolution. This value must be higher than half the Fuzzy Skin Thickness.",
                            "type": "float",
                            "unit": "mm",
                            "default_value": 0.8,
                            "minimum_value": "magic_fuzzy_skin_thickness / 2",
                            "minimum_value_warning": "0.1",
                            "maximum_value_warning": "10",
                            "value": "10000 if magic_fuzzy_skin_point_density == 0 else 1 / magic_fuzzy_skin_point_density",
                            "enabled": "magic_fuzzy_skin_enabled",
                            "limit_to_extruder": "wall_0_extruder_nr",
                            "settable_per_mesh": true
                        }
                    }
                },
                "flow_rate_max_extrusion_offset":
                {
                    "label": "Flow rate compensation max extrusion offset",
                    "description": "The maximum distance in mm to compensate.",
                    "unit": "mm",
                    "type": "float",
                    "minimum_value": "0",
                    "maximum_value_warning": "10",
                    "default_value": 0,
                    "value": "0",
                    "enabled": true,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "flow_rate_extrusion_offset_factor":
                {
                    "label": "Flow rate compensation factor",
                    "description": "The multiplication factor for the flow rate -> distance translation.",
                    "unit": "%",
                    "type": "float",
                    "minimum_value": "0",
                    "maximum_value_warning": "100",
                    "default_value": 100,
                    "value": "100",
                    "enabled": true,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "wireframe_enabled":
                {
                    "label": "Wire Printing",
                    "description": "Print only the outside surface with a sparse webbed structure, printing 'in thin air'. This is realized by horizontally printing the contours of the model at given Z intervals which are connected via upward and diagonally downward lines.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "wireframe_height":
                {
                    "label": "WP Connection Height",
                    "description": "The height of the upward and diagonally downward lines between two horizontal parts. This determines the overall density of the net structure. Only applies to Wire Printing.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 3,
                    "value": "machine_nozzle_head_distance",
                    "minimum_value": "0.0001",
                    "maximum_value_warning": "20",
                    "enabled": "wireframe_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "wireframe_roof_inset":
                {
                    "label": "WP Roof Inset Distance",
                    "description": "The distance covered when making a connection from a roof outline inward. Only applies to Wire Printing.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 3,
                    "minimum_value": "0",
                    "minimum_value_warning": "machine_nozzle_size",
                    "maximum_value_warning": "20",
                    "enabled": "wireframe_enabled",
                    "value": "wireframe_height",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "wireframe_printspeed":
                {
                    "label": "WP Speed",
                    "description": "Speed at which the nozzle moves when extruding material. Only applies to Wire Printing.",
                    "unit": "mm/s",
                    "type": "float",
                    "default_value": 5,
                    "minimum_value": "0.1",
                    "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2 + max(max_feedrate_z_override, machine_max_feedrate_z) ** 2)",
                    "maximum_value_warning": "50",
                    "enabled": "wireframe_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false,
                    "children":
                    {
                        "wireframe_printspeed_bottom":
                        {
                            "label": "WP Bottom Printing Speed",
                            "description": "Speed of printing the first layer, which is the only layer touching the build platform. Only applies to Wire Printing.",
                            "unit": "mm/s",
                            "type": "float",
                            "default_value": 5,
                            "minimum_value": "0.1",
                            "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                            "maximum_value_warning": "50",
                            "enabled": "wireframe_enabled",
                            "value": "wireframe_printspeed",
                            "settable_per_mesh": false,
                            "settable_per_extruder": false,
                            "settable_per_meshgroup": false
                        },
                        "wireframe_printspeed_up":
                        {
                            "label": "WP Upward Printing Speed",
                            "description": "Speed of printing a line upward 'in thin air'. Only applies to Wire Printing.",
                            "unit": "mm/s",
                            "type": "float",
                            "default_value": 5,
                            "minimum_value": "0.1",
                            "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2 + max(max_feedrate_z_override, machine_max_feedrate_z) ** 2)",
                            "maximum_value_warning": "50",
                            "enabled": "wireframe_enabled",
                            "value": "wireframe_printspeed",
                            "settable_per_mesh": false,
                            "settable_per_extruder": false,
                            "settable_per_meshgroup": false
                        },
                        "wireframe_printspeed_down":
                        {
                            "label": "WP Downward Printing Speed",
                            "description": "Speed of printing a line diagonally downward. Only applies to Wire Printing.",
                            "unit": "mm/s",
                            "type": "float",
                            "default_value": 5,
                            "minimum_value": "0.1",
                            "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2 + max(max_feedrate_z_override, machine_max_feedrate_z) ** 2)",
                            "maximum_value_warning": "50",
                            "enabled": "wireframe_enabled",
                            "value": "wireframe_printspeed",
                            "settable_per_mesh": false,
                            "settable_per_extruder": false,
                            "settable_per_meshgroup": false
                        },
                        "wireframe_printspeed_flat":
                        {
                            "label": "WP Horizontal Printing Speed",
                            "description": "Speed of printing the horizontal contours of the model. Only applies to Wire Printing.",
                            "unit": "mm/s",
                            "type": "float",
                            "default_value": 5,
                            "minimum_value": "0.1",
                            "maximum_value": "math.sqrt(machine_max_feedrate_x ** 2 + machine_max_feedrate_y ** 2)",
                            "maximum_value_warning": "100",
                            "value": "wireframe_printspeed",
                            "enabled": "wireframe_enabled",
                            "settable_per_mesh": false,
                            "settable_per_extruder": false,
                            "settable_per_meshgroup": false
                        }
                    }
                },
                "wireframe_flow":
                {
                    "label": "WP Flow",
                    "description": "Flow compensation: the amount of material extruded is multiplied by this value. Only applies to Wire Printing.",
                    "unit": "%",
                    "default_value": 100,
                    "minimum_value": "0",
                    "maximum_value_warning": "100",
                    "type": "float",
                    "enabled": "wireframe_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false,
                    "children":
                    {
                        "wireframe_flow_connection":
                        {
                            "label": "WP Connection Flow",
                            "description": "Flow compensation when going up or down. Only applies to Wire Printing.",
                            "unit": "%",
                            "default_value": 100,
                            "minimum_value": "0",
                            "maximum_value_warning": "100",
                            "type": "float",
                            "enabled": "wireframe_enabled",
                            "value": "wireframe_flow",
                            "settable_per_mesh": false,
                            "settable_per_extruder": false,
                            "settable_per_meshgroup": false
                        },
                        "wireframe_flow_flat":
                        {
                            "label": "WP Flat Flow",
                            "description": "Flow compensation when printing flat lines. Only applies to Wire Printing.",
                            "unit": "%",
                            "default_value": 100,
                            "minimum_value": "0",
                            "maximum_value_warning": "100",
                            "type": "float",
                            "enabled": "wireframe_enabled",
                            "value": "wireframe_flow",
                            "settable_per_mesh": false,
                            "settable_per_extruder": false,
                            "settable_per_meshgroup": false
                        }
                    }
                },
                "wireframe_top_delay":
                {
                    "label": "WP Top Delay",
                    "description": "Delay time after an upward move, so that the upward line can harden. Only applies to Wire Printing.",
                    "unit": "s",
                    "type": "float",
                    "default_value": 0,
                    "minimum_value": "0",
                    "maximum_value_warning": "1",
                    "enabled": "wireframe_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "wireframe_bottom_delay":
                {
                    "label": "WP Bottom Delay",
                    "description": "Delay time after a downward move. Only applies to Wire Printing.",
                    "unit": "s",
                    "type": "float",
                    "default_value": 0,
                    "minimum_value": "0",
                    "maximum_value_warning": "1",
                    "enabled": "wireframe_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "wireframe_flat_delay":
                {
                    "label": "WP Flat Delay",
                    "description": "Delay time between two horizontal segments. Introducing such a delay can cause better adhesion to previous layers at the connection points, while too long delays cause sagging. Only applies to Wire Printing.",
                    "unit": "s",
                    "type": "float",
                    "default_value": 0.1,
                    "minimum_value": "0",
                    "maximum_value_warning": "0.5",
                    "enabled": "wireframe_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "wireframe_up_half_speed":
                {
                    "label": "WP Ease Upward",
                    "description": "Distance of an upward move which is extruded with half speed.\nThis can cause better adhesion to previous layers, while not heating the material in those layers too much. Only applies to Wire Printing.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 0.3,
                    "minimum_value": "0",
                    "maximum_value_warning": "5.0",
                    "enabled": "wireframe_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "wireframe_top_jump":
                {
                    "label": "WP Knot Size",
                    "description": "Creates a small knot at the top of an upward line, so that the consecutive horizontal layer has a better chance to connect to it. Only applies to Wire Printing.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 0.6,
                    "minimum_value": "0",
                    "maximum_value_warning": "2.0",
                    "enabled": "wireframe_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "wireframe_fall_down":
                {
                    "label": "WP Fall Down",
                    "description": "Distance with which the material falls down after an upward extrusion. This distance is compensated for. Only applies to Wire Printing.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 0.5,
                    "minimum_value": "0",
                    "maximum_value_warning": "wireframe_height",
                    "enabled": "wireframe_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "wireframe_drag_along":
                {
                    "label": "WP Drag Along",
                    "description": "Distance with which the material of an upward extrusion is dragged along with the diagonally downward extrusion. This distance is compensated for. Only applies to Wire Printing.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 0.6,
                    "minimum_value": "0",
                    "maximum_value_warning": "wireframe_height",
                    "enabled": "wireframe_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "wireframe_strategy":
                {
                    "label": "WP Strategy",
                    "description": "Strategy for making sure two consecutive layers connect at each connection point. Retraction lets the upward lines harden in the right position, but may cause filament grinding. A knot can be made at the end of an upward line to heighten the chance of connecting to it and to let the line cool; however, it may require slow printing speeds. Another strategy is to compensate for the sagging of the top of an upward line; however, the lines won't always fall down as predicted.",
                    "type": "enum",
                    "options":
                    {
                        "compensate": "Compensate",
                        "knot": "Knot",
                        "retract": "Retract"
                    },
                    "default_value": "compensate",
                    "enabled": "wireframe_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "wireframe_straight_before_down":
                {
                    "label": "WP Straighten Downward Lines",
                    "description": "Percentage of a diagonally downward line which is covered by a horizontal line piece. This can prevent sagging of the top most point of upward lines. Only applies to Wire Printing.",
                    "type": "float",
                    "unit": "%",
                    "default_value": 20,
                    "minimum_value": "0",
                    "maximum_value": "100",
                    "enabled": "wireframe_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "wireframe_roof_fall_down":
                {
                    "label": "WP Roof Fall Down",
                    "description": "The distance which horizontal roof lines printed 'in thin air' fall down when being printed. This distance is compensated for. Only applies to Wire Printing.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 2,
                    "minimum_value_warning": "0",
                    "maximum_value_warning": "wireframe_roof_inset",
                    "enabled": "wireframe_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "wireframe_roof_drag_along":
                {
                    "label": "WP Roof Drag Along",
                    "description": "The distance of the end piece of an inward line which gets dragged along when going back to the outer outline of the roof. This distance is compensated for. Only applies to Wire Printing.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 0.8,
                    "minimum_value": "0",
                    "maximum_value_warning": "10",
                    "enabled": "wireframe_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "wireframe_roof_outer_delay":
                {
                    "label": "WP Roof Outer Delay",
                    "description": "Time spent at the outer perimeters of hole which is to become a roof. Longer times can ensure a better connection. Only applies to Wire Printing.",
                    "type": "float",
                    "unit": "s",
                    "default_value": 0.2,
                    "minimum_value": "0",
                    "maximum_value_warning": "2.0",
                    "enabled": "wireframe_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "wireframe_nozzle_clearance":
                {
                    "label": "WP Nozzle Clearance",
                    "description": "Distance between the nozzle and horizontally downward lines. Larger clearance results in diagonally downward lines with a less steep angle, which in turn results in less upward connections with the next layer. Only applies to Wire Printing.",
                    "type": "float",
                    "unit": "mm",
                    "default_value": 1,
                    "minimum_value_warning": "0",
                    "maximum_value_warning": "10.0",
                    "enabled": "wireframe_enabled",
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "adaptive_layer_height_enabled":
                {
                    "label": "Use adaptive layers",
                    "description": "Adaptive layers computes the layer heights depending on the shape of the model.",
                    "type": "bool",
                    "default_value": false,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "adaptive_layer_height_variation":
                {
                    "label": "Adaptive layers maximum variation",
                    "description": "The maximum allowed height different from the base layer height in mm.",
                    "type": "float",
                    "enabled": "adaptive_layer_height_enabled",
                    "default_value": 0.1,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "adaptive_layer_height_variation_step":
                {
                    "label": "Adaptive layers variation step size",
                    "description": "The difference in height of the next layer height compared to the previous one.",
                    "type": "float",
                    "enabled": "adaptive_layer_height_enabled",
                    "default_value": 0.01,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                },
                "adaptive_layer_height_threshold":
                {
                    "label": "Adaptive layers threshold",
                    "description": "Threshold whether to use a smaller layer or not. This number is compared to the tan of the steepest slope in a layer.",
                    "type": "float",
                    "enabled": "adaptive_layer_height_enabled",
                    "default_value": 200.0,
                    "settable_per_mesh": false,
                    "settable_per_extruder": false,
                    "settable_per_meshgroup": false
                }
            }
        },
        "command_line_settings": {
            "label": "Command Line Settings",
            "description": "Settings which are only used if CuraEngine isn't called from the Cura frontend.",
            "type": "category",
            "enabled": false,
            "children": {
                "center_object": {
                    "description": "Whether to center the object on the middle of the build platform (0,0), instead of using the coordinate system in which the object was saved.",
                    "type": "bool",
                    "label": "Center object",
                    "default_value": false,
                    "enabled": false
                },
                "mesh_position_x": {
                    "description": "Offset applied to the object in the x direction.",
                    "type": "float",
                    "label": "Mesh position x",
                    "default_value": 0,
                    "enabled": false
                },
                "mesh_position_y": {
                    "description": "Offset applied to the object in the y direction.",
                    "type": "float",
                    "label": "Mesh position y",
                    "default_value": 0,
                    "enabled": false
                },
                "mesh_position_z": {
                    "description": "Offset applied to the object in the z direction. With this you can perform what was used to be called 'Object Sink'.",
                    "type": "float",
                    "label": "Mesh position z",
                    "default_value": 0,
                    "enabled": false
                },
                "mesh_rotation_matrix": {
                    "label": "Mesh Rotation Matrix",
                    "description": "Transformation matrix to be applied to the model when loading it from file.",
                    "type": "str",
                    "default_value": "[[1,0,0], [0,1,0], [0,0,1]]",
                    "enabled": false
                }
            }
        }
    }
}
