Fess
10-19-2005, 03:59 PM
Hello,
I need some help on how to read this code. I'm learn MEL but have not come across this syntax as yet.
This is taken from the avalanche.mb fluid file's expression that came with Maya.
$i & $zres are both integer variables.
float $v = $vscale * (float)$i/(float)($zres);
Set float variable $v to the value of $vscale multiplied by..............??????
Why is "float" in parentheses? What does this mean?
Some form of automatic variable type conversion?
Confused
Fess
I need some help on how to read this code. I'm learn MEL but have not come across this syntax as yet.
This is taken from the avalanche.mb fluid file's expression that came with Maya.
$i & $zres are both integer variables.
float $v = $vscale * (float)$i/(float)($zres);
Set float variable $v to the value of $vscale multiplied by..............??????
Why is "float" in parentheses? What does this mean?
Some form of automatic variable type conversion?
Confused
Fess
