PDA

View Full Version : -- Runtime error: Attempt to access deleted scene object


Kramsurfer
10-09-2008, 02:47 AM
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..

JHN
10-12-2008, 08:50 PM
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

Kramsurfer
10-14-2008, 12:03 AM
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...

CGTalk Moderation
10-14-2008, 12:03 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.