Benny,

The only reliable way I know of to do this is to set up a script and 
have it dump images to a set of JPG files, then consolidate them into a 
movie. Something like the following. I'm just setting the background so 
I know when it is done. Note the "refresh" -- that's important (but a 
bug, I think).

load =1crn;

# http://chemapps.stolaf.edu/jmol/docs/misc/movie.spt
# sample movie creation using a script
# Bob Hanson [EMAIL PROTECTED]
# 6:13 PM 8/16/2007
#
# movie frame names are 0001, 0002, 0003, etc.
#
# After writing the frames, Windows movieMaker was used to create
# http://chemapps.stolaf.edu/jmol/docs/misc/1crn-x2.wmv (1.2 Gb)
# using "high resolution (large)" and 30 frames per second



name = "C:/temp/movie/frame0000.jpg";
nFrames = 50;
nDegrees = 1;
thisFrame = 0;
width = 640;
height = 480;

set zoomLarge false;
background white;

message loop;
thisFrame = thisFrame + 1;
fileName = name.replace("0000","" + ("0000" + thisFrame)[-4][0]);
rotate x @nDegrees;
refresh;
write image @width @height @fileName;
if (thisFrame < nFrames);goto loop;endif;
background black;


That give you any ideas?

Bob Hanson


Benny Chain wrote:

> I was wondering whether there is any easy way of taking a rotating 
> image from JMOL and making a series of stills from each image, other 
> than doing it one by one by hand ?
>
> I tried using Polyview instead but it didn’t seem to be nearly as 
> flexible in terms of colouring bits of the molecule, etc.
>
> Any suggestions would be gratefully received !
>
> Benny Chain
>
> Benjamin Chain
>
> Department of Immunology and Molecular Pathology Windeyer Institute of 
> Medical Sciences UCL, 46 Cleveland St.
>
> London W1T 4JF
>
> Fax 00 44 20 7679 9301
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get. 

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to