[Closed] moving to Grid Front,back..etc Viewports
Hi Guys,
I am trying to setup short cuts for moving being different viewports. And these must include short cuts to the grid front, back, left and right views (when you have an active grid, other than the home grid).
I have looked through the help and cannot find anything useful. You can assign the active grid by either
max activate grid object
or simply setting the variable
activegrid = $Grid – Where $Grid is your grid object
From there we can change the viewport to a grid viewport by the commands
viewport.setType #view_grid
max vpt grid
However, from ther e I cannot for the life of me find a way to look the grid front, grid back etc. You can do this manually by right clicking on the viewport name in the Top left of your viewport then —> views —> Grid —> front,back,left etc
But I can find no way of doing this with maxscript.
I even tried grabbing the transformation matrix of the grid view (viewport.getTM()) and applying rotations and then re assigning the matrix (viewport.setTM matrix3), but this is only allowed on a perspective view, I am really after the grid orthogonal views… :banghead:
Hope I have sort of made myself clear, if anyone knows how to change to these grid viewports I would be so so grateful.
Cheers
Rich
I’ve been through your pains too and there is no MXS solution. The only way would be through SDK which I am not familiar with.
If you search the forum you’ll find my post with nore detailed explanations…
one work around might be to create a custom grid, make it active, set the view to grid (top) then script rotating the grid helper to get the “front” “left” “right” etc view…?
I feared that would be the answer vasilescu_anton, and unfortunately I do not have time to look at/learn the SDK. Doh! Thanks for cutting my searching short before I went completely mad
Nice suggestion Alex. I might knock up a little maxscript plugin that extends grid, or slap on some custom Attributes that store the transformation matrix, and thus allows me to apply the necessary rotations to display the different views. The only problem then would having a way of allowing the user to clearly see which viewport he was in. But that I am sure can be done with some cunning UI trickery.
Thanks for your help guys. Ill get back to you if I figure out anything useful
Take care,
Rich
I’ve been on that path Alex with the grid and it didn;t take me anywhere because it won’t allow to create geometry if I remember correctly. Maybe I’ve missed something back then as I was at the beginning of MXS learning.