<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=MovieSchool_1</id>
	<title>MovieSchool 1 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=MovieSchool_1"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=MovieSchool_1&amp;action=history"/>
	<updated>2026-04-26T20:05:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=MovieSchool_1&amp;diff=7885&amp;oldid=prev</id>
		<title>Pyadmin: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=MovieSchool_1&amp;diff=7885&amp;oldid=prev"/>
		<updated>2014-03-28T02:16:20Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Movie Making ==&lt;br /&gt;
While PyMOL's capability to produce static images is quite powerful, there are some stories that are better told through movies, than static images alone.  This little page will provide the necessary ideas, links, code and examples for making movies in PyMOL.&lt;br /&gt;
&lt;br /&gt;
== Your First Movie ==&lt;br /&gt;
Movies can be very simple, for example, animating an NMR ensemble:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# Your first movie.&lt;br /&gt;
fetch 1nmr&lt;br /&gt;
mplay&lt;br /&gt;
&lt;br /&gt;
# to stop the movie when you're ready&lt;br /&gt;
# type 'mstop'.&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
What PyMOL did here was to [[fetch]] the file from the PDB and load it into an object with 20 states.  Somewhere between then and issuing [[mplay]] PyMOL created 20 frames for your object and assigned one state to each frame.  This created the animated effect as we scroll through the frames.&lt;br /&gt;
&lt;br /&gt;
== Movie Making for the Impatient ==&lt;br /&gt;
If you don't have time to or care to make more complex movies and want a movie ''now'' then read this section.  It mostly involves the GUI for making movies, so get your mouse ready.&lt;br /&gt;
&lt;br /&gt;
=== Simple Camera Motions ===&lt;br /&gt;
==== Simple 360 Scene Rotation ====&lt;br /&gt;
To make a movie that simply rotates around your scene 360 degrees, in the menu click on:&lt;br /&gt;
:: '''Movie-&amp;gt;Program-&amp;gt;Camera-&amp;gt;X-Roll-&amp;gt;N Seconds'''&lt;br /&gt;
for an N-second movie rolling over the X-axis.  Chose &lt;br /&gt;
:: '''Movie-&amp;gt;Program-&amp;gt;Camera-&amp;gt;Y-Roll-&amp;gt;N Seconds'''&lt;br /&gt;
for the Y-axis roll.&lt;br /&gt;
&lt;br /&gt;
Done!  Press '''play'''.&lt;br /&gt;
&lt;br /&gt;
==== Simple 30, 60, 90, 120, 180, Scene Rocking ====&lt;br /&gt;
This will show up to a 30, 60, 90, 120 or 180 rocking 'wedge' of the scene.  If you don't want to rotate all the way around, use this.&lt;br /&gt;
:: '''Movie-&amp;gt;Program-&amp;gt;Camera-&amp;gt;X-Rock-&amp;gt;X-Degrees over N-Seconds'''&lt;br /&gt;
&lt;br /&gt;
Done!  Press '''play'''.&lt;br /&gt;
&lt;br /&gt;
==== Nutate ====&lt;br /&gt;
Nutating is like a wiggle-rock; try it and see.&lt;br /&gt;
:: '''Movie-&amp;gt;Program-&amp;gt;Camera-&amp;gt;X-Rock-&amp;gt;X-Degrees over N-Seconds'''&lt;br /&gt;
&lt;br /&gt;
Done!  Press '''play'''.&lt;br /&gt;
&lt;br /&gt;
==== Zooming Around an Object ====&lt;br /&gt;
This is also known as camera movement.  Let's make a simple program that just zooms in and out on a some atom.&lt;br /&gt;
:: '''Build-&amp;gt;Residue-&amp;gt;Tryptophan'''&lt;br /&gt;
:: '''Scene-&amp;gt;Store-&amp;gt;F1'''&lt;br /&gt;
:: ''Click any atom and zoom on it''&lt;br /&gt;
:: '''Scene-Store-&amp;gt;F2'''&lt;br /&gt;
:: '''Movie-&amp;gt;Program-&amp;gt;Scene Loop-&amp;gt;''' and if you want to nutate while at the scene choose '''Nutate''' otherwise choose '''Y-Rock'''.&lt;br /&gt;
&lt;br /&gt;
Done!  Press '''play'''.&lt;br /&gt;
&lt;br /&gt;
* ''Hint'': Make multiple scenes, making sure to store each one.  Then use the Scene Loop to automatically program a movie for you!&lt;br /&gt;
&lt;br /&gt;
==== Real-world Example ====&lt;br /&gt;
First load the tutorial PDB:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
load $TUT/1hpv.pdb&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
:: '''Action-&amp;gt;Preset-&amp;gt;Technical''' (on the object in the viewer gui)&lt;br /&gt;
:: '''Scene-&amp;gt;Store-&amp;gt;F1'''&lt;br /&gt;
:: Type ''zoom i. 200'' to zoom on the ligand&lt;br /&gt;
:: '''Scene-&amp;gt;Store-&amp;gt;F2'''&lt;br /&gt;
:: '''Movie-&amp;gt;Program-&amp;gt;Scene Loop-&amp;gt;Y-Rock-&amp;gt;4 Seconds Each'''&lt;br /&gt;
&lt;br /&gt;
Done!  Press '''play'''.&lt;br /&gt;
&lt;br /&gt;
[[MovieSchool| &amp;amp;larr; MovieSchool Home]] [[MovieSchool_2| Next Lesson &amp;amp;rarr;]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Movies]]&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>Pyadmin</name></author>
	</entry>
</feed>