Hi! If you want both IDs in the same AOV you can create it with a custom AOV write shader, i.e.:
You don't need the flat nodes, they are only for reference, you can set the RGB value in the same write node.
Or you can create separate mattes with 2 custom rgb aov with the same way. You can recreate it in MtoA. I can upload the scene if you want but is in c4d.
thank you dude, i will try to do in Maya in the night if i have some news i tell you soon,
thank you.