“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: