Go to: Synopsis. Return value. Related. MEL examples.
objExists
string
objExists is undoable, NOT queryable, and NOT editable.
This command simply returns true or false depending on whether an object with the given name exists.boolean |
// Select an object if and only if it exists. // Print a warning if it does not exist. if( `objExists surface1` ) { select surface1; } else { warning("No surface exists"); }