It will be a stupid question but I really don't know how to render the current scene with only the objects displayed in the viewport, as although you normally hide them with H, in the render they are the same. I thought about creating another scene by deleting those objects, but is it convenient? or does the project weigh me down? moreover, from one scene to another it makes me copy only the single objects and not the collections, is there a way to bring the groups?
So how can I render only some of the objects in the scene without having to go crazy?