Hiding Statistics panel

This command:

actionMan.executeAction 0 "40829"

should hide the statistics panel but it is actually a toggle.

I like to set this to false only but i couldn't find a maxscript command?

Do you have any suggestions so i can turn it off?

Thank you.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
remykonings's picture

.

for some reason "actionMan.executeAction 0 "40829"" doesn't work anymore.

"max show statistics toggle" toggles it off and on while i want to have it off.
Your code didn't work for me unfortunatly.

miauu's picture

.

It works with one small correction:

(
	local table = for i = 1 to actionMan.numActionTables where (actionMan.getActionTable i).name == "Main UI" do exit with actionMan.getActionTable i
	local checked = for i = 1 to table.numActionItems where (item = table.getActionItem i; item.getMenuText &aiMenuText; aiMenuText == "Show Statistics Toggle") do exit with item.isChecked
 
	if checked do actionMan.executeAction 0 "40829"
)
Swordslayer's picture

 

(
	local table = for i = 1 to actionMan.numActionTables where (actionMan.getActionTable i).name == "Main UI" do exit with actionMan.getActionTable i
	local checked = for i = 1 to tbl.numActionItems where (item = table.getActionItem i; item.getMenuText &aiMenuText; aiMenuText == "Show Statistics Toggle") do exit with item.isChecked
 
	if checked do actionMan.executeAction 0 "40829"
)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.