Allow disabling Group Colors in animation editors via preference #82134

Closed
opened 2020-10-27 11:37:23 +01:00 by Sybren A. Stüvel · 17 comments

The bone group colors in the animation channel list are often distracting:

image.png

These colors can be turned off, but that has to be done per editor (and are on by default).

This task: Move that option to turn off group colors to User Preferences. That way the colors can be enabled/disabled globally, and this needs to be done only once.

This is intended to be a stop-gap measure until #81744 (Improve usability of Group Colors in animation editors) provides a better solution. At that time the user preference will likely stay, but Blender working better will hopefully entice people to enable the group colours again.

Proposed approach

  • Add a new field short animation_flag to struct UserDef
  • Add a new enum eUserpref_Anim_Flags to hold animation-related flags, with one flag USER_ANIM_SHOW_CHANNEL_GROUP_COLORS.
  • Add versioning code (does that exist?) for the new field, to have the default value set to USER_ANIM_SHOW_CHANNEL_GROUP_COLORS. This mimicks Blender's current behaviour in tha t it shows the group colors.
  • Add RNA field use_anim_channel_group_colors that exposes the flag.
  • Remove the eGraphEdit_Flag::SIPO_NODRAWGCOLORS enum value, which is used by flags in both the dope sheet and graph editor.
  • Remove the show_group_colors properties from the SpaceDopeSheetEditor and SpaceGraphEditor RNA definitions, and their corresponding menu items.

The downside to this approach would be that people who have disabled group colors in their files, will now actually see group colors again, and the place where they know it can be turned off will have been removed.

The bone group colors in the animation channel list are often distracting: ![image.png](https://archive.blender.org/developer/F9109700/image.png) These colors can be turned off, but that has to be done per editor (and are on by default). This task: Move that option to turn off group colors to User Preferences. That way the colors can be enabled/disabled globally, and this needs to be done only once. This is intended to be a stop-gap measure until #81744 (Improve usability of Group Colors in animation editors) provides a better solution. At that time the user preference will likely stay, but Blender working better will hopefully entice people to enable the group colours again. **Proposed approach** - Add a new field `short animation_flag` to `struct UserDef` - Add a new `enum eUserpref_Anim_Flags` to hold animation-related flags, with one flag `USER_ANIM_SHOW_CHANNEL_GROUP_COLORS`. - Add versioning code (does that exist?) for the new field, to have the default value set to `USER_ANIM_SHOW_CHANNEL_GROUP_COLORS`. This mimicks Blender's current behaviour in tha t it shows the group colors. - Add RNA field `use_anim_channel_group_colors` that exposes the flag. - Remove the `eGraphEdit_Flag::SIPO_NODRAWGCOLORS` enum value, which is used by flags in both the dope sheet and graph editor. - Remove the `show_group_colors` properties from the `SpaceDopeSheetEditor` and `SpaceGraphEditor` RNA definitions, and their corresponding menu items. The downside to this approach would be that people who have disabled group colors in their files, will now actually see group colors again, and the place where they know it can be turned off will have been removed.
Author
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Author
Member

Added subscribers: @dr.sybren, @LucianoMunoz

Added subscribers: @dr.sybren, @LucianoMunoz
Sybren A. Stüvel self-assigned this 2020-10-29 14:25:49 +01:00
Author
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Author
Member

Added subscriber: @antoniov

Added subscriber: @antoniov
Author
Member

The eGraphEdit_Flag::SIPO_NODRAWGCOLORS flag is also used by Grease Pencil mode of the dopesheet, so I wouldn't mind some feedback on this from the #grease_pencil module.

@antoniov What do you think of this proposal? Are channel group colors even a thing in the Grease Pencil world?

The `eGraphEdit_Flag::SIPO_NODRAWGCOLORS` flag is also used by Grease Pencil mode of the dopesheet, so I wouldn't mind some feedback on this from the #grease_pencil module. @antoniov What do you think of this proposal? Are channel group colors even a thing in the Grease Pencil world?

This issue was referenced by ad85256e71

This issue was referenced by ad85256e71081016fe7b4009f8a0c0cd7e18dafe

Added subscriber: @pepe-school-land

Added subscriber: @pepe-school-land

I don't see problems to disable color from Dopesheet, but I think @pepe-school-land has used more the Dopesheet and I would like to hear his opinion.

Anyway, this option can be disabled, so you can get the colors again.... an option could be add 2 Userprefs modes Dopesheet & Dopesheet Gpencil, but it could be too much ;-)

