How to get names from an array and cast them to another array in mel and also replace part of a name in the process? Like substituting "_L" with "_R" in their names
Thank you
How to get names from an array and cast them to another array in mel and also replace part of a name in the process? Like substituting "_L" with "_R" in their names
Thank you
string $array_1[] = {"box_1_L", "box_2_L"};
string $array_2[] = {"sphere_1", "sphere_2"};
//append
appendStringArray($array_1, $array_2, (size($array_2)) );
print $array_1;
//rename in loop
for($i=0;$i<size($array_1);++$i){
$array_1[$i] = `substitute "_L" $array_1[$i] "_R"`;}
print $array_1;
If I get you right