VMD-L Mailing List
From: nicholas lee (nicholjl_at_usc.edu)
Date: Wed Mar 10 2010 - 16:41:45 CST
- Next message: Axel Kohlmeyer: "Re: Problems with "animate next" inside for-loops"
- Previous message: Florentina Tofoleanu: "Re: water molecules around proteins"
- Next in thread: Axel Kohlmeyer: "Re: Problems with "animate next" inside for-loops"
- Reply: Axel Kohlmeyer: "Re: Problems with "animate next" inside for-loops"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hello,
I would like to use scripts to record snap shots of a system as it evolves and rotates. I am having problems however with the "animate next" command. It works fine when I execute it manually at the Tkconsole command prompt, but it does not have the same effect when placed in a for-loop as shown below.
for {set i 0} {$i < 30} {incr i 1} {
set filename snap.[format "%04d" $frame].rgb
render snapshot $filename
incr frame
rotate x by 1
animate next
}
When I run the script above, "animate next" only advances the system once (as if it were outside of the loop), as opposed to 30 times (in accordance with the loop variable, i).
How could I resolve this? Thanks in advance,
Nicholas Jabari Lee
- Next message: Axel Kohlmeyer: "Re: Problems with "animate next" inside for-loops"
- Previous message: Florentina Tofoleanu: "Re: water molecules around proteins"
- Next in thread: Axel Kohlmeyer: "Re: Problems with "animate next" inside for-loops"
- Reply: Axel Kohlmeyer: "Re: Problems with "animate next" inside for-loops"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]