Compositing Grease Pencil

Hey. Is there a way to have GreasePencil work with Cryptomatte? Or any other way to have acces to different Grease Pencil Layers for Compositing / Postprocessing?
The only way I found so far is prerender to severall Imageseq/Videos?

Cryptomatte is only recognizing 3D surfaces. It does not take into account Grease Pencil objects.

But you can directly exploit your Grease Pencil layers in compositing nodes.
All you have to do precise in Grease Pencil Layer properties, under Adjustment panel, a ViewLayer dedicated to this GP layer.
The Grease Pencil layer will be rendered only in this View Layer and not in the other ones.

For example, you can populate a scene with lots of Grease Pencil objects using a “Fills” layer and a “Lines” layer. If you create corresponding Fills and Lines View Layers and assign them to each GP layer of each GP object ; you will end-up with all fills of scene in one Compositing View Layer and all lines in another one.

You also have the ability to indicate a Pass index per GP Material or GP layer that can be exploited by an ID Mask node.

1 Like

Works Perfect! Thanks alot