Rendering out Custom Stencil Buffer to Masks

Hello and thank you very much for reading.

I want to render out B&W masks for the silhouettes of objects in my scene. The perspective shall be defined by a default CineCameraActor.

Say I have this:

Now I assigned Custom Stencil Pass IDs to my objects, so when viewing the “custom stencil buffer” it looks like this:

Now I want to render out each of these objects one by one as B&W, without any depth.

I tried to create materials with scenetextures set to customstencil with substracts and lerps, tried to attach scenecaptures and rendertargets to a camera and so on, but did not succeed. For example, I expected this to work:

Now I want to move my CineCameraActor somewhere and take a single shot creating the B&W mask as a PNG or BMP. Could anyone please give me a hint?

Thank you so much!

Noone no idea not? No? :slight_smile: