custom float variables in HScrtipt !

   2650   2   2
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
hi
how i can create a float variables in HScript ?
like Mel :
float $test = 10;
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
224 posts
Joined: June 2009
Offline
you just type

test = 10;

By default, hscript assumes all your variables are floats. If your are writing more than one line, then remember the squiggly brackets. For example:

{
x = point(“../some_node”, 0, “P”, 0);
y = 10;
return x/y;
}
Patrick
User Avatar
Staff
2540 posts
Joined: July 2005
Offline
When you use {} in a parameter, you are writing a custom expression function inside of hscript.

To see more examples of writing custom expressions in hscript, see the help. Search for custom expressions.
There's at least one school like the old school!
  • Quick Links