How do I tell Maya to add "shape" to $object variable
string $objectShape = $object + "shape"; doesn't work.
Enclose the concatenation in parenthesis:
$objectShape = ( $object + "shape" );
--
Bryan Ewert
Maya error says that it can not convert data of type string[ ] to type string. Then when I run it second time around it says: illegal operation "+" on data type string [ ]. What is the work around?
Maybe you tried to do something like this?
string $object[] = ls -sl;
...
string $objectShape = $object[$i] + "shape";
If it's true, use index ($i) with the element of string array.