Replace default_value by value, and convert the content to a string that evaluates to the same value in Python

As per https://github.com/Ultimaker/Cura/issues/1316#issuecomment-274371670
This commit is contained in:
probonopd 2017-01-23 00:26:53 +00:00 committed by GitHub
parent eaa8cbb160
commit e7cad12bf6

View File

@ -13,193 +13,193 @@
"overrides": {
"adhesion_type": {
"default_value": "skirt"
"value": "skirt"
},
"bottom_thickness": {
"value": 0.5
"value": "0.5"
},
"brim_line_count": {
"default_value": 20.0
"value": "20.0"
},
"cool_fan_enabled": {
"default_value": true
"value": "True"
},
"cool_fan_full_at_height": {
"default_value": 0.5
"value": "0.5"
},
"cool_fan_speed_max": {
"default_value": 100.0
"value": "100.0"
},
"cool_fan_speed_min": {
"default_value": 100.0
"value": "100.0"
},
"cool_lift_head": {
"default_value": true
"value": "True"
},
"cool_min_layer_time": {
"default_value": 5.0
"value": "5.0"
},
"cool_min_speed": {
"default_value": 10.0
"value": "10.0"
},
"infill_before_walls": {
"default_value": true
"value": "True"
},
"infill_overlap": {
"default_value": 15.0
"value": "15.0"
},
"layer_0_z_overlap": {
"default_value": 0.22
"value": "0.22"
},
"layer_height_0": {
"default_value": 0.3
"value": "0.3"
},
"machine_depth": {
"default_value": 100
"value": "100"
},
"machine_end_gcode": {
"default_value": ";End GCode\nM104 S0 ;extruder heater off\nM140 S0 ;heated bed heater off (if you have it)\nG91 ;relative positioning\nG1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure\nG1 Z+0.5 E-5 X-20 Y-20 F{speed_travel} ;move Z up a bit and retract filament even more\nG28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way\nM84 ;steppers off\nG90 ;absolute positioning"
"value": ";End GCode\nM104 S0 ;extruder heater off\nM140 S0 ;heated bed heater off (if you have it)\nG91 ;relative positioning\nG1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure\nG1 Z+0.5 E-5 X-20 Y-20 F{speed_travel} ;move Z up a bit and retract filament even more\nG28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way\nM84 ;steppers off\nG90 ;absolute positioning"
},
"machine_gcode_flavor": {
"default_value": "RepRap (Marlin/Sprinter)"
"value": "RepRap (Marlin/Sprinter)"
},
"machine_height": {
"default_value": 100
"value": "100"
},
"machine_name": {
"default_value": "Renkforce RF100"
"value": "Renkforce RF100"
},
"machine_start_gcode": {
"default_value": ";Sliced at: {day} {date} {time}\nG21 ;metric values\nG90 ;absolute positioning\nM82 ;set extruder to absolute mode\nM107 ;start with the fan off\nG28 X0 Y0 ;move X/Y to min endstops\nG28 Z0 ;move Z to min endstops\nG1 Z15.0 F{speed_travel} ;move the platform down 15mm\nG92 E0 ;zero the extruded length\nG1 F200 E3 ;extrude 3mm of feed stock\nG92 E0 ;zero the extruded length again\nG1 F{speed_travel}\nM117 Printing..."
"value": ";Sliced at: {day} {date} {time}\nG21 ;metric values\nG90 ;absolute positioning\nM82 ;set extruder to absolute mode\nM107 ;start with the fan off\nG28 X0 Y0 ;move X/Y to min endstops\nG28 Z0 ;move Z to min endstops\nG1 Z15.0 F{speed_travel} ;move the platform down 15mm\nG92 E0 ;zero the extruded length\nG1 F200 E3 ;extrude 3mm of feed stock\nG92 E0 ;zero the extruded length again\nG1 F{speed_travel}\nM117 Printing..."
},
"machine_width": {
"default_value": 100
"value": "100"
},
"material_bed_temperature": {
"visible": false
"visible": "False"
},
"material_diameter": {
"default_value": 1.75
"value": "1.75"
},
"material_print_temperature": {
"default_value": 210.0
"value": "210.0"
},
"ooze_shield_enabled": {
"default_value": true
"value": "True"
},
"raft_airgap": {
"default_value": 0.22
"value": "0.22"
},
"raft_base_line_spacing": {
"default_value": 3.0
"value": "3.0"
},
"raft_base_line_width": {
"default_value": 1.0
"value": "1.0"
},
"raft_base_thickness": {
"default_value": 0.3
"value": "0.3"
},
"raft_interface_line_spacing": {
"default_value": 3.0
"value": "3.0"
},
"raft_interface_line_width": {
"default_value": 0.4
"value": "0.4"
},
"raft_interface_thickness": {
"default_value": 0.27
"value": "0.27"
},
"raft_margin": {
"default_value": 5.0
"value": "5.0"
},
"raft_surface_layers": {
"default_value": 2.0
"value": "2.0"
},
"raft_surface_line_spacing": {
"default_value": 3.0
"value": "3.0"
},
"raft_surface_line_width": {
"default_value": 0.4
"value": "0.4"
},
"raft_surface_thickness": {
"default_value": 0.27
"value": "0.27"
},
"retraction_amount": {
"default_value": 2.0
"value": "2.0"
},
"retraction_combing": {
"default_value": "all"
"value": "all"
},
"retraction_enable": {
"default_value": true
"value": "True"
},
"retraction_hop_enabled": {
"default_value": 1.0
"value": "1.0"
},
"retraction_min_travel": {
"default_value": 1.5
"value": "1.5"
},
"retraction_speed": {
"default_value": 40.0
"value": "40.0"
},
"skin_overlap": {
"default_value": 15.0
"value": "15.0"
},
"skirt_brim_minimal_length": {
"default_value": 150.0
"value": "150.0"
},
"skirt_gap": {
"default_value": 3.0
"value": "3.0"
},
"skirt_line_count": {
"default_value": 1.0
"value": "1.0"
},
"speed_infill": {
"default_value": 50.0
"value": "50.0"
},
"speed_layer_0": {
"default_value": 30.0
"value": "30.0"
},
"speed_print": {
"default_value": 50.0
"value": "50.0"
},
"speed_topbottom": {
"default_value": 30.0
"value": "30.0"
},
"speed_travel": {
"default_value": 50.0
"value": "50.0"
},
"speed_wall_0": {
"default_value": 25.0
"value": "25.0"
},
"speed_wall_x": {
"default_value": 35.0
"value": "35.0"
},
"support_angle": {
"default_value": 60.0
"value": "60.0"
},
"support_enable": {
"default_value": 0.0
"value": "False"
},
"support_infill_rate": {
"default_value": 15.0
"value": "15.0"
},
"support_pattern": {
"default_value": "lines"
"value": "lines"
},
"support_type": {
"default_value": "everywhere"
"value": "everywhere"
},
"support_xy_distance": {
"default_value": 0.5
"value": "0.5"
},
"support_z_distance": {
"default_value": 0.1
"value": "0.1"
},
"top_thickness": {
"default_value": 0.5
"value": "0.5"
},
"wall_thickness": {
"default_value": 0.8
"value": "0.8"
}
}
}