Mdo: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| No edit summary | No edit summary | ||
| Line 1: | Line 1: | ||
| ===DESCRIPTION=== | ===DESCRIPTION=== | ||
| '''mdo''' sets up a command to be executed upon entry into the specified frame of the movie.  These commands are usually created by a PyMOL utility program (such as util.mrock).  Command can actually contain several commands separated by semicolons ';' | |||
| ===USAGE=== | ===USAGE=== | ||
|   mdo frame : command | |||
| ===PYMOL API==== | ===PYMOL API==== | ||
| <source lang="python">   | |||
| cmd.mdo( int frame, string command ) | |||
| </source> | |||
| ===EXAMPLE=== | ===EXAMPLE=== | ||
|   // Creates a single frame movie involving a rotation about X and Y | |||
|   load test.pdb | |||
|  mset 1 | |||
|  mdo 1, turn x,5; turn y,5; | |||
|  mplay | |||
| ===NOTES=== | ===NOTES=== | ||
| The '''mset''' command must first be used to define the movie before "mdo" statements will have any effect.  Redefinition of the movie clears any existing mdo statements. | |||
| ===SEE ALSO=== | ===SEE ALSO=== | ||
| [[Mset]], [[Mplay]], [[Mstop]] | |||
| [[Category:Commands|mdo]] | [[Category:Commands|mdo]] | ||
Revision as of 15:01, 16 September 2005
DESCRIPTION
mdo sets up a command to be executed upon entry into the specified frame of the movie. These commands are usually created by a PyMOL utility program (such as util.mrock). Command can actually contain several commands separated by semicolons ';'
USAGE
mdo frame : command
PYMOL API=
 
cmd.mdo( int frame, string command )
EXAMPLE
// Creates a single frame movie involving a rotation about X and Y load test.pdb mset 1 mdo 1, turn x,5; turn y,5; mplay
NOTES
The mset command must first be used to define the movie before "mdo" statements will have any effect. Redefinition of the movie clears any existing mdo statements.