# Get label map node from segmentation node

**URL:** <https://discourse.slicer.org/t/get-label-map-node-from-segmentation-node/1137>\
**Category:** Development\
**Tags:** segmentation\
**Created:** [September 27, 2017, 7:49pm UTC](https://discourse.slicer.org/t/get-label-map-node-from-segmentation-node/1137 "2017-09-27T19:49:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![snvl](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@snvl](https://discourse.slicer.org/u/snvl)\
**Post date:** [September 27, 2017, 8:20pm UTC](https://discourse.slicer.org/t/get-label-map-node-from-segmentation-node/1137/3 "2017-09-27T20:20:10Z")

</div>

Awesome! Do you know how I might do this through the python code?

Found it:  
`
slicer.modules.segmentations.logic().ExportSegmentsToLabelmapNode()
`

---

_[View the full topic](https://discourse.slicer.org/t/get-label-map-node-from-segmentation-node/1137)._
