There is a maya MEL command that get the object`s name and store it in a variable?
i cant use string $objName = `ls -sl`;, it donst work for me in this case, because i want the name of the object, and the later can acces to that specific object later
and, how can i acces to all the bojects in a array? i mean:
-i have 4 objects selected.
-i execute : string $myObjs = `ls -sl`;
-then, i want to select all those objects: select $myObjs;
this give this error:
// Error: Syntax error //
so, how can i select all the objects in my array?