Notifications
Clear all

[Closed] Viewport Configuration – Statistics

In max9, they introduced the Statistics tab within the Viewport Configuration that can display things like polygon counter, fps, etc. These statistics can also get burned in to RAM previews if you have them turned on. I was wondering if these statistics, or the viewport configuration as a whole exist as a macro script anywhere, that would allow you to add your own statistics?

My ultimate goal is to have user defined statistics like camera fov, camera height, etc. which can be burned into RAM previews.

Any help would be appreciated.

Thanks.

5 Replies
1 Reply
(@bobo)
Joined: 1 year ago

Posts: 0

The Statistics were implemented at a lower level without any scripting because they have to measure speed at the heart of the system – running MAXScript code there could cause slower updates and thus skewed results.

You can implement your own display in the viewport for ANYTHING (I had a MAXScript Master Class two Siggraphs ago where I demonstrated lots of ideas along these lines – the DVD is still on sale at Autodesk’s shop ;)).

In short, you can use the gw. methods to output your own text to the viewports. The OLD polygon counter in Max 8 and earlier that was assigned on the 7 key used to be a script that did just that. You can still find its source and see how it worked.

To add to this, does anyone know how to change the default settings for the statistics? Restarting max always defaults.

2 Replies
(@bobo)
Joined: 1 year ago

Posts: 0

They are stored (like most other viewport settings) with the Max file, so setting them up and saving MAXSTART.MAX will make them persistent for any new scene.

(@erilaz)
Joined: 1 year ago

Posts: 0

Ah sweet! I was looking in the config files.

Thanks for the suggestions. I found the macroscript for the poly counter in max8 and was able to use pieces from that to display my own information in the viewport.

I’m not sure if its possible, but I’d still like to have this information burned into RAM previews. In max9 it seems like if you have statistics turned on, they are displayed in RAM previews, but I can’t seem to get custom viewport text to show up.