Hi, I build a function that reset all object in scene. This script write with "for o in objects do..." but reset some objects, not all objects. Why?
clearlistener()
function resetMesh =
(
for o in objects do
(
if (superclassof o) == geometryClass do
(
convertToPoly o
nm = (o.name as string)
n = convertToPoly (box name:nm wirecolor:black)
polyop.setFaceSelection n #all
n.EditablePoly.delete #Face
n.attach o n
setTransformLockFlags n #all
)
)
)
resetMesh ()
By
Comments (4)
Comment policy
Thanks U
Perfect! thank you :D
if I create six teapot, only reset four.
Why?
No reset all object of geometry class.
I try this function in 3ds max 2013 and 2015, and both cases the same result
.
The problem is, because you are using
Use this:
.
The objects that are not resets are?
Your functions works only with geometry objects, so the splines, helpers, lights will no the processed by the function.