ce224fe4010af75c85b300151363dbc37fbbcee6
Add a "Mouse Position" node that outputs the location of the mouse cursor in region space and the overall size of the region, both in pixel units. Both outputs are integers to help reflect their pixel units. If there the mouse position is ever accessible in sub-pixels, they can easily be changed to floats. Also add a "Wait for Cursor" option similar to the one for some built-in operators that delay's the operator's execution until there is a mouse click in the viewport. That way the operator can be called from menus even though it is interactive. This option is placed in the node editor header. When there are more options, it will be part of an "Options" popover panel similar to the existing "Modes" and "types" popovers. Combined with the viewport transform node, and other nodes like Raycast, these features can allow making tools that create geometry where you click in the scene. Pull Request: https://projects.blender.org/blender/blender/pulls/121043
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
