Geometry Nodes Grease Pencil integration design
This document summarizes the ideas for how to integrate Grease Pencil into geometry nodes.
The Grease Pencil data-block at a specific scene frame can be thought of as a tree of CurvesGeometry
.
Idea #1
- New Geometry Component for Grease Pencil
- Two nodes
- Convert Grease Pencil to Curves
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- If the layer name is empty, will convert all the visible curves to a single CurvesGeometry
- If there is a valid layer name, will only convert the CurvesGeometry of that layer.
- Convert Curves to Grease Pencil
- Problem: How to we reconstruct the layer tree?
- Idea: Store a
layer_id
and a parent_layer_id
attribute on each curve. Reconstruct the tree from this information. This will reconstruct the structure, but looses all information stored on the layers. E.g. visibility, name, etc