Swap Node Operator #111438

Open
opened 2023-08-23 16:22:46 +02:00 by Hans Goudey · 1 comment
Member

This operator should replace a node with another, reconnecting links and copying default values to the new node.

The operator would be invoked with the context menu or a shortcut, which creates a search menu where the new node can be chosen.

Question: How is the list filtered? Filtering by nodes that have at least one compatible socket is one place to start.

A potential improvement beyond the MVP is to have a list of "alternative nodes" for each node type. These would show up at the top of the search list.

Related:

This operator should replace a node with another, reconnecting links and copying default values to the new node. The operator would be invoked with the context menu or a shortcut, which creates a search menu where the new node can be chosen. Question: How is the list filtered? Filtering by nodes that have at least one compatible socket is one place to start. A potential improvement beyond the MVP is to have a list of "alternative nodes" for each node type. These would show up at the top of the search list. Related: - #109965 - !110828
Hans Goudey added the
Type
Design
label 2023-08-23 16:22:46 +02:00
Hans Goudey added this to the Nodes & Physics project 2023-08-23 16:22:48 +02:00
Member

Question: How is the list filtered? Filtering by nodes that have at least one compatible socket is one place to start.

I don't think the list should be filtered. NodeWrangler shows the entire list and it is handy sometimes. Although having relevant items sorted first would be great (NodeWrangler simply shows the entire Add menu again).

How about sorting first the items that share the same parent menu/catalog? So switching a node that lives inside the Input menu will show first other Input nodes. If it's inside the Constant menu, the list should first show other items in Constant, then Input, then the rest.

Would it be better to name it Swap Node instead of Switch Node? To avoid confusion with other switch-related nodes. No strong opiniong here just wondering if in English it'd be better.

> Question: How is the list filtered? Filtering by nodes that have at least one compatible socket is one place to start. I don't think the list should be filtered. NodeWrangler shows the entire list and it is handy sometimes. Although having relevant items sorted first would be great (NodeWrangler simply shows the entire Add menu again). How about sorting first the items that share the same parent menu/catalog? So switching a node that lives inside the **Input** menu will show first other **Input** nodes. If it's inside the **Constant** menu, the list should first show other items in **Constant**, then **Input**, then the rest. Would it be better to name it `Swap Node` instead of `Switch Node`? To avoid confusion with other switch-related nodes. No strong opiniong here just wondering if in English it'd be better.
Hans Goudey changed title from Switch Node Operator to Swap Node Operator 2023-08-24 19:07:15 +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 Assignees
2 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#111438
No description provided.