Knowing what color to change to with 3+ materials on single extruder
 
Notifications
Clear all

Knowing what color to change to with 3+ materials on single extruder  

  RSS
Preston
(@preston)
New Member
Knowing what color to change to with 3+ materials on single extruder

Hello everyone!

I recently starting the endeavor of printing with more than 1 material at a time on a single extruder machine, meaning I have to switch the filament manually. This is fine for 2 materials, but for 3+ materials it gets challenging to know which material to switch to.

I have written a python code where you can input your gcode filename and location on your computer and what colors you assigned each extruder to. You can then run the python code and it will parse your gcode to tell you what color to change to.

I couldn't find anything like this in my search, so I hope this helps somebody.

Code here

 

Posted : 14/12/2020 7:09 am
JoanTabb
(@joantabb)
Veteran Member Moderator
RE: Knowing what color to change to with 3+ materials on single extruder

This post was in the 
https://forum.prusa3d.com/forum/original-prusa-i3-mk3s-mk3-general-discussion-announcements-and-releases/knowing-what-color-to-change-to-with-3-materials-on-single-extruder/#post-324199

forum, 

I am not a Python person... 

the Idea seems sound, but I am wary about the implementation!

see the image below

For a script that runs on My computer to edit My Gcode, there seem to be a huge number if Internet references, which makes me uncomfortable
Does anyone run python, and can they please have a look at this script.  

regards Joan

 

I try to make safe suggestions,You should understand the context and ensure you are happy that they are safe before attempting to apply my suggestions, what you do, is YOUR responsibility. Location Halifax UK

Posted : 14/12/2020 2:36 pm
misan
(@misan)
Member Moderator
RE: Knowing what color to change to with 3+ materials on single extruder

@joantabb

Hi Joan,

I have reviewed this code https://github.com/PrestonHolt3/Gcode-Multimaterial-Parsing/blob/main/WhatColorToPut.py and I see no harm in it nor any URL. 

Cheers,

misan

 

Posted : 14/12/2020 3:05 pm
JoanTabb
(@joantabb)
Veteran Member Moderator
RE: Knowing what color to change to with 3+ materials on single extruder

@misan

Cheers Misan, 

regards Joan

 

I try to make safe suggestions,You should understand the context and ensure you are happy that they are safe before attempting to apply my suggestions, what you do, is YOUR responsibility. Location Halifax UK

Posted : 14/12/2020 10:35 pm
Share: