ScriptSpot

Forum topic · General Scripting

Select from a list with missing objects

By renndermonkey · 2016-08-08

Description

How can I make this simple line execute if random objects in the array happen to be missing from the scene?

select #($Sphere002, $Sphere001, $Sphere003, $Sphere004, Sphere005)

Comments (1)

Swordslayer · 2016-08-11

select (for obj in #($Sphere002, $Sphere001, $Sphere003, $Sphere004, $Sphere005) where isValidNode obj collect obj)