Please avoid to use the old Render Masks, they ar deprecated.
Old Render Masks are not good, since are calculated by c4d internal render, so they cannot consider DOF or Motion Blur, and can only offer a brutal b&w mask of the geometry.
They were added in c4doctane plugin when Octane SDK did not have any pass related to Layer ID.
Not only, they are not supported in Standalone or ORC/RNDR.
Cryptomatte is great, but sometimes it is even too much, if you need only few masks.
In this case, you can use the
Object layer color pass, and define the color of the Object pass with an Octane Object tag:
ciao Beppe