Notifiche
Cancella tutti
Variable to get next color for manual filament changes?
Is there a way to get the next "color" that will be printed so i can send to the screen the next color to be inserted?
im doing a multiple and different 2 layers prints that uses multiple colors (manual changes on my E3V2NEO) but is becoming hard to keep track of the next color that will be needed (4, 5 colors on the same layer)
anyone knows a way to better get info on the color order for better workflow?
Thanks!
Questa discussione è stata modificata 8 months fa da Marlon Martins
Postato : 10/04/2024 5:30 am
RE:
I have this custom gcode I found in a post that I can't find anymore:
;Printer Settings -> Custom G-Code -> Tool Change G-Code ;Colour Change Script with notification of colour: ; eliminate first tool change {if previous_extruder != -1} G0 Z{toolchange_z+10} F6000 M601 ; Pause M400 ; wait until all moves are completed ; color notification M117 Next color is { (extruder_colour[next_extruder] == "#00FF00" ? "GREEN" :(extruder_colour[next_extruder] == "#FF0000" ? "RED" :(extruder_colour[next_extruder] == "#FFFF00" ? "YELLOW" :(extruder_colour[next_extruder] == "#0000FF" ? "BLUE" :(extruder_colour[next_extruder] == "#FFFFFF" ? "WHITE" :(extruder_colour[next_extruder] == "#000000" ? "BLACK" :(extruder_colour[next_extruder] == "#999999" ? "GRAY" :(extruder_colour[next_extruder] == "#D4AF37" ? "GOLDEN" :(extruder_colour[next_extruder] == "#C0C0C0" ? "SILVER" :(extruder_colour[next_extruder] == "#FF8000" ? "ORANGE" :(extruder_colour[next_extruder] == "#800080" ? "PURPLE" :(extruder_colour[next_extruder] == "#FF6600" ? "ORANGE" :(extruder_colour[next_extruder] == "#F0F0F0" ? "TRANSPARENT" :(extruder_colour[next_extruder] == "#800000" ? "BROWN" :extruder_colour[next_extruder] ))))))))))))))}; G4 S4 ; wait 4 seconds M600 {endif}
You would have to mess with the colour RGB codes and colour names, and carefully set the filament colours in PrusaSlicer...
Prusa MK4 since Jan 2024, Printables: @MikeB_1505898
Postato : 10/04/2024 4:56 pm
Topic starter
answered:
RE: Variable to get next color for manual filament changes?
Thank you! worked great!!!!
Postato : 10/04/2024 6:29 pm