How to render cryptomattes with dof in unreal engine 5.2 ?

Hi i need help. How to render cryptomattes with dof in unreal engine 5.2 ?

Running into this issue right now as well, did you ever find a fix?

same problem hier

I ended up finding a sort of solution to this. Basically whatever render you’re doing, render out a z depth pass too and then you’ll have to do your DOF in post like in Nuke. So the order of operation is do whatever grading you need to do with your cryptomattes, then z-defocus it afterwards. Not an ideal fix but worked for me sort of. Really wish unreal would make cryptomattes more versatile. Honestly they need to just add a full AOV section in a future update.

I have a same problem, I added foliage layer node in landscape master material and painted it in landscape layer everything is visible in cryptomatte except the foliage painted in landscape layer

Is there a way to render the Cryptomatte/ObjectID in a .png file?
even if I have to do two separate renders?
one render for image and another for Cryptomatte

thanks