MSUD Task 9 Protocoll

From Bioinformatikpedia
Revision as of 21:12, 9 July 2012 by Wagnerr (talk | contribs) (JMol Script)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.