From f2edfe58a0ea7cf15382bca8689a12a3eaa5d9f2 Mon Sep 17 00:00:00 2001 From: Nicolas Predella Date: Fri, 22 May 2026 16:05:49 +0300 Subject: [PATCH] printer profile in metadata --- core/nodeslicer/nodes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/nodeslicer/nodes.py b/core/nodeslicer/nodes.py index 8582808..3740ae7 100644 --- a/core/nodeslicer/nodes.py +++ b/core/nodeslicer/nodes.py @@ -1192,6 +1192,11 @@ class ExecSliceNode_DatabaseSubmit(ExecSliceNode): if weight_match: fields["Weight per print"] = int(float(weight_match.group(1))) + # 4. Profile for reference + profile_match = re.search(r"; printer_settings_id = (.*)", gc) + if profile_match: + fields["Printer Profile"] = profile_match.group(1) + # Detect binary trigger in gcode comments is_binary = "; binary_gcode = 1" in gc