Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geometry Nodes- Tools Mode - Input - Scene - New Mouse Position node #4235

Open
Draise14 opened this issue May 2, 2024 · 0 comments
Open
Labels
0 - task A normal development task

Comments

@Draise14
Copy link
Collaborator

Draise14 commented May 2, 2024

bforartists_p3G8UIw58D

image

new Mouse to Position node for the Tools Mode. Location in title.

Details

SHA-1: ce224fe

  • Node Tools: Add mouse position node, wait for cursor option

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

@Draise14 Draise14 added the 0 - task A normal development task label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - task A normal development task
Projects
None yet
Development

No branches or pull requests

1 participant