# Retrieve the segmentation and source volume from Segment Editor (segmentEditorWidget)

**URL:** <https://discourse.slicer.org/t/retrieve-the-segmentation-and-source-volume-from-segment-editor-segmenteditorwidget/36162>\
**Category:** Development\
**Created:** [May 15, 2024, 9:37am UTC](https://discourse.slicer.org/t/retrieve-the-segmentation-and-source-volume-from-segment-editor-segmenteditorwidget/36162 "2024-05-15T09:37:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![waromero](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/waromero/32/68278_2.png) [@waromero](https://discourse.slicer.org/u/waromero)\
**Post date:** [May 15, 2024, 9:37am UTC](https://discourse.slicer.org/t/retrieve-the-segmentation-and-source-volume-from-segment-editor-segmenteditorwidget/36162/1 "2024-05-15T09:37:51Z")

</div>

Hello,

I embedded the `segmentEditorWidget` from the Segment Editor module into my custom-made module. Now I want to retrieve the `vtkMRMLScalarVolumeNode` from the `sourceVolumeNodeSelector`; and the `vtkMRMLSegmentationNode` from `segmentationNodeSelector` (selection made by the user).

Normally, I have a component of the style: `self.ui.inputSegmentationSelector.currentNode()` but I can’t find the access to the object in the UI in `segmentEditorWidget`.

Thank you!
