UI: Allow Eyedropper Outside of Blender #105324
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#105324
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Harley/blender:Eyedropper"
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?
This adds a new Ghost function, GHOST_GetPixelAtCursor, that allows
picking colors from outside of Blender windows. This only has an
implementation for the Windows platform, but this should allow other
platforms to also do so if possible.
Seems to work as advertised. Gets the same colors as Gimp does. It doesn't show the eyedropper mouse cursor outside of our windows, but that does not seem (normally) possible. Other apps that pick outside of their borders also show the regular pointer cursor while doing so.
I started this in response to a shout-out from @pablovazquez on this week's Blender Today episode. He mentioned that it might be nice for me to get this working on Windows.
Looks like mouse capture only works when a mouse button is held down. This why I can set "no drop" cursor for area join when outside the window, but can't show "eyedropper" cursor here.
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setcapture
1f566948bc
to6df371e560
@blender-bot package windows
Package build started. Download here when ready.
WIP: UI: Allow Eyedropper Outside of Blender (W32)to UI: Allow Eyedropper Outside of Blender (W32)a32f5fed22
toe8831987b7
UI: Allow Eyedropper Outside of Blender (W32)to UI: Allow Eyedropper Outside of Blender@blender-bot build
UI: Allow Eyedropper Outside of Blenderto WIP: UI: Allow Eyedropper Outside of BlenderSet to WIP. Will check this weekend to see if the access to this should instead be a wrapper in WM_api
e8831987b7
tod6fe8c8c68
Now using a WM_desktop_cursor_sample_read wrapper around the ghost function.
WIP: UI: Allow Eyedropper Outside of Blenderto UI: Allow Eyedropper Outside of Blenderd6fe8c8c68
to824ece3f16
824ece3f16
to9b2ad2761f
9b2ad2761f
to009748a2e5
009748a2e5
to5f892ba7fe
5f892ba7fe
to8461434275
Any news on this? Thx...
It's on my wish list for 4.0. It is just in the review queue, but should be a fairly straight-forward one.
8461434275
toa4edce178b
@ -766,1 +766,4 @@
/**
* Get the color of the pixel at the current mouse cursor location
* \param r_color: returned RGB float colors
Can you change RGB -> sRGB to clarify the color space. Here and a few other places that repeat the same comment.
@ -371,0 +366,4 @@
const char *display_device = CTX_data_scene(C)->display_settings.display_device;
ColorManagedDisplay *display = IMB_colormanagement_display_get_named(display_device);
IMB_colormanagement_display_to_scene_linear_v3(r_col, display);
Use
IMB_colormanagement_srgb_to_scene_linear_v3
instead if the color came from another window.When doing color picker of for a 3D viewport or render that Blender displays then taking into account the view transform makes sense. But from another window, it seems wrong to me.
@blender-bot build
Since Blender gets immediately unfocused after using the eyedropper outside of the window, you cannot use it to grab an average color or a gradient for a Color Ramp. Substance Designer lets you pick a gradient with images outside of the window without unfocusing it, so i know it's something possible to do.