# STL sliced/rasterized to BMP/TIFF stack

**URL:** <https://discourse.slicer.org/t/stl-sliced-rasterized-to-bmp-tiff-stack/9351>\
**Category:** Support\
**Created:** [December 2, 2019, 3:42am UTC](https://discourse.slicer.org/t/stl-sliced-rasterized-to-bmp-tiff-stack/9351 "2019-12-02T03:42:02Z")\
**Posts on this page:** 1\
**Showing post:** 23

<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:** [October 21, 2020, 5:48pm UTC](https://discourse.slicer.org/t/stl-sliced-rasterized-to-bmp-tiff-stack/9351/23 "2020-10-21T17:48:04Z")

</div>

Also note that you need to be careful when using backslash in a string in Python:

> [@Subprocess.call does not work!](https://discourse.slicer.org/t/subprocess-call-does-not-work/2837/14):
>
> FYI, since backslash (\) is an escape character in Python, you cannot simply use it in a string literal in Python. The easiest is to indicate that you specify a raw string by prepending an r character before the string. This is correct: somePath = r"F:\someFolder\python.exe" If you need to use a regular string then backslash can be entered by typing double-backslash. This is correct: somePath = "F:\\someFolder\\python.exe" You may also use Unix-type separators. This is correct: somePath = …

---

_[View the full topic](https://discourse.slicer.org/t/stl-sliced-rasterized-to-bmp-tiff-stack/9351)._
