[Solved] What filament is loaded?
-
After power cycling, DWC remembers what filament is loaded in a tool, however I cannot find anywhere in the object model where that loaded filament is referenced?
Today, I use the filament loading macros to set a global variable of the filament name, but it doesn't work after a power cycle without unloading and reloading the filament. I must be missing something because I can't find a command or anywhere in the object model that says what the currently loaded filament is.
-
Check out
move.extruders[0].filament
If you have more than one tool you'll have to address each in turn -
@OwenD Thank you so much! That's what I needed!
-
If you have multiple tools, you might also not have the extruders assign in order (example extruder 0 assigned to tool1). You might also have two extruders assigned to one tool. In these cases, you need to use look at the tools section of the Object model where you can find an array of objects in tools.extruders. For each tool, the array maps that tools extruders to the move.extruder number.