# How to change the default color of a model

**URL:** <https://discourse.slicer.org/t/how-to-change-the-default-color-of-a-model/25481>\
**Category:** Development\
**Created:** [September 29, 2022, 8:10am UTC](https://discourse.slicer.org/t/how-to-change-the-default-color-of-a-model/25481 "2022-09-29T08:10:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![miniminic](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/miniminic/32/16647_2.png) [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Post date:** [September 29, 2022, 8:10am UTC](https://discourse.slicer.org/t/how-to-change-the-default-color-of-a-model/25481/1 "2022-09-29T08:10:00Z")

</div>

Currently, the default color for all models in Slicer is yellow. I wanted to implement a feature that would give different types of models different default colors, like Qt::blue for bones and Qt::red for blood vessels. Now the question is, how do I know what type of models to use for adding and where should I change their default colors?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [November 24, 2022, 2:56am UTC](https://discourse.slicer.org/t/how-to-change-the-default-color-of-a-model/25481/3 "2022-11-24T02:56:24Z")

</div>

How do you know if your model is bone or blood? From the name of the files you load them from?

---

<div class="post-metadata">

**Author:** ![miniminic](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/miniminic/32/16647_2.png) [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Post date:** [November 24, 2022, 2:58am UTC](https://discourse.slicer.org/t/how-to-change-the-default-color-of-a-model/25481/4 "2022-11-24T02:58:42Z")

</div>

Yeah, I’m doing it by file name now
