Go to: Synopsis. Return value. MEL examples.

Synopsis

string longNameOf(string $object)

This procedure returns the long name of $object, or blank if $object does not exist or is not unique.

Return value

None

MEL examples

              //   Create a sphere.
                //
                string $spheres[] = `polySphere -name "sphere1"`;
                string $sphere = $spheres[0];

                longNameOf($sphere);
                //   Result: |sphere1 //