Static Mesh Primitive Component for Custom Depth Stencil

What is the proper way to change a custom depth stencil for a static mesh using blueprint? I seem to be running into a problem doing so for my foliage. The set custom depth (and stencil) target requires a primitive and I cannot cast to primitive component from a static mesh.

The specific Set Render Custom Depth that you have selected has a target for Primitive Components. Try to pull a line from the Static Mesh and release it somewhere empty on the grid, then search for Set Render Custom Depth. Hopefully this will allow you to connect them.

If this doesn’t work for you, perhaps the Static Mesh isn’t of the class static mesh. I managed to do what you wanted to do:
bild

I still haven’t figured out why this works where you are doing it and not for me. Are you in the level blueprint or something?

You should be able to do it anywhere as far as I know. This was in a normal blueprint actor.