# MultiVolume with python script

**URL:** https://discourse.slicer.org/t/multivolume-with-python-script/13100
**Category:** Development
**Created:** [August 20, 2020, 7:57am UTC](https://discourse.slicer.org/t/multivolume-with-python-script/13100 "2020-08-20T07:57:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Chintha\_Siva\_Prasad](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chintha_siva_prasad/32/7766_2.png) [@Chintha\_Siva\_Prasad](https://discourse.slicer.org/u/Chintha_Siva_Prasad)
#### Post date: [August 20, 2020, 7:57am UTC](https://discourse.slicer.org/t/multivolume-with-python-script/13100/1 "2020-08-20T07:57:54Z")

</div>

How can I create multi volumes from python script and map them to different view nodes in slicer 3d?

---

<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: [August 21, 2020, 11:54pm UTC](https://discourse.slicer.org/t/multivolume-with-python-script/13100/2 "2020-08-21T23:54:57Z")

</div>

It is quite limited what you can do with MultiVolume, for example you can only have one or two volumes extracted from a sequence. However, if you load the volume as a Volume Sequence then there are no such limitations.

You can find in this example how to show different volumes in slice views: [https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Iterate\_over\_current\_visible\_slice\_views.2C\_and\_set\_foreground\_and\_background\_images](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Iterate_over_current_visible_slice_views.2C_and_set_foreground_and_background_images)
