your solution will still use two buttons though, GecT?
he wants a button that toggles on and off hide-polygons
the first thing i can think of is to use an if-statement
if polygons not visible
then show polygons
else hide them
but, i don't know what scripting languages can do yet
what i suggest is finding a script that toggles something and seeing if you can steal any of that code
there's a script on highend3d, i think, that toggles xray mode. it might contain a solution or inspiration to get that hide/show-polygon button you're after
that's a "Ch" pronounced as a "K"
Computer skills I should have:
Objective C, C#, Java, MEL. Python, C++, XML, JavaScript, XSLT, HTML, SQL, CSS, FXScript, Clips, SOAR, ActionScript, OpenGL, DirectX
Maya, XSI, Photoshop, AfterEffects, Motion, Illustrator, Flash, Swift3D