selecting a grease pencil layer in dopesheet and timeline does NOT register anywhere #104601
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#104601
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
When you select a grease pencil layer in the Object Data Properties, blender registers this in the Info tab and also possible to register a bpy.msgbus.subscribe_rna callback to the active layer.
But when selecting a layer in dopesheet, even though it also changes the active layer in Object Data Properties, blender doesnt register this at all.
Would be nice if this is added as its kind of missing.
In actual animation work you would select the layer 98% of times through the dopesheet and not Object Data Properties.
Writing an addon which does something on layer activation is now only possible with polling or bpy.app.handlers.depsgraph_update_post.append
Which blender version are you using?
Has this ever worked before?
Could you attach a simple .blend example (including some py code) that shows the difference? (this should help speed up the process when multiple devs are looking at this issue)
this is the default 2d animation file, just look at the info panel and switch layers in dopesheet and in object data properties. in properties it registers in dopesheet it doesnt.
This affects msgbus too, the signal isnt send
Hi, channel selection in anim-editors and layer selection in UI list are both handled differently.
For animation editor:
For operators, report is generated after execution only if
OPTYPE_REGISTER
flag is set, see:https://projects.blender.org/blender/blender/src/branch/main/source/blender/windowmanager/intern/wm_event_system.cc#L1081
Clicking on channel invokes
ANIM_OT_channels_click
operator andregister
flag is not set purposefully for this operator (to not expose redo panel?).In case of Object Data Properties tab:
These Layers are button list, clicking/selecting them calls rna function
rna_GPencil_active_layer_index_set
to update the property.For these UI, report is generated in
ui_apply_but_autokey
Not sure which exact function does the syncing of animchannels with UI.
AFAICS this is working as expected. The issue reported here is a request for modified/improved behavior and not a bug in current behavior. Closing as this bug tracker is only for bugs and errors.
For user requests and feedback, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests
For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug
Closing this report. Feel free to comment if there is misunderstanding.