maziggy
15ea11e10b
Recover the preview slice from custom G-code the sidecar cannot parse
...
Opening the slice dialog on an unsliced project runs a preview slice purely
to ask the slicer which AMS slots the chosen plate consumes. Bambu Studio 2.8
writes {if timelapse_inline_photo} into the machine's time_lapse_gcode but
exports no definition for that variable, so the template is unresolvable the
moment it leaves Studio: an older sidecar stops with a placeholder parse error
before producing any slice_info. The preview returned nothing and the caller
fell back to guessing from painted faces, silently. On the H2D project this
was found with, the guess dropped the support material -- a whole slot off a
four-filament plate.
Retry the preview once with just the named template emptied, still on the
file's own settings. Keeping the embedded settings is what keeps the answer
honest: overriding the process preset instead discards the project's support
configuration, which loses that slot and moves used_g by up to 2x. Measured
against the same file: retry reproduces all four slots gram for gram, a
printer+process override returns three.
Only templates that cannot extrude are eligible -- a start or filament-change
template lays a prime line or purges, so emptying one would move the very
grams the preview reports, and returning nothing beats a confident wrong
number. Verified on a working H2D slice that emptying time_lapse_gcode leaves
every used_g/used_m in slice_info identical.
Match on a normalised option name: the slicer reports timelapse_gcode while
the 3MF stores time_lapse_gcode, so a literal comparison finds nothing.
Decide whether a retry applies before logging, so a slice that recovers does
not announce itself at WARNING twenty seconds before it succeeds.
2026-08-10 15:44:55 +02:00
..
2026-06-06 10:41:28 +02:00
2026-08-10 15:44:55 +02:00
2026-07-01 09:50:30 +02:00
2026-07-29 08:40:42 +02:00
2026-07-22 09:57:27 +02:00
2026-06-04 11:30:26 +02:00
2026-07-18 08:11:44 +02:00
2026-07-18 13:06:01 +02:00
2026-07-29 11:51:30 +02:00
2026-07-19 09:29:54 +02:00
2026-06-03 10:14:57 +02:00
2026-07-21 08:46:02 +02:00
2026-05-30 13:49:09 +02:00
2026-06-20 12:07:20 +02:00
2026-07-16 15:21:47 +02:00
2026-08-08 11:19:33 +02:00
2026-07-30 10:31:22 +02:00
2026-05-22 10:02:41 +02:00
2026-07-30 12:52:11 +02:00
2026-07-30 12:35:27 +02:00
2026-07-30 10:31:22 +02:00
2026-06-06 13:40:56 +02:00
2026-08-03 08:52:23 +02:00
2026-06-25 09:00:57 +02:00
2026-08-08 10:04:55 +02:00
2026-07-21 07:26:19 +02:00
2026-07-28 15:05:28 +02:00
2026-05-24 12:51:24 +02:00
2026-08-03 15:12:02 +02:00
2026-07-30 16:31:09 +02:00
2026-07-31 14:28:17 +02:00
2026-05-15 15:43:37 +02:00
2026-07-18 16:15:09 +02:00
2026-05-08 11:52:42 +02:00
2026-07-18 13:48:14 +02:00
2026-07-28 14:49:50 +02:00
2026-05-24 10:16:30 +02:00
2026-07-30 16:31:09 +02:00
2026-07-30 16:31:09 +02:00
2026-07-30 13:05:15 +02:00
2026-08-05 15:21:42 +02:00
2026-06-05 13:53:26 +02:00
2026-05-29 10:55:41 +02:00
2026-05-24 08:49:21 +02:00
2026-06-09 07:38:59 +02:00
2026-07-18 16:15:09 +02:00
2026-05-28 08:40:43 +02:00
2026-07-31 09:30:06 +02:00
2026-07-31 12:55:05 +02:00
2026-06-06 13:30:13 +02:00
2026-07-13 09:18:17 +02:00
2026-06-19 11:29:07 +02:00
2026-08-04 08:57:34 -04:00
2026-08-06 12:08:36 +02:00
2026-07-31 16:59:33 +02:00
2026-08-06 08:46:02 +02:00
2026-08-05 14:26:38 +02:00
2026-05-08 14:06:40 +02:00
2026-06-20 12:07:20 +02:00
2026-07-18 13:48:14 +02:00
2026-08-09 14:10:18 +02:00
2026-07-30 17:34:13 +01:00
2026-06-02 14:51:08 +02:00
2026-06-02 14:51:08 +02:00
2026-05-22 10:22:14 +02:00
2026-07-12 08:44:53 +02:00
2026-06-22 14:23:30 +02:00
2026-06-17 11:33:23 +02:00
2026-06-17 11:33:23 +02:00
2026-08-02 11:17:49 +02:00
2026-07-14 11:29:56 +02:00
2026-07-14 11:29:56 +02:00
2026-07-14 10:35:58 +02:00
2026-06-02 10:02:17 +02:00
2026-06-02 10:02:17 +02:00
2026-06-02 12:42:16 +02:00
2026-06-20 08:28:44 +02:00
2026-08-10 08:54:44 +02:00
2026-07-31 13:39:17 +02:00
2026-07-28 21:05:29 +00:00
2026-07-28 21:05:29 +00:00
2026-08-01 11:37:01 +02:00
2026-05-15 08:50:37 +02:00
2026-05-15 08:50:37 +02:00
2026-05-15 08:50:37 +02:00
2026-05-15 08:50:37 +02:00
2026-05-08 11:52:42 +02:00
2026-07-31 16:59:33 +02:00
2026-06-25 14:54:27 +02:00
2026-08-02 11:09:32 +02:00
2026-06-24 11:01:16 +02:00
2026-07-29 11:33:09 -05:00
2026-07-11 14:22:31 +02:00
2026-07-30 16:31:09 +02:00
2026-05-17 09:30:02 +02:00
2026-08-03 14:53:21 +02:00
2026-05-20 08:12:17 +02:00
2026-06-09 09:16:36 +02:00
2026-08-08 11:19:33 +02:00
2026-07-28 11:16:22 -05:00
2026-08-01 10:35:22 +02:00
2026-08-02 10:23:09 +02:00
2026-05-21 08:30:17 +02:00
2026-06-20 12:55:24 +02:00
2026-08-08 16:33:41 +02:00
2026-07-17 10:02:19 +02:00
2026-06-08 08:18:13 +02:00
2026-06-11 09:23:03 +02:00
2026-06-25 11:07:29 +02:00
2026-07-18 13:06:01 +02:00
2026-08-09 14:10:18 +02:00
2026-07-20 11:52:18 +02:00
2026-07-20 11:52:18 +02:00
2026-05-25 09:04:47 +02:00
2026-06-02 12:12:54 +02:00
2026-07-07 12:17:46 +02:00
2026-08-10 09:31:25 +02:00
2026-07-07 12:17:46 +02:00
2026-07-18 16:41:15 +02:00
2026-07-20 17:55:56 +02:00
2026-08-09 17:07:34 -04:00
2026-08-08 09:35:43 +02:00
2026-07-30 21:35:01 +02:00
2026-07-07 10:07:47 +02:00
2026-07-19 08:34:38 +02:00
2026-08-05 13:15:04 +02:00
2026-08-10 09:31:25 +02:00
2026-08-05 13:15:04 +02:00
2026-06-09 10:43:07 +02:00
2026-07-24 13:13:04 +02:00
2026-08-05 14:26:38 +02:00
2026-05-24 09:18:38 +02:00
2026-08-10 13:54:44 +02:00
2026-07-17 06:51:51 +02:00
2026-07-20 17:55:56 +02:00
2026-07-22 09:57:27 +02:00
2026-08-09 17:07:34 -04:00
2026-08-09 17:07:34 -04:00
2026-07-20 12:30:39 +02:00
2026-07-18 16:15:09 +02:00
2026-08-04 08:49:49 +02:00
2026-06-17 12:04:57 +02:00
2026-07-02 11:32:22 +02:00
2026-05-14 15:28:41 +02:00
2026-08-03 14:10:02 +02:00
2026-08-09 11:25:09 +02:00
2026-07-22 10:44:05 +02:00
2026-07-31 15:14:01 +02:00
2026-08-10 12:18:29 +02:00
2026-07-22 09:57:27 +02:00
2026-06-28 13:52:05 +02:00
2026-05-12 16:02:24 +02:00
2026-05-08 11:52:42 +02:00
2026-05-08 14:28:41 +02:00
2026-05-08 11:52:42 +02:00
2026-05-18 08:51:27 +02:00
2026-06-17 11:33:23 +02:00
2026-06-25 10:46:57 +02:00
2026-07-30 13:52:56 +02:00
2026-05-12 08:48:30 +02:00
2026-05-20 11:00:54 +02:00
2026-07-15 07:29:16 +02:00
2026-05-08 11:52:42 +02:00
2026-08-05 14:53:05 +02:00
2026-05-22 09:05:25 +02:00
2026-07-14 10:35:58 +02:00
2026-07-31 15:32:08 +02:00
2026-08-09 14:10:18 +02:00
2026-07-29 14:10:38 +02:00
2026-08-03 08:52:23 +02:00
2026-07-31 12:55:05 +02:00
2026-08-05 21:25:46 +02:00
2026-05-12 09:20:53 +02:00
2026-07-29 11:51:30 +02:00
2026-06-27 11:28:00 +02:00
2026-05-15 08:50:37 +02:00
2026-07-15 07:29:16 +02:00
2026-07-18 13:18:59 +02:00
2026-06-22 11:15:39 +02:00
2026-08-03 10:17:28 +02:00
2026-06-05 17:19:16 +02:00
2026-05-30 13:34:10 +02:00
2026-05-30 13:34:10 +02:00
2026-07-05 10:32:13 +02:00
2026-06-02 14:33:20 +02:00
2026-07-29 08:40:42 +02:00
2026-07-02 10:13:01 +02:00
2026-06-03 10:04:37 +02:00
2026-06-11 13:35:20 +02:00
2026-06-27 11:28:00 +02:00