MAXSCRIPT: Toggle trackbar / statusbar

by

Maxscript I wrote  to salvage these 50 or so pixels on ther bottom area, especially when I'm doing some more devlook oriented tasks, not animating or duplicating / rotating / transforming objects. It'll hide trackbar slider + trackbar then status bar when you click it, and after third click, will show them again.

macroScript toggleTrackbarUI 
    category:"_Piro_Tools"
    internalCategory:"UU: toggleTrackbar" 
    tooltip:"UV: toggleTrackbar"
    ButtonText:"toggleTB" 
    autoUndoEnabled:false
    Icon:#("SchematicView",1)
    (
        if (trackbar.visible == true) then (
            timeSlider.setVisible (false) -- hide time slider
            trackbar.visible = false -- hide track bar
        ) else (
            if (statusPanel.visible == true) then (
                statusPanel.visible = false
            ) else (
                timeSlider.setVisible (true) -- show time slider
                trackbar.visible = true -- show track bar
                statusPanel.visible = true -- show status panel
            )
        )
    )

As always, you'll find it here: