set_annotation_stroke_property
Set an annotation stroke's display mode to 3DSPACE, 2DSPACE, or 2DIMAGE by specifying the annotation, layer, and stroke index.
Instructions
Set a property on an annotation stroke.
Args: annotation_name: Name of the annotation data block. layer_name: Name of the layer containing the stroke. stroke_index: Index of the stroke in the layer (0-based). property: display_mode, the only stroke setting in 5.2. value: 3DSPACE (in the scene), 2DSPACE (stuck to the view) or 2DIMAGE.
Returns: Confirmation dict.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"annotation_name": "<annotation_name>",
"layer_name": "<layer_name>",
"stroke_index": "<stroke_index>",
"property": "<property>",
"value": "<value>"
},
"name": "set_annotation_stroke_property"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| property | Yes | ||
| layer_name | Yes | ||
| stroke_index | Yes | ||
| annotation_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||