Render just one object

I am trying to generate textures for a projector, but am running into problems when objects are near each other
When rendering to a texture, is it possible to render a single object? I’ve tried culling by layers, which works when the objects are far away, but when they get close enough, they are visible in each other’s textures

If you know the object that you’re trying to render, just change gameObject.layer to the number of the layer that you want, and then change it back when you’re done with it.