Created
July 30, 2018 21:37
-
-
Save fieldOfView/03636e14a1889d73b331cab2c3e06040 to your computer and use it in GitHub Desktop.
A quick and dirty overview of available settings and replacement patterns
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Settings and replacement patterns</title> | |
<script type="text/javascript"> | |
function showJSON(file) { | |
var xobj = new XMLHttpRequest(); | |
xobj.overrideMimeType("application/json"); | |
xobj.open('GET', file, false); | |
xobj.onreadystatechange = function () { | |
if (xobj.readyState == 4 && xobj.status == "200") { | |
var json = JSON.parse(xobj.responseText); | |
for(var category_id in json.settings) { | |
var category = json.settings[category_id]; | |
document.write("<tr><th colspan=\"3\">" + category.label + "</th></tr>"); | |
formatSettings(category.children); | |
} | |
} | |
}; | |
xobj.send(null); | |
} | |
function formatSettings(settings) { | |
for(var setting_id in settings) { | |
var setting = settings[setting_id]; | |
document.write("<tr><td>{" + setting_id + "}</td><td>" + setting.label + "</td><td>" + setting.description + "</td></tr>"); | |
if(setting.children) { | |
formatSettings(setting.children) | |
} | |
} | |
} | |
</script> | |
</head> | |
<body> | |
<h1>Settings and replacement patterns</h1> | |
<h2>Application-defined patterns</h2> | |
<table> | |
<script type="text/javascript"> | |
formatSettings({ | |
"time": {"label": "", "description": "Time when slicing started"}, | |
"date": {"label": "", "description": "Date when slicing started"}, | |
"day": {"label": "", "description": "Day when slicing started"}, | |
"initial_extruder_nr": {"label": "", "description": "The first extruder train used for the print"}, | |
"print_temperature": {"label": "", "description": "Alias for material_print_temperature (deprecated, do not use)"}, | |
"print_bed_temperature": {"label": "", "description": "Alias for material_bed_temperature (deprecated, do not use)"} | |
}); | |
</script> | |
</table> | |
<h2>Settings</h2> | |
<p>The following settings are defined in <a href="https://github.com/Ultimaker/Cura/blob/master/resources/definitions/fdmprinter.def.json">fdmprinter.def.json</a>.</p> | |
<table> | |
<script type="text/javascript"> | |
showJSON("https://raw.githubusercontent.com/Ultimaker/Cura/master/resources/definitions/fdmprinter.def.json"); | |
</script> | |
</table> | |
<h2>Extruder settings</h2> | |
<p>The following settings are defined in <a href="https://github.com/Ultimaker/Cura/blob/master/resources/definitions/fdmextruder.def.json">fdmextruder.def.json</a>, and are only settable per extruder</p> | |
<table> | |
<script type="text/javascript"> | |
showJSON("https://raw.githubusercontent.com/Ultimaker/Cura/master/resources/definitions/fdmextruder.def.json"); | |
</script> | |
</table> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment