Hi everybody,
I'd like to calculate a value for a parameter using the following expression.
I am new to HScript (sry, no Python, YET!)
I wrote this in MEL. Would appreciate very much if you could just point me in the right direction.
One doubt I have , is say $i a variable reserved for a counter? Anyway, I was just trying to explicitly declare the counter because I need to start it at 2.
Many many thanks!
expression for ch(“projected_last_elevation”):
ch(“projected_last_elevation”) = ch(“first_blade_elevation”);
int $counter = 2; //the while starts at the second blade
while ($counter <= ch(“number_of_blades_goal”))
{
ch(“projected_last_elevation”) = ch(“projected_last_elevation”) + ch(“blade_elevation_offset”)*ch(“blade_elevation_gain”)^(ch(“blade_elevation_exponent_multiplier”)*$counter);
$counter += 1;
};
Basic expression syntax error
1895 0 2- surface123
- Member
- 3 posts
- Joined: 10月 2010
- Offline
-
- Quick Links