Node group operators #101778

Open
opened 2022-10-12 20:26:04 +02:00 by Hans Goudey · 1 comments

Background

With node group assets becoming more prevalent and geometry nodes becoming essential
for manipulating geometry in Blender, we want to add the ability to implement operators
with geometry node groups.

Relevant node groups would need a geometry input and output, and could have other inputs (and possibly outputs), with similar mappings as the geometry nodes modifier.

Additionally, specific inputs could be marked as editable modally, for example, a "Factor" input could be controlled by moving the mouse cursor left or right.

The specific data design still needs to be settled on (i.e. is the node group an operator, or does an operator reference a node group?).

Design

  • The node group itself is the operator asset
  • Geometry nodes gets new input nodes in a new "Operator" menu
    • Selection
    • Mouse coordinates
    • View transform
    • 3D cursor location
    • ...
  • Geometry node groups with these input nodes can only be used as operators
    • This design is similar to the shared node groups between shader and geometry nodes, for example.
  • The group outputs are used to adjust the output geometry
    • The geometry output will adjust the "active" geometry
    • We might need to store a specific mapping for outputs, but relying on the name is a start

Next Steps

Map mesh edit mode operators to see what data they use and change

See D15493 for a prototype.

### Background With node group assets becoming more prevalent and geometry nodes becoming essential for manipulating geometry in Blender, we want to add the ability to implement operators with geometry node groups. Relevant node groups would need a geometry input and output, and could have other inputs (and possibly outputs), with similar mappings as the geometry nodes modifier. Additionally, specific inputs could be marked as editable modally, for example, a "Factor" input could be controlled by moving the mouse cursor left or right. The specific data design still needs to be settled on (i.e. is the node group an operator, or does an operator reference a node group?). ### Design - The node group itself is the operator asset - Geometry nodes gets new input nodes in a new "Operator" menu - Selection - Mouse coordinates - View transform - 3D cursor location - ... - Geometry node groups with these input nodes can only be used as operators - This design is similar to the shared node groups between shader and geometry nodes, for example. - The group outputs are used to adjust the output geometry - The geometry output will adjust the "active" geometry - We _might_ need to store a specific mapping for outputs, but relying on the name is a start ### Next Steps Map mesh edit mode operators to see what data they use and change See [D15493](https://archive.blender.org/developer/D15493) for a prototype.

It would be useful to provide a module for converting custom panel settings to input sockets as part of the input sockets signature.

It would be useful to provide a module for converting custom panel settings to input sockets as part of the input sockets signature.
Dalai Felinto added this to the Nodes & Physics project 2023-02-27 15:24:57 +01:00
Hans Goudey added this to the 3.6 LTS milestone 2023-02-28 20:11:18 +01: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
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
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
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
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#101778
There is no content yet.