ScriptSpot

Script

Count By Layer

By barigazy · Credited author: Branko Živković · 2016-06-30

Version
1.1
Version requirement
2012+
Date updated
2016-06-30
Votes
1
Downloads

Tags: Triangle Vertex Count

Description


Simple tool that allows to calculate triangle and vertex count of any object inside specified layer.

Additional Info

How to use it:
When tool is opens dropdown list is filled with all scene layers.
Press "R" button to refresh dropdown list.
Pick some layer form the list and press "C A L C U L A T E" button to fill bottom list.
Below dropdown list U can see sum of objects and theses triangle and verts count.
Doubleclick on object name will select object in the scene.
To filter lajer objects just check radiobutton option and press "C A L C U L A T E"

This tool is requested by bacree85
on this thread http://www.scriptspot.com/forums/3ds-max/scripts-wanted/triangle-count-b…

Update 1.1 >>>
#1 optimized code
#2 added auto-calculate on changing selection of items in dropdown "Layers" list and modes
#3 added auto-calculate on changing selections topology
#4 refresh list on selection changing
NOTE: #3 and #4 works only in "Select Objects Only" mode

Comments (5)

bacree85 · 2016-06-30

That is awesome, thanks! Any chance for auto update?

barigazy · 2016-06-30

Auto update for what?

bacree85 · 2016-06-30

Ah sorry, I meant to say have the count auto-update as you modify objects so the numbers displayed are always a current reflection of the triangle count.

barigazy · 2016-06-30

Just press calculate again. Auto-update will slow-down everithing if picked layer contains too meny objects. That's why I don't integrated this option

bacree85 · 2016-07-01

Hmm, I see what you mean. Could it be added as a toggle? That way lighter layers can make use of auto update and for heavier layers the user could disable it? I only persist because when you're removing triangles to reach a budget, it can be quite easy to go too far under budget and waste time as well as have the model look worse than it would be if it were at count, otherwise you'd have to spend more time adding that detail back in.

Sorry to be a pain, I really do appreciate you making this :)