Little issue with the sleep command not working the way it I think it should.
I have this little script:
set i = 0
while ($i < 1)
set i = $i+ .01
opparm cross1 cross ($i)
sleep 30
echo $i
end
As a way to blend the output of a “v” value from a multitouch screen so that the starting position of the geo does not jump all over the place when you first touch the screen but rather gradually moves to the touch position over a set time. Currently that time is set to 3 seconds.
The problem I am having is that the sleep rather than pausing the while loop for 30 milliseconds and moving to the next, it is pausing for the entire 3 seconds and moving from 0 to 1 all at once.
Is this me not using the sleep command it the correct way or is this a problem with the way the command works within a loop.