Turn off mouse camera navigation

I tried to turn off camera navigation with mouse as per https://docs.omniverse.nvidia.com/kit/docs/omni.kit.manipulator.camera/latest/Overview.html:


        _viewport: ViewportWindow = get_active_viewport_window()  # type: ignore
        _viewport_api: ViewportAPI = _viewport.viewport_api  # type: ignore
        camera_manip = ViewportCameraManipulator(_viewport_api)

        camera_manip.model.set_ints("disable_tumble", [1])
        camera_manip.model.set_ints("disable_look", [1])
        camera_manip.model.set_ints("disable_pan", [1])
        camera_manip.model.set_ints("disable_zoom", [1])

but this does not do anything. Doesn’t throw an error either. How do I set these settings?

Turn OFF camera navigation? Can I ask why are you trying to do that? You don’t want someone to change the view? Just lock the camera.

We’re manipulating the camera with completely custom logic (so we would not like to just lock the camera) and the built in gestures are not desired. Is this doable like the docs say with the camera manipulator model or am I misreading the docs?

I think you could try just not even loading the camera manipulator extensions. They don’t need disabling if that are not even loaded.

Great, that suggestion works for us, thanks :)

Great !

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