Hi, I'm trying to do a for loop execution for the following commands in Expression Editor:
Assuming that i have following objects in scene:
ball_0
ball_1
ball_2
ball_3
ball_4
for($i = 0; $i < 5; $i++)
{
string $tmp = ("ball_" + $i );
$tmp.tx = $tmp.tx + 1;
}
I encounter syntax errors with these commands. There could be a way out using SetAttr, however I am trying to avoid using that in Expression Editor. Are there better ways to get around this problem??
Thanks
Zin