johnchuang
11-30-2007, 01:28 PM
Hi,guys.I'm new to mel.I want to use mel to accelerate my rigging process. I have a question about transfer array between procedures.
let's say:
//--------------------------------------------------------------------
//store all selected objects in array $temp;
string $temp[] = `ls -sl`;
.....
global proc a()
{
.......
//how can I use $temp[] here?
.......
}
global proc b()
{
.......
//and here?
.......
}
//--------------------------------------------------------------------
or :
//--------------------------------------------------------------------
global proc a()
{
.......
//store all selected objects in array $Atemp;
string $Atemp[] = `ls -sl`;
.......
}
global proc a()
{
.......
// Is that possible to use $Atemp[] here?
.......
}
//--------------------------------------------------------------------
any help will be greatly appreciated!!!
let's say:
//--------------------------------------------------------------------
//store all selected objects in array $temp;
string $temp[] = `ls -sl`;
.....
global proc a()
{
.......
//how can I use $temp[] here?
.......
}
global proc b()
{
.......
//and here?
.......
}
//--------------------------------------------------------------------
or :
//--------------------------------------------------------------------
global proc a()
{
.......
//store all selected objects in array $Atemp;
string $Atemp[] = `ls -sl`;
.......
}
global proc a()
{
.......
// Is that possible to use $Atemp[] here?
.......
}
//--------------------------------------------------------------------
any help will be greatly appreciated!!!
