# What is the difference between GetColor() and GetSelectedColor() in display node?

**URL:** <https://discourse.slicer.org/t/what-is-the-difference-between-getcolor-and-getselectedcolor-in-display-node/47613>\
**Category:** Development\
**Tags:** displaynode\
**Created:** [July 14, 2026, 4:24am UTC](https://discourse.slicer.org/t/what-is-the-difference-between-getcolor-and-getselectedcolor-in-display-node/47613 "2026-07-14T04:24:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor\_Wayne](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/victor_wayne/32/80778_2.png) [@Victor\_Wayne](https://discourse.slicer.org/u/Victor_Wayne)\
**Post date:** [July 14, 2026, 4:24am UTC](https://discourse.slicer.org/t/what-is-the-difference-between-getcolor-and-getselectedcolor-in-display-node/47613/1 "2026-07-14T04:24:33Z")

</div>

Hi,

The question is, as the title says, what is the difference between the color property and the selected color propertly of a display node?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [July 14, 2026, 2:57pm UTC](https://discourse.slicer.org/t/what-is-the-difference-between-getcolor-and-getselectedcolor-in-display-node/47613/2 "2026-07-14T14:57:42Z")

</div>

In the practical sense, the difference is that you need to use `GetSelectedColor` instead of `GetColor` for markups, otherwise `GetColor`.

From the Markups documentation:  
“Markups have `Color` and `SelectedColor` properties. `SelectedColor` is used if all control points are in “selected” state, which is the default. So, in most cases `SetSelectedColor` method must be used to change markups node color.”

---

<div class="post-metadata">

**Author:** ![Victor\_Wayne](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/victor_wayne/32/80778_2.png) [@Victor\_Wayne](https://discourse.slicer.org/u/Victor_Wayne)\
**Post date:** [July 16, 2026, 6:22am UTC](https://discourse.slicer.org/t/what-is-the-difference-between-getcolor-and-getselectedcolor-in-display-node/47613/3 "2026-07-16T06:22:00Z")

</div>

Thank you for your help
