diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2021-07-16 12:36:57 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2021-11-24 15:58:32 +0300 |
commit | 057cb7e5e77bcf932882292a774156b5d8c90ab4 (patch) | |
tree | 57dfa5a30559960646b6281fff0b44e411cc6a25 /doc | |
parent | 65f547c3fc116860b9c7eaf6e3d8abd2651f5168 (diff) |
Context: add accessors returning selected actions for animation editors.
Add a new 'selected_visible_actions' property to allow querying
actions that are selected in animation related editors for use in
UI and operators. The 'selected_editable_actions' variant excludes
linked actions (the only reason an action can be read-only).
In the Action and Shape Key editors there is only one action
that is specified by the field at the top of the editor.
In Dope Sheet it scans the channel rows and returns all actions
related to the selected items. This includes summary items for
actions and groups.
In Graph Editor, it lists actions associated with selected curves.
The new property is also used for Copy To Selected and Alt-Click.
Ref D11803
Diffstat (limited to 'doc')
-rw-r--r-- | doc/python_api/sphinx_doc_gen.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index 7e2be8ddf75..ea6919ae6dc 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -1103,6 +1103,7 @@ context_type_map = { "selectable_objects": ("Object", True), "selected_asset_files": ("FileSelectEntry", True), "selected_bones": ("EditBone", True), + "selected_editable_actions": ("Action", True), "selected_editable_bones": ("EditBone", True), "selected_editable_fcurves": ("FCurve", True), "selected_editable_keyframes": ("Keyframe", True), @@ -1118,6 +1119,7 @@ context_type_map = { "selected_pose_bones": ("PoseBone", True), "selected_pose_bones_from_active_object": ("PoseBone", True), "selected_sequences": ("Sequence", True), + "selected_visible_actions": ("Action", True), "selected_visible_fcurves": ("FCurve", True), "sequences": ("Sequence", True), "soft_body": ("SoftBodyModifier", False), |