Thanks.
I really need help to understand Lua . Could you suggest me some website or tutorial ?
https://www.tutorialspoint.com/lua doesn't help me much.
Also I can't use variable inside expression despite all the examples on this forum.
I tried that but the variable isn't take in count ( even using colon before variable):
nbs=(25*n);
- Code: Select all
iif( time <= nbs ,min(time,40), 40)
I can't find a simply expression to do that (n = any number) :
"from 0 to 3s count from 0 to n then display n until end of animation"
I also tried that :
- Code: Select all
iif( time <= 25*3 ,floor(time/1.875) ,40)
Its count to 40 in 3s (25f/s), but it seems the value of "time" took (25*3) value .
Tutorial and documentation doesn't explain how "iif" statement define and use "time" constant.
Does exist a simply expression to do what I want ?
It could be very useful If I had just to change second and frames properties .
- Code: Select all
nb= n ; with (n = any number)
nbs=(25*n);
Is it possible to use a constant other than "time" to count from 0 to 40 ?
I'm thinking of something like this but the association of time with incrementation is missing :
- Code: Select all
nb= 3 ; nbs=(25*n);
while time <= nbs
for i=0 , 40 do
i++