GPv3: Display layers in dopesheet and timeline #120605
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#120605
Loading…
Reference in New Issue
No description provided.
Delete Branch "PratikPB2123/blender:gpv3-channels-in-dopesheet"
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?
Include GPv3 layers in dopesheet and timeline editor.
Call
animdata_filter_grease_pencil_data
inanimdata_filter_dopesheet_ob
to draw layers. Key transform was crashing due to missing recalculation which
is also handled in this PR.
Part of #110056
hi @PratikPB2123 ,
thanks for the PR.
I think this integration should also come with the support of basic operators, at least to avoid crashes.
For example, right now, if I try to move a grease pencil keyframe in the main dopesheet, Blender crashes.
You can go through the TODO list I made for operations in the grease pencil dopesheet (#110056) to check if everything works properly. Again, I think it's okay if not everything is implemented, but we should avoid crashes.
@amelief hi, thanks for the review. Made few changes, now it's not crashing when transforming gpv3 layer keys.
I checked few other operations and they are already working correctly 🙂
Please extend this PR so that it adheres better to the guidelines. For changes like this, I would at least expect some screenshots of what these layers are supposed to look like in the dopesheet and in the timeline.
@dr.sybren hi, they look same as legacy GP layers. I've added screenshots in description 🙂
@PratikPB2123 I think in this case, a before/after image for GPv3 would have been better 😅
Something like:
GPv3 before
: nothing to show really. Before this PR, layers (and gpv3 keys) were not added in dopesheet/timeline so it's empty basically 😅Code looks good to me. Also tested this locally and seems to work well.
Thanks.
It would seem they're subtly different. The indentation isn't as it was, and also the colour is different. If it's supposed to be the same, there's some work to do.
@ -999,3 +999,3 @@
}
if (ac.datatype == ANIMCONT_GPENCIL) {
{
What's the reasoning behind this change? It's not immediately clear to me why it's ok to remove this condition.
To call
grease_pencil_layer_reset_trans_data
. Earlier it was only done for grease pencil dopesheet mode. After removing the check, fucntion will be called for normal dopesheet/timeline as well.On phone btw but I'm sure this is the reason.
Checkout
From your project repository, check out a new branch and test the changes.