hi aoktar,
sincerely i don't know if it could function or not, but in octane, if you want to hide a portion of geometry, you could assign a material portal node with his option disabled. maybe is possible to connect this feature with the compositing tag
ciao beppe