Compositor: Refactor Add menu #111282

Merged
Pablo Vazquez merged 4 commits from pablovazquez/blender:compositor-menu-restructure into main 2023-08-24 13:46:19 +02:00
Member

Refactor the Add menu in the Compositor, with manually created menus,
inspired by Geometry Nodes.

Minor sorting adjustments by splitting categories in groups, with
separators in between groups, and sorted alphabetically. Compositor
node group assets are also populated in the menus.

This is the first part of the re-organization of the Add menu project,
proposal coming in another patch after this.


Before After
Screenshot from 2023-08-18 17-38-24 Screenshot from 2023-08-18 22-14-24
Refactor the Add menu in the Compositor, with manually created menus, inspired by Geometry Nodes. Minor sorting adjustments by splitting categories in groups, with separators in between groups, and sorted alphabetically. Compositor node group assets are also populated in the menus. This is the first part of the re-organization of the Add menu project, proposal coming in another patch after this. --- |Before|After| |---|---| |![Screenshot from 2023-08-18 17-38-24](/attachments/b4bde2c5-edd4-4710-9107-20cecd6716d7)|![Screenshot from 2023-08-18 22-14-24](/attachments/acad17ec-78a8-4081-88e7-f8ed69f5ddf4)|
Pablo Vazquez added 1 commit 2023-08-18 22:18:15 +02:00
c56c8730e6 Compositor: Re-organize menus
Following a layout closer to Geometry Nodes.

Split in groups (with separators in between), sorted alphabetically.
Evan Wilson reviewed 2023-08-19 02:23:29 +02:00
@ -0,0 +27,4 @@
node_add_menu.add_node_type(layout, "CompositorNodeSceneTime")
node_add_menu.add_node_type(layout, "CompositorNodeTexture")
node_add_menu.add_node_type(layout, "CompositorNodeTime")
node_add_menu.add_node_type(layout, "CompositorNodeTime")
Member

‘CompositorNodeSceneTime’ and ‘CompositorNodeTime’ are both listed twice.

‘CompositorNodeSceneTime’ and ‘CompositorNodeTime’ are both listed twice.
pablovazquez marked this conversation as resolved
Member

Nice! I don't have strong opinions about the organization. Though maybe it would make sense to use sub-menus, in other words a deeper hierarchy level? Possibly focusing on the add menu's goal of discoverability rather than quick access to specific nodes.

Also wanted to mention that this will mean node group assets should show in the compositor add menu just like geometry nodes. Thanks for that!

Nice! I don't have strong opinions about the organization. Though maybe it would make sense to use sub-menus, in other words a deeper hierarchy level? Possibly focusing on the add menu's goal of discoverability rather than quick access to specific nodes. Also wanted to mention that this will mean node group assets should show in the compositor add menu just like geometry nodes. Thanks for that!
Pablo Vazquez added 1 commit 2023-08-21 13:02:32 +02:00
Pablo Vazquez added 2 commits 2023-08-24 11:46:58 +02:00
Pablo Vazquez changed title from WIP: Compositor: Re-organize menus to Compositor: Re-organize menus 2023-08-24 11:48:36 +02:00
Pablo Vazquez changed title from Compositor: Re-organize menus to Compositor: Refactor Add menu 2023-08-24 11:50:51 +02:00
Pablo Vazquez requested review from Hans Goudey 2023-08-24 11:53:39 +02:00
Pablo Vazquez added this to the User Interface project 2023-08-24 11:54:04 +02:00
Hans Goudey approved these changes 2023-08-24 13:33:20 +02:00
Hans Goudey left a comment
Member

Looks pretty straightforward! I tested the assets to make sure that works, and also wrapped the lines in the PR description, fixed two typos, and mentioned the asset thing :)

Looks pretty straightforward! I tested the assets to make sure that works, and also wrapped the lines in the PR description, fixed two typos, and mentioned the asset thing :)
Pablo Vazquez merged commit 577c0b4b46 into main 2023-08-24 13:46:19 +02:00
Pablo Vazquez deleted branch compositor-menu-restructure 2023-08-24 13:46:21 +02:00
Sign in to join this conversation.
No reviewers
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#111282
No description provided.