Fix #101058: Allow Cryptomatte Picking Between Windows #113636

Merged
Harley Acheson merged 6 commits from Harley/blender:CryptoWin into main 2023-10-14 20:28:08 +02:00
Member

Allow the source and target windows to differ when selecting
objects using Cryptomatte.


CryptoMatte.gif

Allow the source and target windows to differ when selecting objects using Cryptomatte. --- ![CryptoMatte.gif](/attachments/0eb9747c-5790-4845-8083-523cb980fd38)
Harley Acheson added 1 commit 2023-10-13 02:44:18 +02:00
bf24467e10 Fix #101058: Allow Cryptomatte Picking Between Windows
Allow the source and target windows to differ when selecting
objects using Cryptomatte. But this does not show the name.
Harley Acheson added this to the User Interface project 2023-10-13 02:44:47 +02:00
Harley Acheson requested review from Germano Cavalcante 2023-10-13 02:53:30 +02:00

The code is simple and straightforward, it seems easy to implement.

But I believe that more clarification is needed as to why the name cannot be displayed in other windows.

It was mentioned that we can reassign the callback to the other window. But it's not clear why this doesn't work. And the real reason why it's not worth implementing it either. (Code gets too complex and hard to maintain?).

The code is simple and straightforward, it seems easy to implement. But I believe that more clarification is needed as to why the name cannot be displayed in other windows. It was mentioned that we can reassign the callback to the other window. But it's not clear why this doesn't work. And the real reason why it's not worth implementing it either. (Code gets too complex and hard to maintain?).
Author
Member

It was mentioned that we can reassign the callback to the other window. But it's not clear why this doesn't work. And the real reason why it's not worth implementing it either. (Code gets too complex and hard to maintain?).

I don't mind setting this to "WIP" and tackling that too when I get a chance. I'm fairly certain that existing code will allow that name display on the other window as I have done multi-window callbacks with #104665 okay. But in this case I gave that part of it an hour or so and could only get some "?????" showing in the wrong location. It looked like it was turning into a time sink and my next four weeks are pretty blown.

So I could set this WIP and get to it when I can or I could just add some "TODO" comments with explanation on why it is not showing the label and how to approach making that work. What do you think?

> It was mentioned that we can reassign the callback to the other window. But it's not clear why this doesn't work. And the real reason why it's not worth implementing it either. (Code gets too complex and hard to maintain?). I don't mind setting this to "WIP" and tackling that too when I get a chance. I'm fairly certain that existing code will allow that name display on the other window as I have done multi-window callbacks with #104665 okay. But in this case I gave that part of it an hour or so and could only get some "?????" showing in the wrong location. It looked like it was turning into a time sink and my next four weeks are pretty blown. So I could set this WIP and get to it when I can or I could just add some "TODO" comments with explanation on why it is not showing the label and how to approach making that work. What do you think?

It may be worth checking whether other drawing callback APIs (such as region or cursor APIs) can be used instead of Windows.

It may be worth checking whether other drawing callback APIs (such as region or cursor APIs) can be used instead of Windows.
Author
Member

It may be worth checking whether other drawing callback APIs (such as region or cursor APIs) can be used instead of Windows.

Thanks for the tips! I'll set this to WIP for now, at least through the weekend, and investigate a bit further.

> It may be worth checking whether other drawing callback APIs (such as region or cursor APIs) can be used instead of Windows. Thanks for the tips! I'll set this to WIP for now, at least through the weekend, and investigate a bit further.
Harley Acheson changed title from Fix #101058: Allow Cryptomatte Picking Between Windows to WIP: Fix #101058: Allow Cryptomatte Picking Between Windows 2023-10-13 18:08:55 +02:00
Germano Cavalcante approved these changes 2023-10-13 20:56:08 +02:00
Germano Cavalcante left a comment
Member

On second thought, with or without the text, it's still better than the lack of support for multiple windows.

Drawing can be implemented later.

(It would just be nice to avoid taking too long, as this feature seems incomplete without it).

On second thought, with or without the text, it's still better than the lack of support for multiple windows. Drawing can be implemented later. (It would just be nice to avoid taking too long, as this feature seems incomplete without it).
Harley Acheson added 2 commits 2023-10-13 21:47:29 +02:00
Harley Acheson added 2 commits 2023-10-14 19:30:11 +02:00
Harley Acheson changed title from WIP: Fix #101058: Allow Cryptomatte Picking Between Windows to Fix #101058: Allow Cryptomatte Picking Between Windows 2023-10-14 19:36:03 +02:00
Author
Member

@mano-wii

Got it working with the object names!

@mano-wii Got it working with the object names!
Author
Member

@blender-bot build

@blender-bot build
Harley Acheson added 1 commit 2023-10-14 20:26:12 +02:00
Harley Acheson merged commit 9ee5de05c0 into main 2023-10-14 20:28:08 +02:00
Harley Acheson deleted branch CryptoWin 2023-10-14 20:28:10 +02:00
Sign in to join this conversation.
No reviewers
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
2 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#113636
No description provided.