# Assigning a Filament (aka Thermal Preset) to an Extruder

**URL:** <https://klipper.discourse.group/t/assigning-a-filament-aka-thermal-preset-to-an-extruder/5849>\
**Category:** Macros\
**Created:** [January 9, 2023, 6:58pm UTC](https://klipper.discourse.group/t/assigning-a-filament-aka-thermal-preset-to-an-extruder/5849 "2023-01-09T18:58:52Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![theophile](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/theophile/32/31_2.png) [@theophile](https://klipper.discourse.group/u/theophile)\
**Post date:** [January 27, 2023, 7:47am UTC](https://klipper.discourse.group/t/assigning-a-filament-aka-thermal-preset-to-an-extruder/5849/14 "2023-01-27T07:47:01Z")

</div>

Color discussion here: [Macro snippet to calculate the Euclidean distance between filament colors](https://klipper.discourse.group/t/macro-snippet-to-calculate-the-euclidean-distance-between-filament-colors/6033)

In short, I’m trying to work out some math that will optimize purge volumes on material changes based on the colors of the filaments being switched.

---

_[View the full topic](https://klipper.discourse.group/t/assigning-a-filament-aka-thermal-preset-to-an-extruder/5849)._
