MaxScript « Bad Day »
I’m so sad to see that in MAX you can just switch from one command to another and back and forth… Why do they didn’t had the possibility to Enable or Disable an option/command instead of just switch it (nobody cares about the position A or B….seriously).
Here is just a little script to clean a scene in order to focus (Zoom) onto the scene and go to a Maximized Perspective view – Shaded with Wireframe:
actionMan.executeAction 0 « 40182 » — Views: Perspective User View
max vpt persp user
actionMan.executeAction 0 « 50026 » — Tools: Maximize Viewport Toggle
max tool maximize
actionMan.executeAction 0 « 550 » — Views: Viewport Visual Style Shaded
actionMan.executeAction 0 « 40078 » — Views: Show Home Grid
actionMan.executeAction 0 « 310 » — Tools: Zoom Extents Selected
max zoomext sel
macros.run « DragAndDrop » « Macro8 »
But now as you can see i can’t go directly to Hide/Disable Homegrid…
If i open a file with homegrid in the viewport, i will switch it on and that’s not what this script is supposed to do.
I’ve search that on internet but i couldn’t find that tricks: