Hey guys.
I have had the very same problem you have now, as has everyone I know using cinema 4D. But I have just now figured the problem out.
I’m so excited. xD
The problem is this: Whem working in cinema you most likely don’t use a completely linear workflow. (check “linear workflow cinema4d” on google for this).
This means that the srgb gamma curve messes up your middle grey values, in this case the semi transparent pixels you get in your alpha channel, leaving you with a brighter or darker rim around your object.
the solution:
turn on linear workflow in cinema, create openEXR files if possible and turn the color management in your after effects on and switch to 32bit color mode if possible. the image you see should be pretty much the same as in cinema.
you now work in a linear workflow and the object channels should now fit your image perfectly.
I hope this was clear. check the numerous tuts on linear workflow out there, it’s a real lifesaver!
Alex