I'm trying to get DOF in Compositing from an OpenEXR image with Combined/Alpha/Mist passes. This is the combined pass:
I can get DOF by a defocus node using the Mist pass (after a ColorRamp to define better), but I can't set which part of the image is focused and unfocused. (I want the character with the knife to be focused, and not the other character).
If I invert the Mist image I can achieve this but the borders aren't unfocused:
Is there any better way to achieve this? FYI I have an alpha pass