**[Jadwiga Kowalska]** *"the Math.floor(value) works when I add it - but what else do I need to write in the expression, so that it keeps my range from 0-7 and doesn't jump to >-1 or 8<?"*
`x = Math.floor(value);`

if (x > 7) x = 7

else if (x < 0) x = 0;

x;

This will limit the returned value to whole numbers between 0 and 7, inclusive.

The true value of the slider itself can actually be much larger or smaller (it ranges from -1,000,000 to +1,000,000), and it can be fractional -- as you'll see when you scrub it -- but it will only ever return a whole value from 0 to 7 when evaluated for other expressions like time-remapping.

Walter Soyka

Principal & Designer at

Keen Live
Motion Graphics, Widescreen Events, Presentation Design, and Consulting

RenderBreak Blog - What I'm thinking when my workstation's thinking

Creative Cow Forum Host: Live & Stage Events