svenip
01-27-2003, 09:10 AM
hi,
i have a problem with expressions.
in generall i wanna put a command into a for loop.
so my command normal would read :
object_1.translateX = $value[$i];
the problem is that i wanna react on each object : object_1,object_2 etc etc.
so in mel i would do this with a string
$cmd = ("object_"+$i+".translateX = "+$value[$i]+";");
eval $cmd;
but the expression doesn't seem to evaluate this cmd.
any idea ?
i have a problem with expressions.
in generall i wanna put a command into a for loop.
so my command normal would read :
object_1.translateX = $value[$i];
the problem is that i wanna react on each object : object_1,object_2 etc etc.
so in mel i would do this with a string
$cmd = ("object_"+$i+".translateX = "+$value[$i]+";");
eval $cmd;
but the expression doesn't seem to evaluate this cmd.
any idea ?
