Nodes Preview: Socket Inspection #85251

Closed
opened 2021-01-31 18:52:04 +01:00 by Pablo Vazquez · 11 comments
Member

One of the many ways to preview part of a node tree, is via socket peeking.

This allows you to quickly see what the output of a socket is before connecting it with another node, or to see if the input value is what you expect it to be. Most socket types have a distinctive color, but having a way to read the type and value is good for accesibility, learning, and debugging.

Socket Inspection

On mouseover a socket, display a tooltip containing:

  • Value
  • Type
  • Errors, if any
  • Info icon for values that either don't fit or require are better viewed on a spreadsheet or Info editor.

{F9606347, size=full}

Single line tooltips could also be an alternative here for a more compact/less intrusive layout.
{F9606358, size=full}
{F9606399, size=full}

A similar concept could be applied to wires, to be able to quickly have a peek without going to the input node.

{F9606364, size=full}

Or to understand why a connection is throwing an error.
{F9606373, size=full}

Although useful, such tooltips can get on the way. These hints should be triggered on-demand by holding a modifier key, such as Alt, with the mouse over a socket/wire.

In this design I went for a tooltip, but this info could also be displayed in the status bar for a less intrusive experience.

Part of #83239

One of the many ways to preview part of a node tree, is via socket peeking. This allows you to quickly see what the output of a socket is before connecting it with another node, or to see if the input value is what you expect it to be. Most socket types have a distinctive color, but having a way to read the type and value is good for accesibility, learning, and debugging. ## Socket Inspection On mouseover a socket, display a tooltip containing: * Value * Type * Errors, if any * Info icon for values that either don't fit or require are better viewed on a spreadsheet or Info editor. {[F9606347](https://archive.blender.org/developer/F9606347/image.png), size=full} Single line tooltips could also be an alternative here for a more compact/less intrusive layout. {[F9606358](https://archive.blender.org/developer/F9606358/image.png), size=full} {[F9606399](https://archive.blender.org/developer/F9606399/image.png), size=full} A similar concept could be applied to wires, to be able to quickly have a peek without going to the input node. {[F9606364](https://archive.blender.org/developer/F9606364/image.png), size=full} Or to understand why a connection is throwing an error. {[F9606373](https://archive.blender.org/developer/F9606373/image.png), size=full} Although useful, such tooltips can get on the way. These hints should be triggered on-demand by holding a modifier key, such as `Alt`, with the mouse over a socket/wire. In this design I went for a tooltip, but this info could also be displayed in the status bar for a less intrusive experience. Part of #83239
Author
Member

Added subscriber: @pablovazquez

Added subscriber: @pablovazquez

Added subscriber: @RainerTrummer

Added subscriber: @RainerTrummer

It's very much welcome to see a possibility arising finally to preview node output values within the node tree. However, while using tooltips to do quick previews is just fine, I usually prefer to use dedicated nodes within the node tree to constantly have value updates visible. I do this in Dynamo, a tool to procedurally generate geometry. Watch_Node.png illustrates how this is done there. The first node just genereates a list of values using the builtin script language Dynamo offers. The second node then acts as a pass-through, displaying the values that come in from the left, and passes them on completely unchanged to the output socket. This way, at any point in a complex node tree, values can be counter-checked for consistency. This is hugely important for debugging the setup.

It's very much welcome to see a possibility arising finally to preview node output values within the node tree. However, while using tooltips to do quick previews is just fine, I usually prefer to use dedicated nodes within the node tree to constantly have value updates visible. I do this in Dynamo, a tool to procedurally generate geometry. ![Watch_Node.png](https://archive.blender.org/developer/F9606411/Watch_Node.png) illustrates how this is done there. The first node just genereates a list of values using the builtin script language Dynamo offers. The second node then acts as a pass-through, displaying the values that come in from the left, and passes them on completely unchanged to the output socket. This way, at any point in a complex node tree, values can be counter-checked for consistency. This is hugely important for debugging the setup.
Member

Added subscriber: @Kdaf

Added subscriber: @Kdaf

Added subscriber: @Ko

Added subscriber: @Ko

Three things: 1) "Light path" node doesn't work like that. 2) Nodes in example images are not collapsed, so additional information in socket tooltips seems to be useless. 3) Tooltip on the wire should show names and types of two connected sockets. IMHO that will be more convenient way to show types of connected sockets than coloring wire by two different colors interpolated in the middle like in some other proposal.

Three things: 1) "Light path" node doesn't work like that. 2) Nodes in example images are not collapsed, so additional information in socket tooltips seems to be useless. 3) Tooltip on the wire should show names and types of two connected sockets. IMHO that will be more convenient way to show types of connected sockets than coloring wire by two different colors interpolated in the middle like in some other proposal.

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
Dalai Felinto self-assigned this 2021-02-16 10:49:12 +01:00

Added subscriber: @victorlouis

Added subscriber: @victorlouis

Related diff: Add support for node socket tooltips https://developer.blender.org/D9967

Related diff: `Add support for node socket tooltips` https://developer.blender.org/D9967

Added subscriber: @Ulrich-Buch

Added subscriber: @Ulrich-Buch

Would it make sense to distinguish default-values from those driven by nodes upstream as far as inputs are concearned? Would it even be meant to work on unconnected inputs?

Would it make sense to distinguish default-values from those driven by nodes upstream as far as inputs are concearned? Would it even be meant to work on unconnected inputs?
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
7 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#85251
No description provided.