# Export Volume Rendering as stack of PNG's. NOT stl's

**URL:** <https://discourse.slicer.org/t/export-volume-rendering-as-stack-of-pngs-not-stls/3333>\
**Category:** Support\
**Tags:** volume-rendering, 3d-printing\
**Created:** [June 29, 2018, 11:21am UTC](https://discourse.slicer.org/t/export-volume-rendering-as-stack-of-pngs-not-stls/3333 "2018-06-29T11:21:45Z")\
**Posts on this page:** 1\
**Showing post:** 66

<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, 2019, 6:38pm UTC](https://discourse.slicer.org/t/export-volume-rendering-as-stack-of-pngs-not-stls/3333/66 "2019-02-26T18:38:59Z")

</div>

You should be able to create a clipping scenario like the one shown in the image below. I’ve done it through the GUI here, but the same thing in python via the model display nodes, clip model node, and slice nodes using code like what’s pasted below. This would need to be scripted and integrated with the [corresponding slab generation for the volume rendering](https://github.com/SlicerFab/SlicerFab/blob/master/BitmapGenerator/BitmapGenerator.py#L313-L371).

Cheers,  
Steve

```auto
m = getNode('tissue')
dn = m.GetDisplayNode()
dn.SetClipping(0)
dn.SetClipping(1)
c = getNode('*ClipModel*')
c.SetClipType(1)
c.SetClipType(0)
c.SetClipType(1)
c.SetYellowSliceClipState(1)
c.SetYellowSliceClipState(0)
c.SetYellowSliceClipState(1)

```

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/d/ad2ae48259f7de863d1efedd08874cc531783b50.jpeg)

---

_[View the full topic](https://discourse.slicer.org/t/export-volume-rendering-as-stack-of-pngs-not-stls/3333)._
