Grease Pencil: Python API: Expose bézier handle selection

This adds two new python properties to  `GreasePencilStrokePoint`
* `select_handle_left`: The selection of the left handle of this point
* `select_handle_right`: The selection of the right handle of this point

These could already be written to using `drawing.attributes[".selection_handle_left"]`
and `drawing.attributes[".selection_handle_right"]`, but this makes it
easier to work on individual points from the higher-level
python API.

Resolves #137639.

Pull Request: https://projects.blender.org/blender/blender/pulls/137730
This commit is contained in:
Falk David
2025-04-18 18:20:33 +02:00
committed by Falk David
parent e64679bd63
commit ee6d683809

View File

@@ -135,6 +135,8 @@ def DefAttributeGetterSetters(attributes_list):
"The rotation for this point. Used to rotate textures."),
("delta_time", "delta_time", 'FLOAT', 0.0,
"The time delta in seconds since the start of the stroke."),
("select_handle_left", ".selection_handle_left", 'BOOLEAN', True, "The selection state of the left bézier handle."),
("select_handle_right", ".selection_handle_right", 'BOOLEAN', True, "The selection state of the right bézier handle."),
])
class GreasePencilStrokePoint(AttributeGetterSetter):
"""