Go to: Synopsis. Return value. MEL examples.

Synopsis

int isSameObject(string $objectA, string $objectB)

This procedure returns true if $objectA and $objectB exist, are unique, and are the same object.

Return value

None

MEL examples

		//	Create a NURBS sphere.

		//

		string $createdNodes[] = `sphere -constructionHistory false`;
		string $sphere = $createdNodes[0];

		isSameObject($sphere, longNameOf($sphere));
		//	Result: 1 //


		isSameObject($sphere, "foo");
		//	Result: 0 //