jfjohnny5
04-12-2012, 03:20 PM
I'm a student that is just stumped by what seems a simple assignment. I simply need to write a script that will parse a given scene and delete anything that is NOT a box. I can accurately determine if something isn't a box with:
for i in $objects do
if classOf i!=box then
but as soon as I try to delete those objects by using:
delete i
I get a Unknown Exception Error. I have tried the help files for delete. I have also tried placing the objects in an array, iterating through the array and then deleting. I just can't see why this shouldn't work. Help please...
for i in $objects do
if classOf i!=box then
but as soon as I try to delete those objects by using:
delete i
I get a Unknown Exception Error. I have tried the help files for delete. I have also tried placing the objects in an array, iterating through the array and then deleting. I just can't see why this shouldn't work. Help please...
