Basic deleting objects script
I'm very new to maxscript and am trying to write some very basic tools to speed up some of my repetitive tasks.
Ultimately i'm hoping to create a few scripts but the first one i'd like to create is a basic 'deleting a load of objects' script.
Ive worked out how to delete a set list of objects, but the problem comes when one of those objects is not in the scene. So i created an if statement which would get rid of roughly the right stuff if exactly the right stuff isn't there e.g:
if(delete#($Sphere02, $Sphere03, $Sphere04, $Sphere05, $Sphere06, $Sphere01)==undefined)then
But this is just a rough workaround - what I really want is to delete everything from a predefined list if is in the scene.
Any help would be gratefully appreciated,