I am making some two color tags to use for reordering some supplies for the ICU. I followed the HOWTO and used that code, with the only change being M25 to M0 for Octoprint/USB. Fantastic How To and solved the readability issue with this project.
Here is the gcode.
My problem is finding the correct layer to apply the code to. I initially used S3D and identified Layer 15 where only embossed letters are printing, then added the appropriate code snipped. The first print attempt paused earlier than I wanted and printed part of the shell in the new color.
I looked at the layers in Octoprint and the same layer reads Layer 17, which is the correct layer to change filament at.
So my workflow requires me to pull the gcode into Octoprint, find the layer, delete the file, edit file, pull back into Octoprint.
S3D/Octoprint Layer Count Differs For Filament Change
Re: S3D/Octoprint Layer Count Differs For Filament Change
I think I may have figured this out. Looks like S3D starts the count at 0, where Octoprint starts at 1. I looked at it again in S3D and isolated the start/end of my desired layer. Looks like the actual layer in Octoprint is the S3D second number plus 1