Cryptomatte Node
The Cryptomatte node uses the Cryptomatte standard to efficiently create mattes for compositing. Cycles and Eevee output the required render passes, which can then be used in the Compositor or another compositor with Cryptomatte support to create masks for specified objects.
与材质和对象索引通道不同,要隔离的对象在合成过程中被选中,遮罩将具有抗锯齿特性,并考虑运动模糊和透明度等效果。
输入
- 图像
Standard color input.
属性
- 源
The source of the Cryptomatte data.
- 渲染
Use Cryptomatte data that are stored as part of the render.
- 图像
Use Cryptomatte data that are stored inside a multilayered OpenEXR image.
- 场景
Scene selector. Only available when Render Source is selected.
- 图像
Image selector. Only available when Image Source is selected.
- Cryptomatte层
Selector of the Cryptomatte layer.
- 蒙版ID
要包含在蒙版中的对象和材质的 crypto ID 列表。例如,这可用于通过删除文本来删除所有蒙版,或用于从其他软件复制和粘贴 crypto ID。
输出
- 图像
输入图像的一个彩色输出结果,仅选定的图层应用了蒙版。
- 蒙版
A black-and-white alpha mask of all the selected crypto layers.
- 选取
A colored representation of the Cryptomatte pass which can be used as a higher contrast image for color picking.
用法
在通道面板中启用Cryptomatte物体渲染通道,然后渲染。
In the compositing nodes, create a Cryptomatte node and select the Cryptomatte layer.
Attach a Viewer node to the combined pass of the render layers.
Use the Cryptomatte Add/Remove button to sample objects from the Compositor backdrop.
使用Cryptomatte节点的蒙版输出来获取Alpha遮罩。
The Image editor, UV editor, node backdrop or Movie Clip editor can be used to pick a Cryptomatte sample. They don't need to show any Cryptomatte layer. The node will use the sample image coordinate to sample in the Cryptomatte layer that is selected in the node.
例子
In the example below, you can see the pass output on the right side. On the left side you can see a couple of objects that were selected through the Cryptomatte node. Notice how the cube on the left has a sphere-shaped cut-out from a sphere that was not selected in the node.
局限
Cryptomatte sidecars (metadata files) are not supported.
Cryptomatte node cannot be used in node groups.
Volume Objects are not supported.