I have been struggling for a long time with the way my spacemouse pro works in 3ds max in terms of it kinda takes into account the size of the object I zoom extended to and changes speed of navigation after that. So I made a very simply but effective workaround for that. I thought somebody would find it useful. So here is the code:
Code: Select all
with redraw off (
currentViewportTM = getViewTM()
viewScale = 200 -- this is the value which will define the scale of navigation in scene units
fitBox_1 = box lenght:viewScale width:viewScale height:viewScale isSelected:true
max zoomext sel
delete fitBox_1
viewport.setTM currentViewportTM
)
I find it handy to drop this code onto my toolbar and set several buttons like that with different scale to quickly and seamlessly switch between scales while working.