Difference between revisions of "MSUD Task 9 Protocoll"
From Bioinformatikpedia
(Created page with "= JMol Script = i = 0; name = "frame0000.gif"; thisFrame = 0; width = 500; height = 500; while( i < 17) { frame next; refresh; thisFrame = thisFrame + 1; fil…") |
(→JMol Script) |
||
Line 1: | Line 1: | ||
= JMol Script = |
= JMol Script = |
||
+ | Find the angle your interested in, then load the script and save all the images in the dir you want them. |
||
− | |||
i = 0; |
i = 0; |
||
Line 7: | Line 7: | ||
width = 500; |
width = 500; |
||
height = 500; |
height = 500; |
||
+ | frame PAUSE; |
||
− | |||
while( i < 17) |
while( i < 17) |
||
{ |
{ |
||
Line 17: | Line 17: | ||
i = i + 1; |
i = i + 1; |
||
} |
} |
||
+ | |||
+ | Then just |
||
+ | convert -delay 50 *.gif animation.gif. |
Latest revision as of 21:12, 9 July 2012
JMol Script
Find the angle your interested in, then load the script and save all the images in the dir you want them.
i = 0; name = "frame0000.gif"; thisFrame = 0; width = 500; height = 500; frame PAUSE; while( i < 17) { frame next; refresh; thisFrame = thisFrame + 1; fileName = name.replace("0000","" + ("0000" + thisFrame)[-4][0]); write image @width @height @fileName; i = i + 1; }
Then just
convert -delay 50 *.gif animation.gif.