Expand asset drag & drop support to more cases #82661

Open
opened 2020-11-12 16:25:44 +01:00 by Julian Eisel · 20 comments
Member

Users expect a number of use-cases for asset drag & drop to work. Dropping an asset means appending it currently, but what happens then varies.

The following drag & drop operations should be supported:

Asset Type Drop Action Notes
General UI
----
{icon square-o} Any Dropping onto data-block selector: Assign data-block if applicable
{icon square-o} Scene Change to dragged in scene
3D View
----
{icon check-square-o} Object Add Object in Object mode
{icon square-o} Object Add mesh (or strokes, curves, meta-ball element, ...) in edit mode (to the active object?). Append in edit mode not supported. Postponed for now.
{icon check-square-o} Object-data Adds object in object mode using appended object-data
{icon square-o} Object-data In edit mode: Same as dropping object in edit mode Append in edit mode not supported. Postponed for now.
Node Editor
----
{icon check-square-o} Node Group Create Node Group node
{icon check-square-o} Image Create Texture/Image node
Geometry Nodes
{icon check-square-o} Object Create Object Info node
{icon check-square-o} Collection Create Collection Info node
{icon check-square-o} Texture Create Attribute Sample Texture node
Compositor
{icon check-square-o} Masks Create Mask node
Outliner
----
{icon square-o} Any Assign to drop target (e.g. assign dragged material to object under cursor on drop)
Text Editor
----
{icon square-o} Text Change to dropped text
UV/Image Editor
----
{icon square-o} Image Change to dropped image
Dopesheet
----
{icon square-o} Action/Pose Change to dropped action (if the context mode allows it, e.g. in Action Editor mode)
NLA
----
{icon square-o} Action/Pose TBD
VSE
----
{icon square-o} Media Add strip for media type (image, video, sound)
Movie Clip Editor
----
{icon square-o} Video/Image/Clip Add clip for media type and change to it

Note that drag & drop support for assets also brings drag & drop support for local data-blocks. So for example by adding drag & drop support for node group assets, dragging a node group from the Outliner to a Node Editor is also added.

Users expect a number of use-cases for asset drag & drop to work. Dropping an asset means appending it currently, but what happens then varies. The following drag & drop operations should be supported: | | Asset Type | Drop Action | Notes | ---- | ----| ---- | ---- | ---- | General UI | | | | | ---- | | {icon square-o} | Any | Dropping onto data-block selector: Assign data-block if applicable | | {icon square-o} | Scene | Change to dragged in scene | | 3D View | | | | | ---- | | {icon check-square-o} | Object | Add Object in Object mode | | {icon square-o} | Object | Add mesh (or strokes, curves, meta-ball element, ...) in edit mode (to the active object?). | Append in edit mode not supported. Postponed for now. | {icon check-square-o} | Object-data | Adds object in object mode using appended object-data | | {icon square-o} | Object-data | In edit mode: Same as dropping object in edit mode | Append in edit mode not supported. Postponed for now. | Node Editor | | | | ---- | | {icon check-square-o} | Node Group | Create Node Group node | | {icon check-square-o} | Image | Create Texture/Image node | | Geometry Nodes | | | | | {icon check-square-o} | Object | Create Object Info node | | {icon check-square-o} | Collection | Create Collection Info node | | {icon check-square-o} | Texture | Create Attribute Sample Texture node | | Compositor | | | | | {icon check-square-o} | Masks | Create Mask node | | Outliner | | | | | ---- | | {icon square-o} | Any | Assign to drop target (e.g. assign dragged material to object under cursor on drop) | | Text Editor | | | | | ---- | | {icon square-o} | Text | Change to dropped text | | UV/Image Editor | | | | | ---- | | {icon square-o} | Image | Change to dropped image | | Dopesheet | | | | | ---- | | {icon square-o} | Action/Pose | Change to dropped action (if the context mode allows it, e.g. in Action Editor mode) | | NLA | | | | | ---- | | {icon square-o} | Action/Pose | TBD | | VSE | | | | | ---- | | {icon square-o} | Media | Add strip for media type (image, video, sound) | | Movie Clip Editor | | | | | ---- | | {icon square-o} | Video/Image/Clip | Add clip for media type and change to it | Note that drag & drop support for assets also brings drag & drop support for local data-blocks. So for example by adding drag & drop support for node group assets, dragging a node group from the Outliner to a Node Editor is also added.
Author
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel

