ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Is there a way to select all objects, except some, by name? For example, I want to select and delete all, except objects named "important_object_001", "important_object_002", "important_object_003". How should I do this?
(
objToSkipArr = #("important_object_001", "important_object_002", "important_object_003")
objsToDel = for o in objects where (findItem objToSkipArr o.name) == 0 collect o
delete objsToDel
)
Comments
.
Tools and Scripts for Autodesk 3dsMax
thanx! A little bit tricky
thanx! A little bit tricky for me, but I will try to understand )