Node View Infinite Scroll

Using Blender for a number of years, one of the most impressive things to me was the node system. Something that particularly stands out is the infinitely scrolling node view.

My question is, how can I find the code responsible for this infinitely scrolling canvas in the node views?
streamable.com/3snfdd

I want to see how to build something as impressive as that

Thank you for being so gracious with your time

Most of the relevant code is in the view2d*.c files.

There’s nothing really special about it being infinite. The nodes have an arbitrary XY position, and the 2D view is looking at an arbitrary region of the XY plane. It’s similar to how the 3D viewport is infinite, you kind of just get that by default unless you limit it.

1 Like