Another option could be to add a hotkey for this to allow a fast change.

I don't see problems to disable color from Dopesheet, but I think @pepe-school-land has used more the Dopesheet and I would like to hear his opinion. Anyway, this option can be disabled, so you can get the colors again.... an option could be add 2 Userprefs modes `Dopesheet` & `Dopesheet Gpencil`, but it could be too much ;-) Another option could be to add a hotkey for this to allow a fast change.

They dont exists since they're created based on the Bone Group Colors, so they live only in the armatures.

They dont exists since they're created based on the Bone Group Colors, so they live only in the armatures.
Author
Member

In #82134#1044873, @LucianoMunoz wrote:
They dont exists since they're created based on the Bone Group Colors, so they live only in the armatures.

You're right in the sense that this is one way that these colors can be set, and that this is likely to be the only way they're used by character animators. However, since they can be adjusted by Python code as well, they could have much wider use. Who knows what kind of add-ons out there actually use these?

> In #82134#1044873, @LucianoMunoz wrote: > They dont exists since they're created based on the Bone Group Colors, so they live only in the armatures. You're right in the sense that this is one way that these colors can be set, and that this is likely to be the only way they're used by character animators. However, since they can be adjusted by Python code as well, they could have much wider use. Who knows what kind of add-ons out there actually use these?
Author
Member

In #82134#1044840, @antoniov wrote:
I don't see problems to disable color from Dopesheet, but I think @pepe-school-land has used more the Dopesheet and I would like to hear his opinion.

Me too :)

Anyway, this option can be disabled, so you can get the colors again....

The old option had some negations going on, with the UI showing it as "Show Group Colors", but it was stored as a "Hide Group Colors" flag, and then in the code inverted again to see if these colors had to be drawn. The new user preference is actually implemented in a positive way, so when enabled you see colors.

an option could be add 2 Userprefs modes Dopesheet & Dopesheet Gpencil, but it could be too much ;-)

We could do that when we actually have proof this would be in high demand ;-)

Another option could be to add a hotkey for this to allow a fast change.

Is there any precedent for this? As in, is there any other user preference that's bound to a hotkey?

> In #82134#1044840, @antoniov wrote: > I don't see problems to disable color from Dopesheet, but I think @pepe-school-land has used more the Dopesheet and I would like to hear his opinion. Me too :) > Anyway, this option can be disabled, so you can get the colors again.... The old option had some negations going on, with the UI showing it as "Show Group Colors", but it was stored as a "Hide Group Colors" flag, and then in the code inverted again to see if these colors had to be drawn. The new user preference is actually implemented in a positive way, so when enabled you see colors. > an option could be add 2 Userprefs modes `Dopesheet` & `Dopesheet Gpencil`, but it could be too much ;-) We could do that when we actually have proof this would be in high demand ;-) > Another option could be to add a hotkey for this to allow a fast change. Is there any precedent for this? As in, is there any other user preference that's bound to a hotkey?

@dr.sybren I have a doubt... if you disable the channel color in Userprefs, I guess we must disable also the color option in the side panel. If we don't, the user can see this as bug if he changes the color and nothing changes,

image.png

@dr.sybren I have a doubt... if you disable the channel color in `Userprefs`, I guess we must disable also the color option in the side panel. If we don't, the user can see this as bug if he changes the color and nothing changes, ![image.png](https://archive.blender.org/developer/F9133850/image.png)

It would make sense I guess.

It would make sense I guess.
Author
Member

@antoniov Good point. How does this look? I've updated D9391 for this.

image.png

@antoniov Good point. How does this look? I've updated [D9391](https://archive.blender.org/developer/D9391) for this. ![image.png](https://archive.blender.org/developer/F9169588/image.png)

@dr.sybren For me it's perfect. Really good idea add the warning in the panel.

@dr.sybren For me it's perfect. Really good idea add the warning in the panel.
Author
Member

@antoniov if it's perfect, could you accept D9391 for me?

@antoniov if it's perfect, could you accept [D9391](https://archive.blender.org/developer/D9391) for me?
Author
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Thomas Dinges added this to the 2.92 milestone 2023-02-08 16:15:43 +01:00
Sign in to join this conversation.
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
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#82134
No description provided.