# How to overlay more than two volumes

**URL:** <https://discourse.slicer.org/t/how-to-overlay-more-than-two-volumes/8860>\
**Category:** Support\
**Created:** [October 22, 2019, 3:33pm UTC](https://discourse.slicer.org/t/how-to-overlay-more-than-two-volumes/8860 "2019-10-22T15:33:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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 22, 2019, 4:05pm UTC](https://discourse.slicer.org/t/how-to-overlay-more-than-two-volumes/8860/3 "2019-10-22T16:05:55Z")

</div>

@pieper do you envision changing the slice view pipeline or just adding a module that can create an RGB volume from a vector volume?

@sthirumal You can create a colored image by combining any number of volumes into a single volume using custom rules by writing a couple of lines of Python code. See this example for combining two volumes into a third volume: [Creating Volume from Numpy](https://discourse.slicer.org/t/creating-volume-from-numpy/658/18). You can modify it to create a colored volume by creating a new vector volume instead of cloning the input scalar volume.

---

_[View the full topic](https://discourse.slicer.org/t/how-to-overlay-more-than-two-volumes/8860)._
