Houdini 21.0 Nodes APEX nodes

uievent::MousePosition

Fetches information about the state of the mouse from the uievent.

On this page
Since 21.0

This method tracks the mouse states when a uievent event is generated. This happens during drag interactions. The uievent can be used as an input for control gadget graphs.

Note

Adding a shape geometry with a high point count can have a negative impact on the performance of a rig.

Inputs

uievent: Float

The dictionary containing various uievent states that can be queried by the control graph gadget during UI interactions.

Outputs

x: Float

The horizontal mouse position, specified in screen coordinates starting from the left edge of the view.

y: Float

The vertical mouse position, specified in screen coordinates starting from the bottom edge of the view.

xstart: Float

The horizontal mouse position at the start of the mouse drag, specified in screen coordinates starting from the left edge of the view. This can be used together with the x value to determine the horizontal distance the mouse moves during a drag event.

ystart: Float

The vertical mouse position at the start of the mouse drag, specified in screen coordinates starting from the bottom edge of the view. This can be used together with the y value to determine the vertical distance the mouse moves during a drag event.

See also

APEX nodes