Channels

How do I render the shadows being cast onto an object into a shadow element without rendering the object itself? I’m pretty sure I’ve done it in the past, I just can’t seem to remember… = : o /

Is it also possible to render out a reflection element without the reflection appearing in the main RGB channel?

Thanks.

if I understand the question correctly then both of these should be possible by
selecting the object
right click in viewport
object properties
there are multiple options to get various results but unticking visible to camera should get you what you want