create_gp_material
Creates a Grease Pencil stroke material using a material name and RGBA color, so scripts can define stroke colors in Blender; fill colors are not supported.
Instructions
Create a Grease Pencil material: the stroke colour.
Fills are not offered: in Blender 5.2, strokes built from a script do not render their fill.
Args: name: Material name. color: Stroke RGBA, components 0.0 to 1.0.
Returns: Dict with the material and its colour.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| color | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||