$\begingroup$You can restrict the vislibility to camera in all other objects, or use an object mask to subtract everything but the object from the rendered scene and composite on top. Read blender.stackexchange.com/questions/48122/…$\endgroup$
– user1853May 28 '19 at 14:40

$\begingroup$the first option it will just render the one i want but not affected by the other object so that doesnt do it for me. The second i think is the one that i need....Is there a way to mess with ray visibility for the whole collective ?$\endgroup$
– kay777May 28 '19 at 23:00

$\begingroup$So first I had misunderstood. I thought that by "affected" you meant physics and stuff, but you mean shadows, reflections, etc. I will update my answer.$\endgroup$
– KiskitMay 29 '19 at 7:51