# Matte pass for selected mesh in Blutility

**URL:** <https://forums.unrealengine.com/t/matte-pass-for-selected-mesh-in-blutility/452891>\
**Category:** Blueprint\
**Tags:** Blueprint-Utilities, Blutilities, unreal-engine, compositing, question\
**Created:** [July 26, 2019, 7:57pm UTC](https://forums.unrealengine.com/t/matte-pass-for-selected-mesh-in-blutility/452891 "2019-07-26T19:57:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dg-ani](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dg-ani](https://forums.unrealengine.com/u/dg-ani)\
**Post date:** [July 26, 2019, 7:57pm UTC](https://forums.unrealengine.com/t/matte-pass-for-selected-mesh-in-blutility/452891/1 "2019-07-26T19:57:24Z")

</div>

I’m working on a fairly complex previsualization setup in UE4. One thing we’d like to be able to do is select a few objects and turn them white, and turn the rest black. This will let us screen grab a custom matte pass for compositing later on.

I’ve started to build out this functionality in Blutilities, and it’s working great (graph below). Unfortunately I can’t figure out a way to revert the materials to their original form after I’ve switched them out.

Does anybody have an idea on how to do this?

Thanks for reading!

EDIT: Guess I didn’t attach the picture - updated!

 ![283538-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/6/fb6ee6a24bd11d8fd37a0017d0cca01258aee0a3.png)
