# Way to acess eagag

**URL:** <https://discourse.slicer.org/t/way-to-acess-eagag/41886>\
**Category:** Development\
**Tags:** segmentation\
**Created:** [February 26, 2025, 6:10pm UTC](https://discourse.slicer.org/t/way-to-acess-eagag/41886 "2025-02-26T18:10:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Djonathan\_Souza](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/djonathan_souza/32/79307_2.png) [@Djonathan\_Souza](https://discourse.slicer.org/u/Djonathan_Souza)\
**Post date:** [February 26, 2025, 6:10pm UTC](https://discourse.slicer.org/t/way-to-acess-eagag/41886/1 "2025-02-26T18:10:58Z")

</div>

Hello, I need a way to access the segmentation node, as I need to save the segmentations.

However, I am using pythonSlicer to run the application and I cannot use MRML according to the documentation at [slicer — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/slicer.html#module-slicer).

Here is the code:

```python
segmentation_nodes = slicer.mrmlScene.GetNodesByClass("vtkMRMLSegmentationNode")
 

# I am receiving the following error when I call the function to save a segmentation:
{
  "error": "Failed to process the segmentations: module 'slicer' has no attribute 'mrmlScene'"
}

```

I am looking for a way to do this without using `mrml`. Thank you in advance!

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 26, 2025, 6:46pm UTC](https://discourse.slicer.org/t/way-to-acess-eagag/41886/2 "2025-02-26T18:46:31Z")

</div>

[https://slicer.readthedocs.io/en/latest/developer\_guide/slicer.html#module-slicer:~:text=Warning-,These%20attributes%20are%20only%20set%20in%20the%20Python%20environment%20embedded%20in%20the%20Slicer%20main%20application.,-Additionally%20for%20all](https://slicer.readthedocs.io/en/latest/developer_guide/slicer.html#module-slicer:~:text=Warning-,These%20attributes%20are%20only%20set%20in%20the%20Python%20environment%20embedded%20in%20the%20Slicer%20main%20application.,-Additionally%20for%20all)
