Get mouse coordinates and events
summary (oneliner)
doc
issues
youtube id
caniuse query
collections
Inputs
Active (boolean /Number)
Behavior
relative (boolean /Number)
normalize (boolean /Number)
flip y (boolean /Number)
Area index (integer /Number)
Behavior
right click prevent default (boolean /Number)
Touch support (boolean /Number)
Smoothing
smooth (boolean /Number)
smoothSpeed (Number)
multiply (Number)
Outputs
x (Number)
y (Number)
button down (boolean Number)
click (Trigger)
Button Up (Trigger)
click right (Trigger)
mouseOver (boolean Number)
button (Number)
Mouse Draw Spline Example
Using the ScreenPosTo3d
op we can convert the mouse coordinates to 3D coordinates. For this you need to disable the Flip Y
port of the Mouse
op.
Using the ArrayPushValue3X
op we add the (converted) x and z coordinates (together with z=0) to the array and draw it with the SimpleSpline
op.
Changelog
created op
2020-02-19 - pandur
2020-02-19 - pandur