Custom color in output filename
 
Notifications
Clear all

Custom color in output filename  

  RSS
Gabriel
(@gabriel)
Member
Custom color in output filename

Hi,

I hope someone cracked the mystery of the "define custom colour". I'll explain what I want to achieve and maybe someone had the same idea and got something working.

I would like to be able to use custom colour by clicking on the extruder color next to the filament that I've selected in the 3D editor view. Ideally I would be able to name my custom color with simple name like... Green, Red, black.... etc...

What that will help me achieve is to get the color automatically exported in my gcode part name. I'm using this code in the output filename {extruder_colour[0]}.

Right now I can only get the color code like "#FF0000". But I would really love to be able to get the color name simply like "Red"

Thanks

Posted : 11/05/2023 1:28 pm
Diem
 Diem
(@diem)
Illustrious Member

Option one:  when designing the part include the intended colour in the stl filename:  'yellow_end.stl' and that will carry through to the gcode by default.

Option two: Upon exporting the gcode file edit the filename to colour preference.

Finally, of course, you load red filament at print time.

Cheerio,

Posted : 11/05/2023 6:37 pm
Neophyl
(@neophyl)
Illustrious Member
RE: Custom color in output filename

Option 3 run a post process script on your gcode name that converts hexadecimal colour codes to labels chosen by you.

I don't think what you want is possible within slicer.  To you #FF0000 is "Red" but to someone else it might be "Rot"  or Crimson, or.......  

I personally use a version of Diem's option 1, I save the project file as "XXXXX_red_parts"  etc.  Which then carries through to the filename.

Posted : 11/05/2023 6:58 pm
Share: