BP for Set Render Custom Depth

Hi,

I’m trying to create a Editor Utility BP/Blutility so I can select some elements and run my BP to automatically activate the “Render CustomDepth Pass”

I’m having a problem to connect my Actor Object Reference to the Render Custom Depth that I belive is what I want but the problem is that the input for that is Primitive component Object Reference.

Any help on how to solve this please?
Thank you