GPv3: Keyframe on-click selection #110492
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#110492
Loading…
Reference in New Issue
No description provided.
Delete Branch "amelief/blender:gpv3-keyframes-click-select"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implementation of the click-selection operator of keyframes in the dopesheet, along with its alternatives : deselect all when no frames is hit, extend selection with shift, colum selection with alt, select all keyframes on current channel with ctrl+alt.
Includes the new following API functions :
select_frame_at
: selects a frame in a layer at a specific time (if such frame exists),select_all_frames
: selects all frames of a layer,select_layer_channel
: selects a layer, and sets it as active (if layer is not null, otherwise the active layer is set null),layer_has_frame_selected
: checks if any of the frames in the layer is selected.WIP: GPv3: Keyframe on-click selection.to GPv3: Keyframe on-click selection.GPv3: Keyframe on-click selection.to GPv3: Keyframe on-click selectionFew initial comments.
@ -25,0 +64,4 @@
{
for (auto item : layer->frames().items()) {
const GreasePencilFrame &frame = item.value;
if ((frame.flag & GP_FRAME_SELECTED) != 0) {
Similar to how we have functions on the
GreasePencilFrame
likeis_implicit_hold()
I think it makes sense to add ais_selected()
one.@ -58,0 +74,4 @@
/**
* Checks if any frame of the \a layer is selected.
*/
bool layer_has_frame_selected(const bke::greasepencil::Layer *layer);
Maybe
layer_has_any_frame_selected(...)
?@ -1843,3 +1877,1 @@
if (ale != nullptr && ale->data != nullptr && ale->type == ANIMTYPE_GPLAYER) {
bGPdata *gpd = (bGPdata *)ale->id;
bGPDlayer *gpl = static_cast<bGPDlayer *>(ale->data);
if (U.experimental.use_grease_pencil_version3) {
I wonder if the check for the experimental option is still needed here.
Especially with the
ale->type == ANIMTYPE_GREASE_PENCIL_LAYER
check afterwards.63e95c5665
tof7960114bd
@blender-bot build
Two small comments, but otherwise LGTM!
@ -57,1 +59,4 @@
void select_layer_channel(GreasePencil *grease_pencil, bke::greasepencil::Layer *layer);
void set_active_layer(GreasePencil *grease_pencil, bke::greasepencil::Layer *layer);
This can be reomved.
@ -58,0 +72,4 @@
void select_all_frames(bke::greasepencil::Layer *layer, const short select_mode);
/**
* Checks if any frame of the \a layer is selected.
Returns true if any frame of the \a layer is selected.