Customize keytype Color #37579

Closed
opened 2013-11-22 11:55:27 +01:00 by Jose Molina Garcia · 12 comments

HI,

I've made a little modification to enable the customization of the keyframes color, separatly in "keyframe", "extreme","jitter","breakdown" and also for customize the keyframe border color, normal and selected.

I uploaded few screenshots and an example file to show the change made.

color_keyframes_custom_colorkeys1.png

color_keyframes_custom_colorkeys2.png

color_keyframes_color_default.png

color_keyframes_custom_colorborder

color_keyframes.blend

patch_keyframes_color.txt

HI, I've made a little modification to enable the customization of the keyframes color, separatly in "keyframe", "extreme","jitter","breakdown" and also for customize the keyframe border color, normal and selected. I uploaded few screenshots and an example file to show the change made. ![color_keyframes_custom_colorkeys1.png](https://archive.blender.org/developer/F29947/color_keyframes_custom_colorkeys1.png) ![color_keyframes_custom_colorkeys2.png](https://archive.blender.org/developer/F29948/color_keyframes_custom_colorkeys2.png) ![color_keyframes_color_default.png](https://archive.blender.org/developer/F29949/color_keyframes_color_default.png) ![color_keyframes_custom_colorborder](https://archive.blender.org/developer/F29950/color_keyframes_custom_colorborder) [color_keyframes.blend](https://archive.blender.org/developer/F29953/color_keyframes.blend) [patch_keyframes_color.txt](https://archive.blender.org/developer/F29956/patch_keyframes_color.txt)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @JoseMolinaGarcia

Added subscriber: @JoseMolinaGarcia
Joshua Leung self-assigned this 2013-11-22 12:18:42 +01:00
Member

Assigning to self.

venomgfx had a similar patch a few years ago, but that overlooked a few things, so I didn't apply it at the time (and then got busy). Will try to check on this sometime soon :)

Assigning to self. venomgfx had a similar patch a few years ago, but that overlooked a few things, so I didn't apply it at the time (and then got busy). Will try to check on this sometime soon :)
Member

Ok, I've taken a look at the patch. IMO, there are a few things which need to be fixed before this can be applied.

Fixes Required:

  • It would be better if the selected and unselected colours for key types could be set independently instead of being automatically determined by a hardcoded metric. (See point 2)
  • Do not change the default colours in use already. This applies particularly for selected vs unselected ("normal") keyframes, and for the selected keyframe borders.

The RNA names for these settings aren't good ("KeyType" is too obscure jargon).

  • Change these to something like: "Keyframe" and "Breakdown Keyframe", etc.
  • Don't go changing the capitalisation of the names! Use the names as they are shown in the other menus

The same goes for the tooltips; drop the "KeyType" prefixes and adjust these to match the property names

Please submit a revised patch containing these fixes and/or a screenshot showing the default colours of keyframes after those changes.

Thanks for your efforts so far :)

Ok, I've taken a look at the patch. IMO, there are a few things which need to be fixed before this can be applied. **Fixes Required**: - It would be better if the **selected and unselected colours for key types could be set independently** instead of being automatically determined by a hardcoded metric. (See point 2) - **Do not change the default colours in use already**. This applies particularly for selected vs unselected ("normal") keyframes, and for the selected keyframe borders. # **The RNA names for these settings aren't good** ("KeyType" is too obscure jargon). - Change these to something like: "Keyframe" and "Breakdown Keyframe", etc. - Don't go changing the capitalisation of the names! Use the names as they are shown in the other menus # **The same goes for the tooltips**; drop the "KeyType" prefixes and adjust these to match the property names Please submit a revised patch containing these fixes and/or a screenshot showing the default colours of keyframes after those changes. Thanks for your efforts so far :)

Hi,

I've made the fixes required, I hope the text from points 3 and 4 be better now. I upload the patch, and 2 screenshots with the default colours.

Thanks to you for review it so fast

keyframe_colors_default_selected.png

keyframe_colors_default.png

patch_keyframes_colors_selected.txt

Hi, I've made the fixes required, I hope the text from points 3 and 4 be better now. I upload the patch, and 2 screenshots with the default colours. Thanks to you for review it so fast ![keyframe_colors_default_selected.png](https://archive.blender.org/developer/F31489/keyframe_colors_default_selected.png) ![keyframe_colors_default.png](https://archive.blender.org/developer/F31490/keyframe_colors_default.png) [patch_keyframes_colors_selected.txt](https://archive.blender.org/developer/F31488/patch_keyframes_colors_selected.txt)
Member

Ok, I've tested your patch. I've found 2 bugs which need to be fixed:

  1. The version patch for old theme files is wrong. The place you've put it will end up skipping userpref files saved with current trunk (2.69.3)

  2. You also need to specify the keyframe border colours for the NLA editor, where the keyframe drawing code is used for drawing the keyframe indicators in the "tweaking track"

Ok, I've tested your patch. I've found 2 bugs which need to be fixed: 1) The version patch for old theme files is wrong. The place you've put it will end up skipping userpref files saved with current trunk (2.69.3) 2) You also need to specify the keyframe border colours for the NLA editor, where the keyframe drawing code is used for drawing the keyframe indicators in the "tweaking track"

Hi,

One small question, in the NLA editor the keys never will be printed as selected, isn't it?

It's to include the border color selected or not. I think it's not necessary

Hi, One small question, in the NLA editor the keys never will be printed as selected, isn't it? It's to include the border color selected or not. I think it's not necessary
Member

Hi,

I just got back from vacation in Hong Kong :)

In the NLA Editor, only the plain border colour will be used/needed. Selection status and fill colours are not drawn.

Hi, I just got back from vacation in Hong Kong :) In the NLA Editor, only the plain border colour will be used/needed. Selection status and fill colours are not drawn.
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

Hi,

I've gone ahead and committed your patch to Git, along with a followup patch for a few more issues I hadn't noticed before.

Congratulations and thanks for your hard work :)

Hi, I've gone ahead and committed your patch to Git, along with a followup patch for a few more issues I hadn't noticed before. Congratulations and thanks for your hard work :)

Added subscriber: @ErickNyanduKabongo

Added subscriber: @ErickNyanduKabongo

Thanks for this commit :)

Thanks for this commit :)
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
3 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#37579
No description provided.