How to change the default color for pseudobonds?

Greetings, Is there any way to change the default color for pseudo bonds (e.g. distance monitors)? I generally work on a white background, and the default of yellow is very difficult to see. Pretty much everything else in the Chimera GUI seems to be customizable, which I love, but I can’t see how to alter the default in this particular instance. Many thanks, Oliver.

Hi Oliver, Currently there isn't a way to set default color for distance monitors, which I agree would be useful. FindHBond does remember the last applied settings and the metal-complexation pseudobond default color can be set in the New Molecules category of preferences, but as far as I know the distance monitor color can only be changed after the fact. Besides using the Pseudobond Attributes panel or selecting the pseudobond and using the Selection Inspector, you can also change color, line style, linewidth with the setattr command. <http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/setattr.html> An additional inconvenience, however, is that to specify the pseudobonds in the command line, you have to specify some set of atoms that includes both their endpoints (extra atoms are OK, though). If you don't specify any atoms in the command, it will just change ALL the pseudobonds, which might not be what you wanted, e.g.: setattr p color green You could limit it by specifying atoms, e.g. setattr p color green :1-50 would get all pseudobonds with both endpoint atoms within residues 1-50. If changing them all is OK, you could put the first command above in a custom preset or as an alias, for example alias ^greenpb setattr p color green ... which would create an Aliases menu with "greenpb" and also allow you to use "greenpb" in the command line. The alias is automatically remembered in your preferences file. <http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/alias.html> Sorry about the suboptimality, Elaine ----- Elaine C. Meng, Ph.D. UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab Department of Pharmaceutical Chemistry University of California, San Francisco On Nov 5, 2013, at 4:45 PM, Oliver Clarke wrote:
Greetings, Is there any way to change the default color for pseudo bonds (e.g. distance monitors)? I generally work on a white background, and the default of yellow is very difficult to see. Pretty much everything else in the Chimera GUI seems to be customizable, which I love, but I can’t see how to alter the default in this particular instance. Many thanks, Oliver.

On Nov 5, 2013, at 4:45 PM, Oliver Clarke <olibclarke@gmail.com> wrote:
Greetings,
Is there any way to change the default color for pseudo bonds (e.g. distance monitors)?
I generally work on a white background, and the default of yellow is very difficult to see. Pretty much everything else in the Chimera GUI seems to be customizable, which I love, but I can’t see how to alter the default in this particular instance.
Yes, as Elaine said there probably should be an option for this. I will put a feature-request ticket in the Chimera Trac database for this. In the interim, in addition to Elaine's suggestions you could modify your Chimera to do this by editing <your Chimera>/share/StructMeasure/DistMonitor.py, line 61, and change: distanceMonitor = addMonitoredGroup('distance monitor') to: distanceMonitor = addMonitoredGroup('distance monitor', color="purple") to make distance monitors default to purple, Obviously you could use any other color name you wanted instead of purple. Note that on a Mac "<your Chimera>" is Chimera.app/Contents/Resources. --Eric Eric Pettersen UCSF Computer Graphics Lab http://www.cgl.ucsf.edu

Perfect, thank you both for the quick responses. Adjusting the default in the source worked perfectly. Cheers, Oliver. On Nov 6, 2013, at 1:36 PM, Eric Pettersen <pett@cgl.ucsf.edu> wrote:
On Nov 5, 2013, at 4:45 PM, Oliver Clarke <olibclarke@gmail.com> wrote:
Greetings,
Is there any way to change the default color for pseudo bonds (e.g. distance monitors)?
I generally work on a white background, and the default of yellow is very difficult to see. Pretty much everything else in the Chimera GUI seems to be customizable, which I love, but I can’t see how to alter the default in this particular instance.
Yes, as Elaine said there probably should be an option for this. I will put a feature-request ticket in the Chimera Trac database for this. In the interim, in addition to Elaine's suggestions you could modify your Chimera to do this by editing <your Chimera>/share/StructMeasure/DistMonitor.py, line 61, and change:
distanceMonitor = addMonitoredGroup('distance monitor')
to:
distanceMonitor = addMonitoredGroup('distance monitor', color="purple")
to make distance monitors default to purple, Obviously you could use any other color name you wanted instead of purple.
Note that on a Mac "<your Chimera>" is Chimera.app/Contents/Resources.
--Eric
Eric Pettersen UCSF Computer Graphics Lab http://www.cgl.ucsf.edu
participants (3)
-
Elaine Meng
-
Eric Pettersen
-
Oliver Clarke