Applying GTAO postprocessing to only some objects

Hello everyone. I use GTAO as a post-processing effect. Is it possible to apply this effect only to some objects in the scene and not to others? Obviously it would be necessary to consider the Depth Buffer and transparencies.

Should be 100% possible, but you’d need to code a masking postprocessing - first run a postprocessing pass that renders the entire scene in black and only the target objects in pure white without shading - then multiply the GTAO pass by the result of that masking pass.