Page MenuHome

Nodes Editor: Draw lines across the center of the grid
AbandonedPublic

Authored by Pablo Vazquez (pablovazquez) on Nov 5 2021, 7:44 PM.
Tokens
"100" token, awarded by OcularEvolution."Love" token, awarded by silex."Like" token, awarded by Fracture128."Love" token, awarded by Lillya."Like" token, awarded by ncotrb."Love" token, awarded by Stig."Love" token, awarded by HEYPictures."Love" token, awarded by kursadk."Dislike" token, awarded by capnm."Love" token, awarded by jonathanl.

Details

Reviewers
None
Group Reviewers
User Interface
Summary

Add lines across the center of the grid to help orientation in large node trees.

Demo

Based on feedback by @Jonathan Lampel (jonathanl), on which I agree it's handy to have a reference to where you are in the canvas.

A deeper root to the orientation problem is that the view stays the same while you change editors (Geometry Nodes to Shaders, for example). This can be very confusing, but it's a topic for another patch. Even with that fixed, a center indicator is good to have.

Previous Attempts

The previous attempt used a cross, but it's easy to lose it under a node or when too far away from the center:

Diff Detail

Repository
rB Blender
Branch
temp-node-editor-center-indicator (branched from master)
Build Status
Buildable 18518
Build 18518: arc lint + arc unit

Event Timeline

Pablo Vazquez (pablovazquez) requested review of this revision.Nov 5 2021, 7:44 PM
Pablo Vazquez (pablovazquez) created this revision.

Oh wow, this is perfect! Thank you!

Hi Pablo,

Thank you for your work on this.

Wonder if instead of a cross, which could be hidden behind a node (for a large node tree one still wouldn't know which node covered it, or where the centre is), if the central column & row of dots were slightly brighter?

Kind regards.

Update to latest master

Thank you for updating/rebasing.

Further to my previous comment/observation, below is a screenshot of the best (non-developer) solution I've been able to achieve (hack using grease pencil lines).

Thank you.

Use lines across the editor instead of a cross.

Pablo Vazquez (pablovazquez) retitled this revision from Nodes Editor: Draw an indicator at the center of the dot grid to Nodes Editor: Draw lines across the center of the grid.May 12 2022, 12:25 PM
Pablo Vazquez (pablovazquez) edited the summary of this revision. (Show Details)
  • Remove the increased line width, it helped the cross but for regular lines the default width should be enough.

Also add Alt+G hotkey to send selected nodes back to center like objects in 3d view please :)

Also add Alt+G hotkey to send selected nodes back to center like objects in 3d view please :)

That's a good idea for consistency but it's not related to this patch, it's out of scope. For feature requests please use https://rightclickselect.com , not unrelated patches.

Sharing my comment about this in chat, for the records:

I find it a bit much honestly-- it's a lot of visual weight for something I care about only very rarely
I feel like the reasons I care about it are wrong even, the view shouldn't get messed up when I switch node trees
Ideally the user wouldn't have to care where there nodes are on the canvas

So I think a better solution would be to investigate two things:

Sharing my comment about this in chat, for the records:...

From a personal perspective, due to dyslexia, I often zoom in very close to nodes to help read values; for similar nodes trees, when switching material slots, having nodes aligned and in the same location is a great asset to help compare settings.

Possibly the best interim solution which benefits all is to implement the lines with an enable/disable preference option?

Thank you for your time.

Hans Goudey (HooglyBoogly) abandoned this revision.EditedDec 14 2022, 8:15 PM

Based on my earlier comments, I'll close this patch. The fundamental problem seems to be that the view location in the canvas behaves unexpectedly when switching between node trees, that can be improved though, if we find specific cases.

Based on my earlier comments, I'll close this patch. The fundamental problem seems to be that the view location in the canvas behaves unexpectedly when switching between node trees, that can be improved though, if we find specific cases.

This patch is more about bringing back the visual aid that was present before the grid redesign.

Removing the lines should be done once they become redundant because the canvas behaviour works in a way that users don't feel lost in their node trees anymore. Until that is tackled I think this patch is still valid.

It's a far from perfect solution but it helps in the meantime until someone wants to tackle the canvas issue (unfortunately that is too advanced for me to do). I'm fine with this being closed if someone is actually working on a proper solution.

@Pablo Vazquez (pablovazquez) I don't think anyone is working on a proper solution at the moment. But I was under the impression that you were agreeing with Hans arguments, and simply forgot to close the patch. If this is not the case feel free to re-open it, but also to get this in the UI module agenda so it doesn't stall?

It would help to hear from people about the issue with switching node groups. A bug report would be helpful there.