int(x) does not work


#1

hi,

sqrt(2.564)

works (for example)

int(2.564)

does not.

why?

thanks,
payton


#2

where in fusion du you try to add this expression (custom tool, expression modifier, quick expression, script, …)?
which version of fusion?


#3

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)”


#4

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


#5

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


#6

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.