UI: Add initial UI support for ID pointers custom properties #110458
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
8 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#110458
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "mont29/blender:ui-for-datablock-customprops"
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?
Customprops to IDs are supported since years through code, but were
never exposed directly in the UI of customporperties.
This commit mainly:
DATABLOCK
type to UI customprops types.id_type
settings to python API.@JulianEisel will need your help to finalize and polish this I think.
The "list all IDs from main" idea could work well for selecting a custom property ID in the drivers editor as well, since it currently requires type selection first:
But it would probably need better UX, like optionally grouping/filtering the IDs by type.
Nice! This should probably use the
IDPropertyUIDataID::id_type
value to allow limiting the choice to a specific type. Also I think that type should probably be editable with the custom property edit operator.Some points:
4bacf23c3b
to5acad9adce
5acad9adce
to34bd74e51d
Updated the diff, removed the 'all ID types' changes/possibility for now (this would require quite some UI work in the ID template), added handling of the ID property
id_type
uidata.@blender-bot build
WIP: UI: Add initial UI support for ID pointers custom properties.to UI: Add initial UI support for ID pointers custom properties.UI: Add initial UI support for ID pointers custom properties.to UI: Add initial UI support for ID pointers custom propertiesDon't have much to say about this, the little UI code that's here looks fine.
I would expect this to use a simple ID "search" instead of a template (without allowing for Fake User or Duplicate/Make Unique). Similar to how we refer to points elsewhere such as the UV Projection modifier, the set Material nodes, the objects we set in constraints, ...
Basically I don't think we have the option anywhere else in Blender to make a new datablock outside the context where the new data-block can be edited. And I don't see a strong reason to break that rule for the custom properties.
I think ID search is normally used for cases where the user count is not increased, like objects which exist only by being in the scene. For the general case I think showing the user count and fake user buttons is important.
I don't think we need a button to create a new datablock here though.
@brecht The only way to create new IDs here is by the implicit behavior of the user count button, which creates a single-user copy of the selected ID when clicked... AFAIK there is no way to prevent this behavior?
From @dfelinto's reply I got the impression it was possible to create a completely new datablock, but creating a single user copy seems fine to me.
In general this patch looks good, only two points.
DATA_BLOCK
overDATABLOCK
for the enum.I don't think another review iteration is needed, accepting.
34bd74e51d
toe4ce221172
@blender-bot build
e4ce221172
tof15e1c2a3a
@blender-bot build
f15e1c2a3a
to9c435ad8fc
9c435ad8fc
to2174000df8