# Export volume (or segment?) to stl file with python

**URL:** <https://discourse.slicer.org/t/export-volume-or-segment-to-stl-file-with-python/25111>\
**Category:** Development\
**Tags:** python\
**Created:** [September 5, 2022, 10:51pm UTC](https://discourse.slicer.org/t/export-volume-or-segment-to-stl-file-with-python/25111 "2022-09-05T22:51:45Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Mike\_Flanigan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mike_flanigan/32/14586_2.png) [@Mike\_Flanigan](https://discourse.slicer.org/u/Mike_Flanigan)\
**Post date:** [September 21, 2022, 2:18am UTC](https://discourse.slicer.org/t/export-volume-or-segment-to-stl-file-with-python/25111/4 "2022-09-21T02:18:05Z")

</div>

This post ended up providing enough of a solution framework for me to figure it out.

> [@Tips for getting started loading and batch segmenting files with Slicer in python?](https://discourse.slicer.org/t/tips-for-getting-started-loading-and-batch-segmenting-files-with-slicer-in-python/24850/4):
>
> Check this script example for running island tool and exporitng the segmentation and writing to the disk:

---

_[View the full topic](https://discourse.slicer.org/t/export-volume-or-segment-to-stl-file-with-python/25111)._
