if(`objExists $objName` == 0)
{
//doesn't exist
}
else
{
//does exist
}
maya automatically adds a number on the end to a non unique object in the same scope. Or it returns full path names to non-unique objects in different scopes.
A
Technical Director - Framestore
Currently working on: Your Highness
IMDB