Hey everyone... ok i have an issue i'm trying to get past and not sure if maya will even let me do this...
Basically what i'm trying to do is to use a number of predetermined string arrays within a function that tests against EACH array and its contents. The arrays are specifically named to function ($list is an example of the array names). What i want to do is dynamically generate the $string name based on the eval command and have it actually dump $string and not $string so that i can use a stringArrayContains command. The code that i have below works fine and returns the proper name (aka $annoCommand when printed returns something like $one_phn) but it returns it as a string, and when i pass that to the ArrayContains function is simply returns 0 because the array i'm looking into doesn't contain "$one_phn" when it should be looking at $one_phn's prexisting array. If that makes sense.
string $list[] = {"one", "two", "three", "four", "five"};
for ($i = 0; $i < `size($list)`; $i++)
{
$annoCommand = ("global string $annoCurPhonem = \"$" + $list[$i] + "_phn\"");
eval($annoCommand);
print ($annoCommand + "\n");
}