Nested string arrays in MEL


#1

Hi Guys,
Need a little help tying to twire a project creator tool in MEL

I know maya does not support nested arrays a.k.a 2D arrays how would i accomplish some thing like this instead of giving unique array id to every single line

string $DS[];
//Incoming files
$DS[1][1] = (“io\incoming”);
$DS[1][2] = (“io\outgoing”) ;
//Assets
$DS[2][1] = (“assets\Characters”);
$DS[2][2] = (“assets\Props”);
$DS[2][3] = (“assets\Vehicles”);

etc etc…

What i am trying to do is automate creation of directory sturcture
using
sysFile -makeDir ($prjdrv + $PRJ + “\” + $DS[1][1]);

Any help would be appericated… Thanks in advance

Sajeel


#2

Why not use python ?


#3

Just use python it allows nested collections and defining your own named types


#4

thanks guys
will try and look into python… :slight_smile: