Lookup for attribute search #85658

Closed
opened 2021-02-15 14:39:58 +01:00 by Dalai Felinto · 8 comments

Depends on #85656 and #85657.

Full design reference: #85280

The eye-candy can (should) be done as a separate pass.

Depends on #85656 and #85657. Full design reference: #85280 The eye-candy can (should) be done as a separate pass.
Author
Owner

Added subscriber: @dfelinto

Added subscriber: @dfelinto
Hans Goudey self-assigned this 2021-02-22 14:04:37 +01:00
Member

Okay, I've been fighting with the UI code for a while, time to write some things down.

There are two general approaches I've been trying:

The first is to build an RNA collection with the available attributes and store it in the socket or the node. This approach might simplify the UI code a bit.
However, generating the list of attributes requires the context (to fetch the proper NodeUIStorage from the context map), and as far as I can tell, RNA collection callbacks do not have a way to use the context.
So in order to use this method, we need to add a runtime pointer to the proper NodeUIStorage to every node socket. Then those data structures would be exposed to RNA.

The other approach, what I'm working on now, is more direct, and lower level, simply creating the search button directly in the C/C++ code. This avoids exposing anything to RNA, which probably lowers the total amount of changes considerably.
I've ran into some problems with this approach so far, but I'm working through them, so we'll see how it works.

Okay, I've been fighting with the UI code for a while, time to write some things down. There are two general approaches I've been trying: The first is to build an RNA collection with the available attributes and store it in the socket or the node. This approach might simplify the UI code a bit. However, generating the list of attributes requires the context (to fetch the proper `NodeUIStorage` from the context map), and as far as I can tell, RNA collection callbacks do not have a way to use the context. So in order to use this method, we need to add a runtime pointer to the proper `NodeUIStorage` to every node socket. Then those data structures would be exposed to RNA. The other approach, what I'm working on now, is more direct, and lower level, simply creating the search button directly in the C/C++ code. This avoids exposing anything to RNA, which probably lowers the total amount of changes considerably. I've ran into some problems with this approach so far, but I'm working through them, so we'll see how it works.
Member

I have some work in progress code in temp-geometry-nodes-attribute-search. 45f6c9bd05 explains some of the current issues.

I have some work in progress code in `temp-geometry-nodes-attribute-search`. 45f6c9bd05 explains some of the current issues.

This issue was referenced by 1a8aee0a7c

This issue was referenced by 1a8aee0a7cec0c2718932fdeece9dc071689f928

This issue was referenced by a344f20346

This issue was referenced by a344f203467940cbb8fe6dde001fba5c4517619d

This issue was referenced by 85421c4fab

This issue was referenced by 85421c4fab029ccb0747338715b95910e82229f9
Member

Here's a quick screenshot of the initial version, for reference:

{F9860913 size=full}

Here's a quick screenshot of the initial version, for reference: {[F9860913](https://archive.blender.org/developer/F9860913/image.png) size=full}
Author
Owner

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
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#85658
No description provided.