[Closed] — Runtime error: Attempt to access deleted scene object
So I have a script that generates a bunch of geometry via spline modeling… draw splines, add modifiers, convert To Mesh, attach to one MultiSub object…
The Problem is after running the script. I’m unable to access some properties of objects. .pos .scale ect…
In the listener with the object selected:
Selection[1].pos
– Runtime error: Attempt to access deleted scene object
Selection[1].transform.pos
[23.44,123.42,563.53]
Interestingly, If I create new geometry by hand in the same session of max, they all have this issue. I’m guessing it has something to do with Max getting a memory mix up when I’m attaching the meshes…
Thanks in Advance…
Did you do some garbage collection? You have a simplified version of the script that shows the problem… haven’t seen anything like it, sounds pretty severe really…
-Johan
I had been starting with one spline and ‘maxOps.cloneNodes’ it as a base spline when creating stuff. I’ve changed that to creating a new splineshape and recreating it the shape each time, seems to have solved the issue…