Message 1 of 12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm working on a script where I select the nodes in layers and process them.
I noticed that if I run this script, it works fine, but if I then Undo and try to run it again. I now get a Runtime error: Attempt to access deleted scene object
(
(LayerManager.current).nodes &theNodes
maxOps.cloneNodes theNodes cloneType:#instance actualNodeList:¤tObjs newNodes:&newObjs
select newObjs
)
Does the LayerManager not update after you undo?
Can you force it to update somehow?
My current workaround is to basically make a new array where I check for isValidNode on each node.
Solved! Go to Solution.