#84315 was marked as duplicate of this issue

#84315 was marked as duplicate of this issue
Author
Member
Added subscribers: @Limarest, @Quantumplation-4, @HooglyBoogly

Added subscriber: @AdamEarle

Added subscriber: @AdamEarle

This issue was referenced by 604e61d81d

This issue was referenced by 604e61d81d6326e665de6ec81dca2619e2cd5dbc
Julian Eisel changed title from Support More Data-block Types to Expand asset drag & drop support to more cases 2021-04-08 17:21:41 +02:00
Author
Member

This is a task were I hope to get some help from contributors. Much of this work is simple and you can follow other cases.

Unfortunately each case will require some (sometimes more, sometimes less) slightly different logic. E.g. for the VSE to create strips and assign the dragged media to it. Or in the node editor to create a node group, ensure the tree is in a valid state, run the necessary updates, ... I wouldn't mind if people just send us half-finished patches in these cases, and we can look at the more complicated bits together then.

Also, if there are more places that should support asset drag & drop, please mention them here so we can cover as many places as possible.

This is a task were I hope to get some help from contributors. Much of this work is simple and you can follow other cases. Unfortunately each case will require some (sometimes more, sometimes less) slightly different logic. E.g. for the VSE to create strips and assign the dragged media to it. Or in the node editor to create a node group, ensure the tree is in a valid state, run the necessary updates, ... I wouldn't mind if people just send us half-finished patches in these cases, and we can look at the more complicated bits together then. Also, if there are more places that should support asset drag & drop, please mention them here so we can cover as many places as possible.

Added subscriber: @rjg

Added subscriber: @rjg
Member

Added subscriber: @FabianSchempp

Added subscriber: @FabianSchempp

Added subscriber: @blenderrocket

Added subscriber: @blenderrocket

Dragging world environments into the 3D view and world node editor should also be supported. And maybe also HDRI’s into the 3D view if they can be sufficiently differentiated from regular images.

Dragging world environments into the 3D view and world node editor should also be supported. And maybe also HDRI’s into the 3D view if they can be sufficiently differentiated from regular images.

Added subscriber: @MACHIN3

Added subscriber: @MACHIN3

Added subscriber: @Taumich

Added subscriber: @Taumich

Added subscriber: @tintwotin

Added subscriber: @tintwotin

This comment was removed by @tintwotin

*This comment was removed by @tintwotin*

Added subscriber: @1029910278

Added subscriber: @1029910278

As the geo nodes becoming more and more important, I recommend to support drag geo node tree into 3d view. Just like dropping world and material (They are both nodetree that support to drop on obj).
I think we can limited the drop obj in mesh type. And drop a geo node group will automatically create geo node modifier and assgin this node group to the modifier

As the geo nodes becoming more and more important, I recommend to support drag geo node tree into 3d view. Just like dropping world and material (They are both nodetree that support to drop on obj). I think we can limited the drop obj in mesh type. And drop a geo node group will automatically create geo node modifier and assgin this node group to the modifier

Removed subscriber: @tintwotin

Removed subscriber: @tintwotin

Added subscriber: @Junyi-Zhang

Added subscriber: @Junyi-Zhang

Added subscriber: @Hannah-Umit

Added subscriber: @Hannah-Umit
Member

I am removing the Needs Triage label. This is under the general rule that Design and TODO tasks should not have a status.

If you believe this task is no longer relevant, feel free to close it.

I am removing the `Needs Triage` label. This is under the general rule that Design and TODO tasks should not have a status. If you believe this task is no longer relevant, feel free to close it.
Alaska removed the
Status
Needs Triage
label 2024-04-07 05:58:07 +02:00
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
13 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#82661
No description provided.