# Export multiple individual segment .stl files from one segmented nii.gz file using python script

**URL:** <https://discourse.slicer.org/t/export-multiple-individual-segment-stl-files-from-one-segmented-nii-gz-file-using-python-script/15687>\
**Category:** Support\
**Created:** [January 27, 2021, 3:36am UTC](https://discourse.slicer.org/t/export-multiple-individual-segment-stl-files-from-one-segmented-nii-gz-file-using-python-script/15687 "2021-01-27T03:36:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [January 27, 2021, 4:06am UTC](https://discourse.slicer.org/t/export-multiple-individual-segment-stl-files-from-one-segmented-nii-gz-file-using-python-script/15687/4 "2021-01-27T04:06:58Z")

</div>

Yes, you can save segmentations to all these formats. You can find more examples in this forum, for example:

> [@Exporting Segment as OBJ through Python](https://discourse.slicer.org/t/exporting-segment-as-obj-through-python/10802/7):
>
> To get help on how to use a method, use help method in the Python interactor: \>\>\> help(slicer.vtkSlicerSegmentationsModuleLogic.ExportSegmentsClosedSurfaceRepresentationToFiles) Help on method\_descriptor: ExportSegmentsClosedSurfaceRepresentationToFiles(...) V.ExportSegmentsClosedSurfaceRepresentationToFiles(string, vtkMRMLSegmentationNode, vtkStringArray, string, bool, float, bool) -\> bool C++: static bool ExportSegmentsClosedSurfaceRepresentationToFiles( std::…

---

_[View the full topic](https://discourse.slicer.org/t/export-multiple-individual-segment-stl-files-from-one-segmented-nii-gz-file-using-python-script/15687)._
