Change the cursor inside from code

is it possible to change the look or put a png image as a replace to the mouse cursor directly from omniverse api?

Hi @icaroleles1. We have some shapes that you can change the mouse cursor to. Here’s an example:

import carb
import omni.kit.window.cursor

cursor = omni.kit.window.cursor.get_main_window_cursor()
# OPTIONS:
# carb.windowing.CursorStandardShape.ARROW
# carb.windowing.CursorStandardShape.IBEAM
# carb.windowing.CursorStandardShape.VERTICAL_RESIZE
# carb.windowing.CursorStandardShape.HORIZONTAL_RESIZE
# carb.windowing.CursorStandardShape.HAND
# carb.windowing.CursorStandardShape.CROSSHAIR
cursor.override_cursor_shape(carb.windowing.CursorStandardShape.HAND)

# clear back to arrow
cursor.clear_overridden_cursor_shape()
1 Like

would it be possible for me to use a svg ?

Hi @icaroleles1. We only provide those predined cursor shapes currently.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.