Need help in creating a reveal effect of an object inside another.

Hey Guys, just starting up with UE and I’m a bit stuck.

I’m trying to achieve an effect, where an object is hidden inside another and is revealed when it opens up.
Here’s a quick mockup

I’m wondering if it would be possible to have shape that is rigged with the main object and have UE simply show anything that overlaps. (The maks shape itself would no be set to visible in game)

The main object would not be static in the scene and will be moved by the user, as well as the opening and closing.

Any help would be greatly appreciated.