is there a way to return only a single given element from an array? for example, if i know that
listRelatives -c -s object
is going to return only one element, it would make my life much simpler if i could catch that value in a non-array string.
i wrote this little helper function to allow you to do this
global proc string returnElem ( int $elemNum, string $array[])
{
return $array[$elemNum];
}
so that you can do this:
string $nonArray = returnElem 0 listRelatives -c -s object;
but i would rather do this using built-in mel syntax, if it is supported.
thanks,
chad