Skip to main content
Participant
November 11, 2021
Question

Selecting multiple objects with cryptomatte

  • November 11, 2021
  • 2 replies
  • 4141 views

Hello Guys,

 

Im dealing with a large number of ojects in one scene rendered in exr with Cryptomatte pass. Is there is a way with an expression to select all objects in a cryptomatte excluding one which has a known value?

Can i invert selection? or a shortcut to select all ? attached a reference of that render

 

The black is enviroment so it cannot show in the Cryptomatte pass  neither select it 

This topic has been closed for replies.

2 replies

Participant
June 13, 2023

Hi,

In your case You can add a plate in the background. Then select it and use an other effect to negativ the matte.

Otherwise I don't have the solution to your idea

Mylenium
Legend
November 11, 2021

Expressions can't do anything you can't do with keyframes. Therefore your idea has no merit. Other than that "Cryptomattes" are just spiced up versions of RGB Mattes and they are treated the same - isolate the channels e.g. using Set Channels/ Shift Channels, apply blending operations and adjustment effects to them to mutually add, divide, subtract and multiply. If you look up old tutorials on such stuff, you'll understand. Otherwise it seems to me that your workflow simply doesn't make much sense. It would likely be more productive if you actually assigned proper object IDs to your 3D objects and rendered those as passes or create a custom particle output e.g. based on proximity, camera depth and so on. Relying on automatic polygon/ object/ material IDs such as an untamed and unmanged cryptomatte produces can only get you so far and is simply impractical fur such small objects in huge numbers.

 

Mylenium