add_annotation_stroke
Add a stroke to an annotation layer using XYZ coordinates and pen pressure. Creates a new stroke on the specified layer.
Instructions
Add a stroke to an annotation layer.
Creates a new stroke with the given points on the specified layer. Note: AnnotationStroke does not support per-point strength/opacity.
Args: annotation_name: Name of the annotation data block. layer_name: Name of the layer to add the stroke to. points: List of XYZ coordinates, e.g. [[0,0,0], [1,1,0], [2,0,0]]. Maximum 10000 points. pressure: Pen pressure for all points. Range: 0.0-1.0.
Returns: Confirmation dict with point count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| annotation_name | Yes | ||
| layer_name | Yes | ||
| points | Yes | ||
| pressure | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||