Hello there. The post title might be vague, but hopefully the following description is less so:
I have objects (meshes) that should only be seen if there's a different object (a "lens" with a transmissive glass material) between it and the camera. That works as it should. What I want to know (and can't figure out) is if there's a way to enable/disable other flags based on a hierarchy of conditions; specifically, I'd like to disable reflections IF AND ONLY IF an object is NOT visible through the aforementioned "lens." Right now I can only seem to enable/disable reflectivity regardless of other conditions: there seems to be no way to create a "cascade," maybe, of prerequisite conditions.
I'm just now experimenting with the compositing tag, so maybe what I described above is possible and I just don't know it. I'd appreciate any advice! Thank you!
I'm attaching two images: in "A," you can see the reflection on the central box but not the object casting the reflection: this is where I'd like to be able to disable the reflection because the object is not behind the lens; in "B," you can see the object (through the lens as well as its reflection. I'm trying to hide the reflection from image "A" while still being able to see it in image "B."