Animation control
Binh Trong Do
dtbinh at LIVERPOOL.AC.UK
Sat Nov 26 10:20:05 EST 2005
Hi Dave and Eric,
Thank you very much for your help. It does work very well and has
solved my problem.
cheers
Binh
Dave Allured wrote:
> Thank you, Eric.
>
> Since Inquiring Minds Need To Know, I looked into how xanim.gs does the
> time delay. A shell command is used:
>
> '!sleep ' sec
>
> where sec is a script variable containing the desired delay in seconds.
> You could use either a constant or a variable in this command.
>
> Here's the source location for the whole script. The time delay is at
> the end of the big loop:
>
> ftp://grads.iges.org/grads/scripts/xanim.gs
>
> --Dave
>
> Eric DeWeaver wrote:
>
>> Hi Binh,
>>
>> Sometimes I use the pull command, but there's also a script called
>> xanim.gs in the grads script library (often found in, say,
>> /usr/local/grads/lib/scripts) which animates plots. You run
>> it from withing grads, and you can use -sec and -repeat options
>> to add a time delay in seconds and loop through the animation
>> several times. The usage notes are provided in the script file
>> itself.
>>
>> Best Wishes,
>>
>> Eric
>>
>>
>>
>> On Fri, 25 Nov 2005, Dave Allured wrote:
>>
>>
>>
>>> Binh,
>>>
>>> I don't know about an automatic timer in Grads. If there is not
>>> something built in, and you are using a Grads script, then you could
>>> certainly use the !shell-command and some external program to introduce
>>> a short time delay between frames.
>>>
>>> For this purpose, I like to have manual control using the keyboard.
>>> Use
>>> the pull command to read a dummy string between each frame. Then you
>>> just press the Enter key for each new frame. You can also check for
>>> certain keys such as "f" and "b" to go forward and backward in your
>>> animation.
>>>
>>> http://grads.iges.org/grads/gadoc/script.html#standardio
>>>
>>> --Dave A.
>>> CDC/PSD/NOAA/CIRES
>>>
>>> Binh Trong Do wrote:
>>>
>>>
>>>
>>>> Hi All,
>>>> Has anybody know how to control animation speed when using double
>>>> buffering? I would like to have some delay when swaping pictures that
>>>> help people have enough time to see what happening on the screen.
>>>> Thank you very much
>>>> Binh
>>>> Postgraduate research student
>>>> Department of Earth and Ocean Sciences
>>>> Liverpool University, UK
>>>>
>>>>
More information about the gradsusr
mailing list