Great Eric, thanks.  Works as advertised.

 

Any chance of making this more straightforward in ChimeraX or future Chimera releases?

 

 

From: Eric Pettersen [mailto:pett@cgl.ucsf.edu]
Sent: Thursday, January 12, 2017 12:47 PM
To: chimera-users@cgl.ucsf.edu BB
Cc: Markus Heller
Subject: Re: [Chimera-users] Preference/default for H-bond representation

 

On Jan 12, 2017, at 12:28 PM, Elaine Meng <meng@cgl.ucsf.edu> wrote:

 

There must be some place in the code to change it to always dashed, but somebody else would have to advise on that…

 

To have all hydrogen bonds start out dashed, after line 991 of <your Chimera>/share/FindHBond/base.py (which should be “pbg.lineWidth = lineWidth”) add:

 

          pbg.lineType = chimera.Dash

 

with the same indentation as the preceding line.  On a Mac, “<your Chimera>” will be Chimera.app/Contents/Resources.

 

—Eric

 

          Eric Pettersen

          UCSF Computer Graphics Lab