WIP: UI: Display axis indicator in number sliders #127264
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
10 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#127264
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "pablovazquez/blender:ui-widget-axes"
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?
On number sliders that refer to axes (X,Y,Z), show a small rectangle indicator with the color of each axis.
The goal is to tell apart at a glance the subtype of a number slider.
Supported subtypes are:
PROP_XYZ, PROP_XYZ_LENGTH, PROP_TRANSLATION, PROP_EULER, PROP_AXISANGLE
.To prevent making Blender look like a christmas tree, draw the indicators at 25% opacity and fully opaque on hover or when editing the field.
Examples
Custom Properties
Transform
Nodes
Modifiers
Instancing
Themes
Widget States
This looks like an issue with rounding/truncating to integers.
The buttons don't seem to be the exact same height and, when calculating the axis width based on the height, the cutoff for when the strip becomes narrower/wider might be at slightly different zoom levels:
Calculating the axis width the following way is more consistent in my tests:
The one case where this behaves differently from your patch is, that the colored strip will always be the same width, even when the layout is scaled (not zoomed) like in this screenshot, where I scaled the bottom widget by
2.0
:In your case the axis strip would be twice as wide in the bottom widget, similarly to how the handles also become wider.
But maybe having the strip's width be consistent like this is fine, because the size of the rounded corner also stays the same.
How is the label of XYZ not sufficient?
I feel that colorizing these fields is going to cause a visual distraction, given that currently color in a field is associated with keyed values.
So your eye will now glance, see color, and then have to process "ok, that's the XYZ label".
I agree It doesn't look appealing imho. too many different colors in small spaces.
I'd say Cons much more than Pros.
As said in my right click topic, in many case we don't really know what the row do, and look in other software this things is always present is really a good things ! But @pablovazquez maybe add an option in interface setting to disable it if the people don't want it !
But i'm resting on my idea is a really good thing and good idea is more explicit when you try to find the good row for inputing the value !
--> https://blender.community/c/rightclickselect/qV0G/
Let me correct you, all row in blender are grey the background color aren't colored by the value like "Is an int backgound is green", "Is an float backgound is grey".... No all field and row are grey. I don't know where you see what you talking but no isn't the case.... And yes the color specify the axis ! Like the text indicate the axis ! But is more visual ! And more explicit !
@pablovazquez I compilled the branch by myself in my computer and the gadget don't showing in some nodes like in vector math or Separate XYZ & Combine XYZ
@blender-bot package
Only blender organization members with write access can start builds. See documentation for details.
I am not understanding what you mean when you say "in many case we don't really know what the row do".
You don't understand it when it says x, but you do understand it when it has a red chip (which is the "color" of x) next to it? This does not make sense, assuming one can read... (Which obviously, you can).
It's like... the RGB color picker doesn't need color chips next to each label, to tell us which one is which. We read the field label.
Can you show examples of when the property is animated or a driver
a suggestion, For this to be less visual noisy for some user, this can this be activated when the cursor hover on an Area so the Workspace seems more clean,maybe.
@blender-bot package
Package build started. Download here when ready.
Because it is drawing the indicators using transparency (25%) it should work okay with any colors underneath. It draws them 100% opaque on hover.
@blender-bot package
Package build started. Download here when ready.
The axis Indicators do not appear in node groups.
@blender-bot package
Package build started. Download here when ready.
Thanks! I've noticed it too also in certain nodes. This is something that needs to be fixed in the nodes themselves, as it seems they are missing the subtype.
Checkout
From your project repository, check out a new branch and test the changes.