Unconstrained rotation in ipywidget

Currently the ovito.gui.create_ipywidget has only constrained rotation with predefined camera_up always pointing upwards. is there any plan of supporting unconstrained rotation that modifies camera_up on rotation?

As far as I’m aware, the GUI setting is currently not exposed through the Python API. Have you tried setting the camera_up in the viewport that you add to the widget to (0,0,-1) to flip the default orientation? Maybe this solves your issue already.

1 Like

Yes, I’m currently generating random unit vectors as camera_up so that I can re-roll the dice if I can’t get a good view. If camera_up is not normalized (eg [0 1 -1]), there is some strange distorting behavior on rotation. It would be a bit more efficient if the ipywidget can change camera_up anyway. Thank you for this nice software :blush: