Cache

From PyMOLWiki
Revision as of 13:20, 17 December 2009 by Inchoate (talk | contribs) (Created page with 'Cache manages storage of precomputed results, such as molecular surfaces. = Usage = <source lang="python"> cache action [, scenes [, state ]] </source> where, the arguments…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Cache manages storage of precomputed results, such as molecular surfaces.

Usage

cache action [, scenes [, state ]]

where, the arguments are:

action

string: enable, disable, read_only, clear, or optimize

scenes

string: a space-separated list of scene names (default: )

state

integer: state index (default: -1)

Examples

cache enable
cache optimize
cache optimize, F1 F2 F5
</soruce>
 
= Notes =
"cache optimize" will iterate through the list of scenes provided (or all defined scenes), compute any missing surfaces, and store them in the cache for later reuse.
    
= API =
<source lang="python">
cmd.cache(string action, string scenes, int state, int quiet)