View Full Version : int(x) does not work
payton 09-22-2009, 06:25 PM hi,
sqrt(2.564) works (for example)
int(2.564) does not.
why?
thanks,
payton
|
|
pingking
09-22-2009, 08:42 PM
where in fusion du you try to add this expression (custom tool, expression modifier, quick expression, script, ...)?
which version of fusion?
pingking
09-22-2009, 09:28 PM
now i took a look into fusion in both 5 and 6 int doesn't seem to exist in the simple expressions.
i believe this is because there is no such function in LUA. use the "ceil(x)" or "floor(x)"
payton
09-25-2009, 09:29 AM
thanks, that helped me a lot.
i tried to add it to a property by righclicking and choosing "expression".
dont know how this is called, im totally new to fusion.
weird thing: int(x) is documented at vfxpedia.
thanks,
payton
pingking
09-25-2009, 01:15 PM
there a differences in the right click -> expression (= simple expression) and the right click->modify with -> expression (expression modifier)
in the second case int(x) will work, i believe eyeon implementet some more functions for the expression modifier than the pure lua math libary has
CGTalk Moderation
09-25-2009, 01:15 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.