|
Hi, people! |
Replies: 5 comments 2 replies
|
Probably not you. Worth ruling out the obvious one first — there's a Color Mode dropdown above the viewer with three options: colorModes = [
{ text: 'Extruder', value: 0 },
{ text: 'Feed Rate', value: 1 },
{ text: 'Feature', value: 2 },
]On a single-extruder machine, Extruder mode gives you exactly one colour for everything. But that's unlikely to be your problem, because Feature is already the default: get colorMode(): number {
return this.$store.state.gui.gcodeViewer?.colorMode ?? 2
}so a fresh Mainsail install starts on Feature. Check the dropdown anyway since the value is persisted per instance, but if it already says Feature then the mode isn't it. The more likely cause is the label names themselves. Mainsail doesn't do the colouring — it delegates to That fits your symptom precisely, because Quick way to confirm rather than guess: pull the distinct type lines out of a file that worked on the SV-08 and one that doesn't on the U1. grep -o ';TYPE:.*' old.gcode | sort -u
grep -o ';TYPE:.*' new.gcode | sort -uIf the working one says |
|
pls upload a gcode file + a screenshot from your gcodeviewer settings |
|
Hmmm, upon further inspection I found out the problem is someplace else. I managed to install new Orca 2.4.0 (same settings) and the exported G-code does render properly. And for @MLuc24 I can confirm I have rendering set to feature. And screenshot from Orcaslicer 2.4.0: I guess I need to go to talk to Snapmaker forum then :) |
|
@meteyou gave me a heads up - there are fixes in place for this issue that the team will be able to pick up for their next release. |
|
Thx you @Sindarius ! I pushed an upgrade PR here #2638 Your new release fixes this issue. |


the issue is the header line in this gcode file:
vs
this gcode viewer only know the "OrcaSlicer" and handle the gcode different. We use an existing lib here, so this is not in our scope, but i can point this issue to the maintainer of this gcodeviewer.