[PyMOL] API for connect_mode

2020-03-21 Thread Marcelo Depólo
Hello there! I am running a python script within pymol and I am trying to set connect_mode to 1 by using: cmd.set(connect_mode,1) But pymol 1.8.4 does not recognize 'connect_mode' ("NameError: name 'connect_mode' is not defined") All I want is to save my .pdb file with the CONNECT section. Is t

Re: [PyMOL] API for connect_mode

2020-03-21 Thread Jake Verburgt
Ah I see. So that setting is for setting how bonds are interpreted when opening a PDB, the setting you are looking for is pdb_connect_all. Again, the setting needs to be sent in as a string, as with most things using the PyMol API. I made a simple script to make sure it works: from pymol import c