Nodes: Show active node position & width in UI when Developer Extras enabled #115982

Closed
Nika Kutsniashvili wants to merge 1 commits from nickberckley:nodepos-panel into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Contributor

When creating addons or scripts that are adding or moving nodes around, sometimes its important to know exact XY position of nodes, so that you can reference them in python. Since the position property for nodes isn't displayed anywhere one has to either do guesswork and try different positions until something looks correct, or get active node position property from python manually on existing nodes.

This PR adds new subpanel under Node panel in sidebar, that shows node position and width properties for active node.
Panel is only shown if user has "Show Developer Extras" option enabled in preferences, since this isn't something casual users will need.

image

When creating addons or scripts that are adding or moving nodes around, sometimes its important to know exact XY position of nodes, so that you can reference them in python. Since the position property for nodes isn't displayed anywhere one has to either do guesswork and try different positions until something looks correct, or get active node position property from python manually on existing nodes. This PR adds new subpanel under Node panel in sidebar, that shows node position and width properties for active node. Panel is only shown if user has "Show Developer Extras" option enabled in preferences, since this isn't something casual users will need. ![image](/attachments/c545d020-4751-4635-8dbb-8ae3831cde23)
Nika Kutsniashvili added 1 commit 2023-12-09 18:08:20 +01:00
Nika Kutsniashvili changed title from Nodes: Show active node position & width in UI when Developer Extras enabled to WIP: Nodes: Show active node position & width in UI when Developer Extras enabled 2023-12-09 18:08:51 +01:00
Nika Kutsniashvili changed title from WIP: Nodes: Show active node position & width in UI when Developer Extras enabled to Nodes: Show active node position & width in UI when Developer Extras enabled 2023-12-09 18:08:58 +01:00
Nika Kutsniashvili requested review from Iliya Katushenock 2023-12-09 18:09:25 +01:00
Nika Kutsniashvili requested review from Hans Goudey 2023-12-09 18:09:25 +01:00
Iliya Katushenock added this to the Nodes & Physics project 2023-12-09 18:19:03 +01:00
Iliya Katushenock added the
Interest
Python API
label 2023-12-09 18:19:07 +01:00
Member

Thanks for the PR. We discussed this in the last module meeting. While we understood the reasoning for it, this brings up enough questions with non-obvious answers, and the benefit isn't strong enough, so we decided not to add this. It sort of comes down to not cluttering the UI with data just because we can, and not having a clear principle for only including this when developer extras is one.

When I needed to print out positions in a node tree, I've usually written a few lines of Python to list all the positions, idnames, names, etc.

An alternative solution is making an addon to display this information. With the extensions project it would be easily accessible for others as well.

Thanks for the PR. We discussed this in the last [module meeting](https://devtalk.blender.org/t/2023-12-12-nodes-physics-module-meeting/32506). While we understood the reasoning for it, this brings up enough questions with non-obvious answers, and the benefit isn't strong enough, so we decided not to add this. It sort of comes down to not cluttering the UI with data just because we can, and not having a clear principle for only including this when developer extras is one. When I needed to print out positions in a node tree, I've usually written a few lines of Python to list all the positions, idnames, names, etc. An alternative solution is making an addon to display this information. With the extensions project it would be easily accessible for others as well.
Hans Goudey closed this pull request 2023-12-13 17:35:55 +01:00

Pull request closed

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#115982
No description provided.