Need help quick!
I need to be able to select multiple objects (each object is 1 flat mesh) and all I want is for each object to work out it's own area and rename it self to that number.... how could I achieve this to multiple meshes / polys objects? I'm really against time at the moment and all other avenues have failed for me so this is my last chance!
Comments
.
Tools and Scripts for Autodesk 3dsMax
will this do...
disclaimer: I'm a shithouse maxscripter...but try this until some pro help comes along..
for obj in selection do
(
tempcopy = copy obj
convertToMesh tempcopy
faceSel= #()
myArea = 0.0
for f = 1 to tempcopy.numfaces do myArea += meshop.getFaceArea tempcopy #{f}
delete tempcopy
obj.name = "Area_" + myArea as string
)
You can change the prefix Area_ to whatever....or even delete it...
(if you select a circle spline say, it actually calculates the area as if it was a solid mesh...coz it 'treats' it as a mesh...)