Morph with Chimera: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 10: Line 10:


5.  There are plenty of tutorials and how to make a movie with PyMOL.  A simplistic way is to check the "Ray trace frames" and "Cache frame images" in movie menu, hit the play, wait for PyMOL to render all the images (it will eat cpu until it's done) button and the File->Save Movie As->PNG Images.  This will create the numbered sequence of PNG files.
5.  There are plenty of tutorials and how to make a movie with PyMOL.  A simplistic way is to check the "Ray trace frames" and "Cache frame images" in movie menu, hit the play, wait for PyMOL to render all the images (it will eat cpu until it's done) button and the File->Save Movie As->PNG Images.  This will create the numbered sequence of PNG files.
Alternatively, the following command
grep MODEL morph.pdb | sort -k2 -nr | sed -n 1p | awk '{for(i=1;i<=$2;i++) printf "set state, %d\nray 640,480\npng image%d.png\n",i,i;}' > pngmaker.pml
will create the pngmaker.pml which is the script file to run from pymol (after you loaded your morph.pdb and chose the presentation you want) to generate the sequence of 640x480 pixel ray-traced images.


6.  Make the movie file with the following command (but of course there are other more GUIsh ways to do this)
6.  Make the movie file with the following command (but of course there are other more GUIsh ways to do this)


''ffmpeg -qscale 5 -r 20 -b 9600 -i image%04d.png movie.mpg''
''ffmpeg -qscale 5 -r 20 -b 9600 -i image%04d.png movie.mpg''
== See also ==
http://www.cgl.ucsf.edu/chimera/tutorials/movies08/moviemaking.html
http://www.cgl.ucsf.edu/chimera/animations/animations.html - Check out the "Nuclear pores" movie.
1,328

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu