How to create cryptomatte by prims?

   1861   1   2
User Avatar
Member
674 posts
Joined: 11月 2013
オフライン
Hi,

I want to create Cryptomatte in karma distincted by each geo prims.
How to set the Primvar for it?

Thanks!
Edited by jerry7 - 2021年11月18日 05:14:00

Attachments:
crypto.png (39.9 KB)

User Avatar
スタッフ
4258 posts
Joined: 9月 2007
オフライン
There is actually a built-in way to get this (though not easy to discover); when you make an extra render var, the Cryptomatte Objects should do this for you (see the attached image).

If you have a custom primvar you wish to use to generate a cryptomatte pass; I don't think it can be a per-face primvar, it has to be a constant primvar (i.e. one value)?

Here is an example, hope it helps!

Attachments:
screenshot_20211118_095028.png (49.4 KB)
karma_custom_cryptomatte.hip (1.7 MB)

I'm o.d.d.
  • Quick Links