Frames and "mset" Command

This section provides a quick introduction about 'frame', which represents a single image in a set of still images that generates moving pictures in PyMol.



What Is Frame in PyMol? A frame is a concept used in the movie making to represent a single image in a set of still images that generates moving pictures when played sequentially at a high speed.

Frame rate is the number of frames played in a second. The default frame rate in PyMol is 30 frames per second, or 30 f/s.

If you want create a movie in PyMol, you can use the "mset" command to define the entire set of frames based on states of structure objects.

mset frame_expression frame_expression ...

"frame_expression" is an expression to generate frames based state numbers. It has 3 formats:

For example, the following command defines a movie with 300 frames by repeating frame #1 100 times, #2 100 times, and #3 100 times. If the frame rate is 30 f/s, this movie will play for 9 seconds.

mset 1 x90 2 x90 3 x90

The following command defines a movie with 3 frames. Each frame is generated from a different state. If the frame rate is 30 f/s, this movie will play for 0.1 seconds.

mset 3 2 1



 

Table of Contents

 About This Book

 Introduction of Molecules

 SDF (Structure Data File)

 PyMol Installation

 PyMol GUI and CLI

 PyMol Selections

 PyMol Editing Functions

 PyMol Measurement Functions

 PyMol Movie Functions

 PyMol Python Integration

 PyMol Object Functions

 References

 Full Version in PDF/EPUB