Vizard 8 » Command Index » Vizard objects » node3d » <node3d:canvas>.getCursorPosition
8.0

<node3d:canvas>.getCursorPosition

Get position of canvas cursor

<node3d:canvas>.getCursorPosition(  
mode = viz.CANVAS_CURSOR_NORMALIZED  
)  
mode = viz.CANVAS_CURSOR_NORMALIZED
Can be one of the following:

Mode

Description

viz.CANVAS_CURSOR_NORMALIZED

The position is specified in normalized (0-1) canvas coordinates.

viz.CANVAS_CURSOR_PIXELS

The position is specified in canvas pixel resolution coordinates.

Remarks

Returns the virtual canvas cursor position in the specified reference frame.

Return Value

[x, y]

See also

<node3d:canvas>.setCursorPosition