ScriptSpot

Script

Select By Size / Volume

By relief7 · 2008-12-27

Version
0.01
Version requirement
MAX 9-2009
Date updated
2008-12-27
Votes
16
Description

This script allows you to select objects by their size or volume, by checking their

- bounding box size (= bounding box volume) or

- the actual volume of the mesh (the calculation function for this is taken from the MAXScript manual, I think Bobo is the genius behind it ! :-) )

You can specify if you want to select objects that are smaller than, bigger than or equal to a certain size. For the equality comparison I had to set a small tolerance (because of roundoff errors). This value can be found in the script file under "gloabal variables". Open the MAXScript listener (F11 button) for verbose output.

Run the script via Menu -> MAXScript -> Run Script. The rest is self-explanatory...

Attachments

Tags: selection, bounding box, size, select, object, volume, smaller than, bigger than, equal to

Comments (3)

miauu · 2013-06-17

Open MAxsSCript help file and search for
How do I calculate the Volume of an Object?
You will see the code that calculates the volume fo the object.

lantlant · 2013-06-17

but this is not able to calculate the real volume of the mesh :(

Wow!

AreaMan · 2011-12-18

Thank you so much, relief7. This script saved my life!