Read Viewport Click State (BETA)

Read the state of the last viewport click event from the specified viewport. Note that viewport mouse events must be enabled on the specified viewport using a SetViewportMode node.

Installation

To use this Node, you must enable omni.graph.ui_nodes in the Extension Manager.

Inputs

Name

Type

Description

Default

Use Normalized Coords (useNormalizedCoords)

bool

When true, the components of the 2D position output are scaled to between 0 and 1, where 0 is top/left and 1 is bottom/right. When false, components are in viewport render resolution pixels.

False

Viewport (viewport)

token

Name of the viewport window to watch for click events

Viewport

Gesture (gesture)

token

The input gesture to trigger viewport click events

Left Mouse Click

Outputs

Name

Type

Description

Default

Position (position)

double[2]

The position at which the specified input gesture last triggered a viewport click event in the specified viewport

Is Valid (isValid)

bool

True if a valid event state was detected and the outputs of this node are valid, and false otherwise