Material Cryptomatte with VRayLightMtl bug

I just discovered: when using a cryptomatte in Material mode with VRayLightMtl it doesnt work when directIllumination is on.The object is not unlcuded in the cryptomatte.


attached is an example scene: When direct illum is turned off on VRayLightMtl3 it works again.

V-Ray 5 for Maya, update 2
(v5.20.00 from Nov 9 2021)

maya 2022.3
Cryptomattebug_Lightmaterial_direct_illum_on.zip (42.8 KB)

Thanks for the report. I’ve logged the issue (internal bug-tracker id: VMAYA-11070) for developer investigation. Until it is resolved, you may use a VRayMeshLight instead - it is selectable through the “Node name with hierarchy” and “Node name” Cryptomatte modes.