Blender Git Commit Log

Git Commits -> Revision 957e292

Revision 957e292 by Jeroen Bakker (master)
January 12, 2021, 15:24 (GMT)
Fix T64953: Add cryptomatte meta data to file output node.

This change will try to add meta data when using a multilayered open
exr file output node in the compositor. It adds the current scene meta
data and converts existing cryptomatte keys so it follows the
naming that is configured in the file output node.

This change supports the basic use-case where the compositor is
used to output cryptomatte layers with a different naming scheme to
support external compositors. In this case the Multilayered OpenEXR
files are used and the meta data is read from the render result.

Meta data is found when render layer node is connected with the
file output node without any other nodes in between. Redirects and empty
node groups are allowed.

The patch has been verified to work with external compositors.
See https://devtalk.blender.org/t/making-sense-of-cryptomatte-usage-in-third-party-programs/16576/17

See patch for example files.

Reviewed By: Sergey Sharybin

Differential Revision: https://developer.blender.org/D10016

Commit Details:

Full Hash: 957e292c5864cba3cf62c7c59dc644422660034f
Parent Commit: c3b68fa
Lines Changed: +438, -22

4 Added Paths:

/source/blender/blenkernel/BKE_cryptomatte.hh (+59, -0) (View)
/source/blender/blenkernel/intern/cryptomatte_test.cc (+44, -0) (View)
/source/blender/compositor/intern/COM_MetaData.cpp (+71, -0) (View)
/source/blender/compositor/intern/COM_MetaData.h (+56, -0) (View)

13 Modified Paths:

/source/blender/blenkernel/CMakeLists.txt (+1, -0) (Diff)
/source/blender/blenkernel/intern/cryptomatte.cc (+51, -14) (Diff)
/source/blender/compositor/CMakeLists.txt (+2, -0) (Diff)
/source/blender/compositor/intern/COM_SocketReader.h (+13, -0) (Diff)
/source/blender/compositor/nodes/COM_OutputFileNode.cpp (+4, -2) (Diff)
/source/blender/compositor/operations/COM_OutputFileMultiViewOperation.cpp (+7, -2) (Diff)
/source/blender/compositor/operations/COM_OutputFileMultiViewOperation.h (+2, -1) (Diff)
/source/blender/compositor/operations/COM_OutputFileOperation.cpp (+31, -2) (Diff)
/source/blender/compositor/operations/COM_OutputFileOperation.h (+5, -1) (Diff)
/source/blender/compositor/operations/COM_RenderLayersProg.cpp (+84, -0) (Diff)
/source/blender/compositor/operations/COM_RenderLayersProg.h (+2, -0) (Diff)
/source/blender/compositor/operations/COM_SocketProxyOperation.cpp (+5, -0) (Diff)
/source/blender/compositor/operations/COM_SocketProxyOperation.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021