# Preserve colors from segment editor node and export it as Nifti LabelMap

**URL:** <https://discourse.slicer.org/t/preserve-colors-from-segment-editor-node-and-export-it-as-nifti-labelmap/33100>\
**Category:** Support\
**Tags:** segmentation, nifti, file-export, labelmap\
**Created:** [November 28, 2023, 10:14pm UTC](https://discourse.slicer.org/t/preserve-colors-from-segment-editor-node-and-export-it-as-nifti-labelmap/33100 "2023-11-28T22:14:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [November 28, 2023, 11:06pm UTC](https://discourse.slicer.org/t/preserve-colors-from-segment-editor-node-and-export-it-as-nifti-labelmap/33100/2 "2023-11-28T23:06:42Z")

</div>

This came up recently in [this thread](https://discourse.slicer.org/t/label-color-changed-after-saving/33070/7). This is the important sentence from the documentation:

**The label value is index of the color table entry that has the same name as the segment name.**

Do you have entries called 31 and 307 in your custom color table?

---

_[View the full topic](https://discourse.slicer.org/t/preserve-colors-from-segment-editor-node-and-export-it-as-nifti-labelmap/33100)._
