Hi Jared and Vaheh -

Jared, you've put way more thought into this than I did :-) 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.

color blue, (obj)                    ;# only changes atom colors
color blue, obj                      ;# changes object and atom colors
cmd.set_object_color("obj", "blue")  ;# only changes object color

More complex situations like spectrum or per-representation colors can be 
neglected I think - I wouldn't know how to map those to a label color in a 
useful way.

As a first step, I can add internal_gui_name_color_mode=1 with object colors.

Cheers,
  Thomas


> On Oct 1, 2019, at 9:31 PM, Oganesyan, Vaheh 
> <vaheh.oganes...@astrazeneca.com> wrote:
> 
> Thomas and Jared,
> I’m not sure what will be the best solution, but as a start, color of the 
> object name may stay white if more than one color is used. Because you both 
> found this as an interesting idea allows me to ask similar question now 
> regarding labels. What if we can get label_color match the residue color. I 
> vaguely remember something like this discussed x number of years ago, but do 
> not remember why not. Could label become property of the object and not just 
> a property of a session?
>  
> Thank you.
>  
>  
> From: Jared Sampson <jared.samp...@columbia.edu> 
> Sent: Tuesday, October 1, 2019 2:45 PM
> To: Oganesyan, Vaheh <vaheh.oganes...@astrazeneca.com>; Thomas Holder 
> <thomas.hol...@schrodinger.com>
> Cc: pymol-users <pymol-users@lists.sourceforge.net>
> Subject: Re: [PyMOL] feature request
>  
> Hi Thomas and Vaheh - 
>  
> This is indeed an interesting idea.  I was thinking about this in terms of 
> implementation, and what the edge cases might be.  I wonder what would be the 
> mechanism for assigning the color if the object is not just a single color.  
> Would it be the color that is the dominant color of the object over all 
> (visible) representations?
>  
> What about a spectrum-colored object?  Would it be possible to color the 
> object name according to the colors in the spectrum (like the "spectrum" and 
> "rainbow" menu items already in the OpenGL menu)?
>  
> And what if there are different coloring schemes for the different 
> representations—would there be a hierarchy in terms of choosing , e.g. 
> surface > cartoon > stick > line, etc.?
>  
> I definitely like Thomas' idea of a global `internal_gui_name_color_mode` 
> setting to turn the menu object name coloring on/off.  (Perhaps different 
> modes could correspond to different ways of choosing the displayed color.)  
> It might also be useful to include object-level (or named-selection-level) 
> settings to override the global setting and specify the color or spectrum 
> directly, e.g.:
>  
>     set internal_gui_name_color, red, obj1
>     set internal_gui_name_spectrum, rainbow, obj1
>  
> Really interesting suggestion, Vaheh.  Looking forward to seeing how it might 
> work!
>  
> Cheers,
> Jared
>  
> On October 1, 2019 at 5:13:07 AM, Thomas Holder 
> (thomas.hol...@schrodinger.com) wrote:
> 
> Hi Vaheh,
> 
> I see that this can be useful, and it's fairly easy to implement. We can add 
> a new setting to turn this on and off, like "internal_gui_name_color_mode" 
> (or do you have a suggestion for a better name?).
> 
> Cheers,
> Thomas
> 
> 
> > On Sep 26, 2019, at 4:34 PM, Oganesyan, Vaheh 
> > <vaheh.oganes...@astrazeneca.com> wrote:
> > 
> > Thomas and other PyMOL developers,
> > 
> > It looks as if we color the object name similar to the object color it will 
> > be easier to distinguish which structure am I manipulating now. While 
> > models can be colored, the names of the models can't.
> > Anybody else think it might be helpful?
> > 
> > Thank you.
> > Regards,
> > 
> > Vaheh Oganesyan, Ph.D.
> > Scientist, Biologic Therapeutics
> > ____________________________________________________________________
> > AstraZeneca
> > R&D | Antibody Discovery and Protein Engineering
> > One Medimmune Way, Gaithersburg, MD 20878
> > T: 301-398-4640 M: 240-398-0046 
> > vaheh.oganes...@astrazeneca.com
> 
> --
> Thomas Holder
> PyMOL Principal Developer
> Schrödinger, Inc.
> 
> 
> 
> _______________________________________________
> PyMOL-users mailing list
> Archives: 
> https://clicktime.symantec.com/3UV6BFZxvbLGNd6ZnGajdMx6H2?u=http%3A%2F%2Fwww.mail-archive.com%2Fpymol-users%40lists.sourceforge.net
> Unsubscribe: 
> https://clicktime.symantec.com/3E9dosvp4WJ7Ck38g9VwWNV6H2?u=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fpymol%2Flists%2Fpymol-users%2Funsubscribe

--
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

Reply via email to