# Mask Creation Module

**URL:** <https://discourse.slicer.org/t/mask-creation-module/7359>\
**Category:** Support\
**Tags:** sequences\
**Created:** [June 28, 2019, 6:20pm UTC](https://discourse.slicer.org/t/mask-creation-module/7359 "2019-06-28T18:20:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jainey](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@Jainey](https://discourse.slicer.org/u/Jainey)\
**Post date:** [June 28, 2019, 6:20pm UTC](https://discourse.slicer.org/t/mask-creation-module/7359/1 "2019-06-28T18:20:19Z")

</div>

Is it possible to apply a mask to a four D volume using mask creation, please?

I have about 30 volumes of moving bones that I need to mask a few out of them If I apply a mask to the first frame or volume is there a way that it would propagate along the sequence. These are just CT images, not segmented ones.

Thanks

Tom

---

<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:** [June 28, 2019, 10:56pm UTC](https://discourse.slicer.org/t/mask-creation-module/7359/2 "2019-06-28T22:56:03Z")

</div>

Right now you need to do this manually (click Apply on Mask volume effect, then hit the key comvination to go to next frame - I think Ctrl-Alt-RightArrow, and repeat for each frame) or do a very little Python scripting.

I’ve added a module for cropping volume sequences (Crop volume sequence), which does something very similar. You could clone this module and change the [run method](https://github.com/SlicerRt/Sequences/blob/d0635ab179ed4c75e52fa4cb3c64efa2cbcdeee8/CropVolumeSequence/CropVolumeSequence.py#L163) in the logic to mask the volume instead of cropping it.
