Brush Asset - Technical Design - Draft #101942
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#101942
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
This task is to design and keep track of how the new Draft system will be implemented as part of the new Brush Asset system.
Draft is a special, per-user .blend file, which can be edited by Blender while other (regular) blend files are opened, It acts as some sort of powerful non-volatile copy/paste buffer, and is based on the Asset library system.
Draft Basics
Some key characteristics:
Blender needs to be able to:
draft.blend.lock
empty file alongside thedraft.blend
one? -- #103935 (Add File Locking Support to BLI_fileops), we probably can just have a write-to-temp + atomic-file-move process for now (what is already done for 'normal' .blend files).Some open questions:
inotify
on linux,fsevents
on OSX, etc.)? Needs to be its own design task.Brush Handling in Draft
The handling of brushes in Draft is not directly exposed to the user, they only interact with the Draft through a limited set of higher level operations.
Draft has two main purposes:
Save & Save As
Save and Save As store a liboverride of the original brush asset in the draft. That way, non-edited settings still get updated in case the original asset data is updated.
In that case, dependency IDs (textures etc.) are not stored in the Draft, they are still linked from the asset repository. unless they were made local already in the working .blend file. Paths to linked IDs are relative to the Draft .blend file.
Save will update an existing override in the draft, if any. Save As always create a new override with a new name (or replace an existing one in case of name collision).
Meta data of the new draft asset are copied from the original linked asset.
Duplicate
Duplicate stores a fully independent copy of the original brush asset and its dependencies into the Draft. Do we also need 'Duplicate As'? Or is Duplicate always 'as' since we never overwrite and existing ID in Draft in that case?
Handling of dependencies ID is similar to
append or reuse
(i.e. if a copy of the original linked ID is already found in the Draft, it is reused).Using Draft Asset
Using a Draft Brush happens exactly as any other brush asset.
Importing From - AKA Publishing
To 'publish' a draft asset, user 'append or reuse' it into their asset library file. They can then edit it as any regular asset.
Draft Beyond Brushes
While this is not a target for the Brush Asset project, Draft usage could be generalized to any type of data that can become an asset, and be used as an advanced copy/stage/paste buffer.
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscribers: @mont29, @lichtwerk, @AlexeyAdamitsky, @AndyCuccaro, @JulienKaspar, @JulianEisel, @dfelinto
Added subscriber: @GeorgiaPacific
Bastien Montagne referenced this issue2023-09-08 14:39:51 +02:00
#116338