Hi
You are correct, there is no direct way to get current view parameters, however you can store current view returned from ‘onViewSwitchDone’ and store it in a mutable variable.
Please take a look at this post:
You could infer the view parameters from the last view used.
To set view to ORBIT or WALK you would need to set view.mode
to either orbit
or fps
TOP view is special mode of ‘orbit’ view with parameters:
view.noPitchRotate
set totrue
view.rotation[1]
set to-90
;
There might be some other adjustments you need to consider, like minDistance, and maxDistance, depending on your specific needs.