'-------------------------------------------------------------------
'AUTHOR:Jonathan Katoe
'VERSION:1.0
'DESC:Toggles Shade and Wireframe display types in Camera viewports
'-------------------------------------------------------------------

SetValue "*.camdisp.mixviewmode", True
if GetValue( "Scene_Root.display.staticsel" ) = 0 then
	shade = 1
else
	shade = 0
end if
			SetValue   "#3dobject.display.staticsel", shade
			SetValue   "#3dobject.display.intsel", shade
			SetValue   "#3dobject.display.staticunselnear", shade
			SetValue   "#3dobject.display.intunselnear", shade
			SetValue   "#3dobject.display.intunselfar", shade
