Chaos Corona Forum

Chaos Corona for Cinema 4D => [C4D] I need help! => Topic started by: Börje on 2024-05-18, 12:35:18

Title: Material ID for layered material
Post by: Börje on 2024-05-18, 12:35:18
Is it possible to assign a material IDto a layered Corona material?

I cann assign one to the base materials but not to the layered material itself therefore I struggle to let corona render a mask for the layered material.

Thanks in advance for any help!
Title: Re: Material ID for layered material
Post by: bnji on 2024-05-23, 09:07:37
Hello @Börje,

At this moment, this is not possible as the nature of a layered material is that it is a material conformed by several materials (layers), so this is why it is not considered an ID assignment for this material type.
However, depending on your workflow, you can use different workarounds/alternatives, like using a Mask multi-pass, setting the same Material ID for all materials that are being used in the Layered material to extract this information/mask, and using that Material ID for the Mask multipass.
I hope this helps.
Looking forward to hearing from you.