AssetBrowser: Add IDProperties to Asset Indexer. #92306
Labels
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#92306
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
Object/collection asset workflow would need the bounding box for snapping.
The bounding box is stored inside an ID property. Currently ID properties aren't
stored in the asset index.
This task adds storing/reading ID properties as part of the asset index.
Approach
Custom Properties is a general data structure and the conversion between
blender::io::serialize::Value
should be accessible to other areas of blender as well.There are two places where this could be added (BLI_serialize.h or BKE_idprops.h) I prefer it to be a part of BKE_idprops; reasoning is that
BLI_serialize
will be kept abstract and to the point.NOTE: IDP_ID will not be supported. When passed these custom properties will be ignored. A warning will be logged.
blenkernel/intern/idprop_serialize.cc
containing the data transformation methods.blenkernel/intern/idprop_serialize_test.cc
for data transformation between custom properties andblender::io::serialize::Value
.blenkernel/BKE_idprops.h
.asset_indexer.cc
.Data Mapping
For data mapping we store the internal structure of IDProperty to the indexer (including meta-data) to be able to deserialize it back.
NOTE: IDP_ID and IDP_IDARRAY arent' supported. The entry will not be added.
Example
Alternatives
asset_indexer
; makes generic code part of a specific solution.BLI_serialize
; would add data transformation responsibilities inside a unit that is currently only responsible for formatting.Added subscriber: @Jeroen-Bakker
Added subscriber: @JulianEisel
Generally makes sense to me. I don't expect this to be that difficult, although I'm unsure about the UI data properties store, the design for that has changed recently.
I guess you mean
IDP_ID
here?Maybe call it
idprops_serialize.cc
? Just comment clearly that this doesn't include .blend file (de)serialization.I checked with Hans (who implemented the current UI data design of ID properties). There shouldn't be a need to store the UI data (min/max values, tooltip) in the index. This data will be attached to the property at runtime if it is registered in .py with these information bits. So I think we only need to write the name and value for each property?
That is my expectation also. We will see during implementation if it holds :-)
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @RedMser
This issue was referenced by
36068487d0
Changed status from 'Confirmed' to: 'Resolved'