Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A quick and dirty overview of available settings and replacement patterns
<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
You can’t perform that action at this time.