Node location not handled correctly #81684

Closed
opened 2020-10-13 18:14:11 +02:00 by Sergey · 10 comments

Blender Version
version: 2.90.0, branch: master, commit date: 2020-08-31 11:26, hash: 0330d1af29

Short description of error
Position of nodes in frames is not calculated correctly when node group is created

Exact steps for others to reproduce the error
#81684.blend

  • Open file
  • Press Ctrl+G - nodes fly far away

Press Tab - node group is created far away from where selection was originally

**Blender Version** version: 2.90.0, branch: master, commit date: 2020-08-31 11:26, hash: `0330d1af29` **Short description of error** Position of nodes in frames is not calculated correctly when node group is created **Exact steps for others to reproduce the error** [#81684.blend](https://archive.blender.org/developer/F8991117/T81684.blend) - Open file - Press Ctrl+G - nodes fly far away # Press Tab - node group is created far away from where selection was originally
Author

Added subscriber: @randum

Added subscriber: @randum
Author

It looks like it not only Python API problem. I would expect more accurate placing nodes.
group ungroup.gif

It looks like it not only Python API problem. I would expect more accurate placing nodes. ![group ungroup.gif](https://archive.blender.org/developer/F8988858/group_ungroup.gif)

Added subscriber: @iss

Added subscriber: @iss

In #81684#1033666, @randum wrote:
It looks like it not only Python API problem. I would expect more accurate placing nodes.
group ungroup.gif

From this example it looks like UI code is little bit confused as well.

The location property here is in "parent" space. So frame does have location, and node does have location as well. Node is "owned" or "parrented" by frame, but frame doesnt get proper absolute location and it has to be calculated from it's child. So to get overall location you have to add both locations, or substract, depending on what you want to target. And resulting math may be counter intuitive.

This is not bug though and probably won't be resolved anytime soon. But nodes jumping around in UI I would say could be, though it is also just minor inconvinience I would say.

> In #81684#1033666, @randum wrote: > It looks like it not only Python API problem. I would expect more accurate placing nodes. > ![group ungroup.gif](https://archive.blender.org/developer/F8988858/group_ungroup.gif) From this example it looks like UI code is little bit confused as well. The location property here is in "parent" space. So frame does have location, and node does have location as well. Node is "owned" or "parrented" by frame, but frame doesnt get proper absolute location and it has to be calculated from it's child. So to get overall location you have to add both locations, or substract, depending on what you want to target. And resulting math may be counter intuitive. This is not bug though and probably won't be resolved anytime soon. But nodes jumping around in UI I would say could be, though it is also just minor inconvinience I would say.
Richard Antalik changed title from Frame node location to Node location not handled correctly 2020-10-14 21:15:44 +02:00

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

Changed status from 'Needs Triage' to: 'Confirmed'
Author

frame doesnt get proper absolute location and it has to be calculated from it's child.

If child of frame was deleted how to calculate frame location relatively to tree origin?

> frame doesnt get proper absolute location and it has to be calculated from it's child. If child of frame was deleted how to calculate frame location relatively to tree origin?

In #81684#1034545, @randum wrote:

frame doesnt get proper absolute location and it has to be calculated from it's child.

If child of frame was deleted how to calculate frame location relatively to tree origin?

I see that this looks impossible. nodes have internal offset property that is not exposed through API.

We still don't consider this to be a bug - see https://wiki.blender.org/wiki/Reference/Not_a_bug

> In #81684#1034545, @randum wrote: >> frame doesnt get proper absolute location and it has to be calculated from it's child. > > If child of frame was deleted how to calculate frame location relatively to tree origin? I see that this looks impossible. nodes have internal offset property that is not exposed through API. We still don't consider this to be a bug - see https://wiki.blender.org/wiki/Reference/Not_a_bug
Author

We still don't consider this to be a bug

No complaints but I wish Blender could get API improvements in this domain.

> We still don't consider this to be a bug No complaints but I wish Blender could get API improvements in this domain.

This issue was referenced by f3ecb4c91e

This issue was referenced by f3ecb4c91e159caff2e6d335adb1ccf06423c90f
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Jacques Lucke self-assigned this 2020-10-20 10:54:10 +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 project
No Assignees
4 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#81684
No description provided.