Blender Git Commit Log

Git Commits -> Revision b616f3c

Revision b616f3c by Alexander Gavrilov
October 6, 2021, 09:49 (GMT)
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

Commit Details:

Full Hash: b616f3ce28d35cd96bedcc5f6b52e9f28da18f57
Parent Commit: 330dc8b
Lines Changed: +114, -0

5 Modified Paths:

/doc/python_api/sphinx_doc_gen.py (+2, -0) (Diff)
/source/blender/editors/animation/anim_channels_defines.c (+18, -0) (Diff)
/source/blender/editors/include/ED_anim_api.h (+3, -0) (Diff)
/source/blender/editors/interface/interface_ops.c (+3, -0) (Diff)
/source/blender/editors/screen/screen_context.c (+88, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021