Stillwell
06-17-2006, 02:49 AM
Hello there!
I've written a function that tries and succesfully calculates the total number of vertices in a scene and it works fine, until I try to put an Edit Poly/Mesh modifier on any of the scene object. Then, it gives me this error:
MAXSCRIPT redrawviews Callback exception
--Runtime error: Attempt to access deleted Trimesh.
It seems like the mesh information is obsolete and my function can't access the information, but I don't know how to reset the mesh information, or tell the script to stop looking where it shouldn't.
Any help would be appreciated.
Thanks!
EDIT: I thought posting my function would probably be useful?
fn getTotalSceneVerticesAsString =
(
tsv = 0
for o in $geometry do
(
tsv += o.mesh.numVerts
)
ss = stringstream ""
format "%" tsv to:ss
return ss as string
),
The error then highlights tsv += o.mesh.numVerts.
I've written a function that tries and succesfully calculates the total number of vertices in a scene and it works fine, until I try to put an Edit Poly/Mesh modifier on any of the scene object. Then, it gives me this error:
MAXSCRIPT redrawviews Callback exception
--Runtime error: Attempt to access deleted Trimesh.
It seems like the mesh information is obsolete and my function can't access the information, but I don't know how to reset the mesh information, or tell the script to stop looking where it shouldn't.
Any help would be appreciated.
Thanks!
EDIT: I thought posting my function would probably be useful?
fn getTotalSceneVerticesAsString =
(
tsv = 0
for o in $geometry do
(
tsv += o.mesh.numVerts
)
ss = stringstream ""
format "%" tsv to:ss
return ss as string
),
The error then highlights tsv += o.mesh.numVerts.
