[Chimera-users] Color marker and bonds

Tom Goddard goddard at sonic.net
Mon Nov 16 10:23:55 PST 2020


Hi Karine,

  There is no Chimera setting that sets atom color to match bond color.  The path in your attached session, each atom has two bonds, so I guess you would want it to have the average color of the bonds.  What code or commands colored the bonds?  If some custom code colored the bonds it could also easily color the atoms with a few more lines of code.

  Some Python code that you could open in Chimera could recolor the atoms to the average of the connected bonds it you have no way to edit the code that produced the original coloring to make it color the atoms.

	Tom


> On Nov 16, 2020, at 1:44 AM, karine.gouriet <karine.gouriet at univ-lille.fr> wrote:
> 
> Dear all
> 
> we want to correspond the marker color with the bond color. here the bond color is the angle of the scalar product of the bond line and another vector.
> 
> It is possible to change the marker color by the bond color and not the inverse ?
> 
> Thanks a lot for your help.
> 
> PS: I joint the file.py corresponding to the modification of rgba function we want.
> 
> -- 
> --------------------------------------
> Karine GOURIET
> Maître de Conférences
> tel : 03.20.43.43.98.
> Unité Matériaux et Transformation
> CNRS UMR 8207 - Université de Lille 1
> Bat C6, Bureau 213
> 59655 Villeneuve D'ascq
> http://umet.univ-lille1.fr/
> --------------------------------------
> 
> <file.py>_______________________________________________
> Chimera-users mailing list: Chimera-users at cgl.ucsf.edu
> Manage subscription: https://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users




More information about the Chimera-users mailing list