Page MenuHome

Cryptomatte: Show Name of Object/Material Under The Cursor.
ClosedPublic

Authored by Jeroen Bakker (jbakker) on Mar 12 2021, 3:46 PM.

Details

Summary

This change shows the object or material name with the cursor when picking for a cryptomatte node.

Depends on D3959: Compositor: Redesign Cryptomatte node for better usability

Diff Detail

Repository
rB Blender
Branch
temp-compositor-cryptomatte-picker
Build Status
Buildable 13533
Build 13533: arc lint + arc unit

Event Timeline

Jeroen Bakker (jbakker) requested review of this revision.Mar 12 2021, 3:46 PM
Jeroen Bakker (jbakker) created this revision.
source/blender/editors/interface/interface_eyedropper_color.c
92

we should call eyedropper_draw_cursor_text here.

source/blender/editors/interface/interface_eyedropper_color.c
92

The issue is that for this we need access to the context what isn't accessible by the windowmanager draw callback.

Code cleanup use common function for drawing text near cursor.

source/blender/nodes/composite/nodes/node_composite_cryptomatte.cc
210

Revert this change

Happy to see this working! Just quickly scrolled over the code, didn't see anything troubling. Kinda annoying to have cryptomatte data in Eyedropper, but that's not new apparently and it's just a bit of local data, so don't mind much.

This revision is now accepted and ready to land.Mar 16 2021, 6:28 PM