MaxScript Issue - Enable/Disable Command (Just Switchable)

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 Viewmax vpt persp useractionMan.executeAction 0 "50026"  -- Tools: Maximize Viewport Togglemax tool maximizeactionMan.executeAction 0 "550"  -- Views: Viewport Visual Style ShadedactionMan.executeAction 0 "40078"  -- Views: Show Home Gridmax showhomegridactionMan.executeAction 0 "310"  -- Tools: Zoom Extents Selectedmax zoomext selmacros.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: Maxscript command List.

Previous
Previous

Launching my CG Channel VideoStream via Twitch TV.

Next
Next

Solving 3D Viewport Issue on 3DsMAX with Intel HD 4XXX