Select By Size / Volume
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...
Attachment | Size |
---|---|
r7_select_by_size.ms | 7.32 KB |
Comments
Open MAxsSCript help file and
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.
Tools and Scripts for Autodesk 3dsMax
but this is not able to
but this is not able to calculate the real volume of the mesh :(
Wow!
Thank you so much, relief7. This script saved my life!