Hi Jared and Vaheh - We've implemented two modes and pushed the change to the github repository.
set internal_gui_name_color_mode, set internal_gui_name_color_mode, 2 Mode 1 is color by first carbon color. We think this is the most relevant use case and what the user typically would expect. This only affects molecular objects of course, other object types will appear in the default color (white). Mode 2 is object color. It applies to all object types. I learned that the "C > by element > ..." menu options also update the object color with the same color that is applied to carbons. A neat way to transfer atom color to object color is with this command: iterate (name CA), cmd.set_object_color(model, color) Other selections are possible of course. Cheers, Thomas > On Oct 2, 2019, at 7:31 PM, Jared Sampson <jared.samp...@columbia.edu> wrote: > > Hi Thomas - > >> When I said it's easy to implement, I was only thinking of object color. >> Among the various cases you describe, the "dominant color" is probably the >> most important one, as it might not be obvious to the user that object color >> can be different from atom colors. > Indeed, I was among those for whom "it might not be obvious" that there are > separate object and atom colors! I had thought all coloring was done at the > atom level (as you show using the selection), and didn't realize there is a > separate object-level color, nor did I know about the `set_object_color` > command. > > Thanks for the explanation, Thomas! > > Cheers, > > Jared > -- Thomas Holder PyMOL Principal Developer Schrödinger, Inc. _______________________________________________ PyMOL-users mailing list Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net Unsubscribe: https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe