create_grease_pencil
Create a Grease Pencil object to draw 2D strokes in 3D space. Use it with add_gp_stroke to draw and create_gp_material to color strokes.
Instructions
Create a Grease Pencil object to draw 2D strokes in 3D space.
Draw into it with add_gp_stroke; colour strokes with create_gp_material. For notes on the viewport use the annotation tools instead.
Args: name: Object name. location: Position [x, y, z]. layer_name: Name of its first layer.
Returns: Dict with the object, layer and frame created.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Drawing | |
| location | No | ||
| layer_name | No | Lines |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||