User Tools

Site Tools


Table of Contents


“save” writes content to a file.


save filename [, selection [, state [, format ]]]


filename = string: file path to be written

selection = string: atoms to save {default: (all)}

state = integer: state to save {default: -1 (current state)}


The file format is automatically chosen if the extesion is one of the supported output formats: pdb, pqr, mol, pkl, mmd, mmod, pov, png, pse, aln, obj, mtl, or wrl.

If the file format is not recognized, then a PDB file is written by default.

For molecular files and where applicable and supported:

  • if state = -1 (default), then only the current state is written.
  • if state = 0, then a multi-state output file is written.

See Also

command/save.txt · Last modified: 2013/08/19 21:01 (external edit)