MEL How-To #63

Back · Previous · Next Maya

How do I toggle the Polygon statistics in the Heads-up Display?

The "macro" command for this is:

TogglePolyCount;

Which is a run-time command mapping to:

setPolyCountVisibility(!`optionVar -q polyCountVisibility`);

The commands above toggles the state. If you want to specifically show or hide the Poly Count HUD, use the following:

// Show the Poly Count HUD
//
setPolyCountVisibility( on );

// Hide the Poly Count HUD
//
setPolyCountVisibility( off );

Related How-To's

14 Sep 2004