inaccurate color box in the Models panel

Hi all, I'm trying to color multiple models in the same color using the color column in the Models panel. When I use the eye-droppper in the macOS colors panel, which pops up when I click on the color box, and then sample the middle of another color box, it gives me a slightly different RGB value. For example, if I start out with (209,35,16), what I get is (206,31,0). Another way of saying it is, if I sample the same color box with the eye-dropper repeatedly, the color changes. I can start out with a bright red color and then repeatedly sample the same box over and over and the color becomes a dark brown. What's up with this? Is it the macOS doing something with the colors of the boxes? Related, is there a way of getting the current RGB color of a model (or all models)? Thanks in advance! Regards, Daniel När du har kontakt med oss på Uppsala universitet med e-post så innebär det att vi behandlar dina personuppgifter. För att läsa mer om hur vi gör det kan du läsa här: http://www.uu.se/om-uu/dataskydd-personuppgifter/ E-mailing Uppsala University means that we will process your personal data. For more information on how this is performed, please read here: http://www.uu.se/en/about-uu/data-protection-policy

Attached are three screen dumps to illustrate the problem. The left side shows the initial state. Then I used the eye-dropper and clicked on 1. This resulted in the middle state. The RBG values at arrow-heads 1 and 2 are both (209,35,16) when checking the screen grabs in Photoshop. The model has however changed to a slightly darker shade. When I click on arrow-head 2 (no eye-dropper, just plain left-clicking), I get the right state. The RBG value at arrow-head 3 in Photoshop is (193,8,4). This seems to be the same color as the model has. Regards, Daniel [cid:C4417376-60F5-43AF-B28C-5C48ABF5615F@icm.uu.se] On 2020-12-17, at 08:46, Daniel Larsson <daniel.larsson@icm.uu.se<mailto:daniel.larsson@icm.uu.se>> wrote: Hi all, I'm trying to color multiple models in the same color using the color column in the Models panel. When I use the eye-droppper in the macOS colors panel, which pops up when I click on the color box, and then sample the middle of another color box, it gives me a slightly different RGB value. For example, if I start out with (209,35,16), what I get is (206,31,0). Another way of saying it is, if I sample the same color box with the eye-dropper repeatedly, the color changes. I can start out with a bright red color and then repeatedly sample the same box over and over and the color becomes a dark brown. What's up with this? Is it the macOS doing something with the colors of the boxes? Related, is there a way of getting the current RGB color of a model (or all models)? Thanks in advance! Regards, Daniel N?r du har kontakt med oss p? Uppsala universitet med e-post s? inneb?r det att vi behandlar dina personuppgifter. F?r att l?sa mer om hur vi g?r det kan du l?sa h?r: http://www.uu.se/om-uu/dataskydd-personuppgifter/ E-mailing Uppsala University means that we will process your personal data. For more information on how this is performed, please read here: http://www.uu.se/en/about-uu/data-protection-policy

Hi Daniel, I don't know what's going on with the Mac colorsample eye-dropper. I can see that after I color a model and click the colorwell in the Model Panel to open the Mac color tool, that color tool does show the expected hex code for that color name, as given in this table: <https://rbvi.ucsf.edu/chimerax/docs/user/commands/colornames.html#builtin> However, even when I use the eye-dropper to click on the Mac color tool's own representation of the color (the color swatch immediately to the left of the eye-dropper icon), the color in that tool changes. So it's not necessarily a problem with the Model Panel colorwell, since doing a color sample even within the Mac dialog changes the color. I can only guess that the color sampling tool is imprecise. You could just copy the hex code in the dialog, not using color sampling, and use it in color commands on other models to make them the same color, e.g. color #5 #D12310 <https://rbvi.ucsf.edu/chimerax/docs/user/commands/colornames.html> I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Department of Pharmaceutical Chemistry University of California, San Francisco
On Dec 17, 2020, at 12:53 AM, Daniel Larsson <daniel.larsson@icm.uu.se> wrote:
Attached are three screen dumps to illustrate the problem. The left side shows the initial state. Then I used the eye-dropper and clicked on 1. This resulted in the middle state. The RBG values at arrow-heads 1 and 2 are both (209,35,16) when checking the screen grabs in Photoshop. The model has however changed to a slightly darker shade. When I click on arrow-head 2 (no eye-dropper, just plain left-clicking), I get the right state. The RBG value at arrow-head 3 in Photoshop is (193,8,4). This seems to be the same color as the model has.
Regards, Daniel
<chimerax-colors.png>
On 2020-12-17, at 08:46, Daniel Larsson <daniel.larsson@icm.uu.se> wrote:
Hi all,
I'm trying to color multiple models in the same color using the color column in the Models panel. When I use the eye-droppper in the macOS colors panel, which pops up when I click on the color box, and then sample the middle of another color box, it gives me a slightly different RGB value. For example, if I start out with (209,35,16), what I get is (206,31,0). Another way of saying it is, if I sample the same color box with the eye-dropper repeatedly, the color changes. I can start out with a bright red color and then repeatedly sample the same box over and over and the color becomes a dark brown. What's up with this? Is it the macOS doing something with the colors of the boxes?
Related, is there a way of getting the current RGB color of a model (or all models)?
Thanks in advance!
Regards, Daniel
När du har kontakt med oss på Uppsala universitet med e-post så innebär det att vi behandlar dina personuppgifter. För att läsa mer om hur vi gör det kan du läsa här: http://www.uu.se/om-uu/dataskydd-personuppgifter/
E-mailing Uppsala University means that we will process your personal data. For more information on how this is performed, please read here: http://www.uu.se/en/about-uu/data-protection-policy _______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users

Hi Elaine, Thanks for the feedback. Is it possible to get the RGB/HEX color of a model through the command line? I have more than a hundred models that I want to ”dump” and then ”reload” with a cxc script. Regard, Daniel
17 dec. 2020 kl. 17:01 skrev Elaine Meng <meng@cgl.ucsf.edu>:
Hi Daniel, I don't know what's going on with the Mac colorsample eye-dropper. I can see that after I color a model and click the colorwell in the Model Panel to open the Mac color tool, that color tool does show the expected hex code for that color name, as given in this table:
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/colornames.html#builtin>
However, even when I use the eye-dropper to click on the Mac color tool's own representation of the color (the color swatch immediately to the left of the eye-dropper icon), the color in that tool changes. So it's not necessarily a problem with the Model Panel colorwell, since doing a color sample even within the Mac dialog changes the color. I can only guess that the color sampling tool is imprecise.
You could just copy the hex code in the dialog, not using color sampling, and use it in color commands on other models to make them the same color, e.g.
color #5 #D12310
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/colornames.html>
I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Department of Pharmaceutical Chemistry University of California, San Francisco
On Dec 17, 2020, at 12:53 AM, Daniel Larsson <daniel.larsson@icm.uu.se> wrote:
Attached are three screen dumps to illustrate the problem. The left side shows the initial state. Then I used the eye-dropper and clicked on 1. This resulted in the middle state. The RBG values at arrow-heads 1 and 2 are both (209,35,16) when checking the screen grabs in Photoshop. The model has however changed to a slightly darker shade. When I click on arrow-head 2 (no eye-dropper, just plain left-clicking), I get the right state. The RBG value at arrow-head 3 in Photoshop is (193,8,4). This seems to be the same color as the model has.
Regards, Daniel
<chimerax-colors.png>
On 2020-12-17, at 08:46, Daniel Larsson <daniel.larsson@icm.uu.se> wrote:
Hi all,
I'm trying to color multiple models in the same color using the color column in the Models panel. When I use the eye-droppper in the macOS colors panel, which pops up when I click on the color box, and then sample the middle of another color box, it gives me a slightly different RGB value. For example, if I start out with (209,35,16), what I get is (206,31,0). Another way of saying it is, if I sample the same color box with the eye-dropper repeatedly, the color changes. I can start out with a bright red color and then repeatedly sample the same box over and over and the color becomes a dark brown. What's up with this? Is it the macOS doing something with the colors of the boxes?
Related, is there a way of getting the current RGB color of a model (or all models)?
Thanks in advance!
Regards, Daniel
När du har kontakt med oss på Uppsala universitet med e-post så innebär det att vi behandlar dina personuppgifter. För att läsa mer om hur vi gör det kan du läsa här: http://www.uu.se/om-uu/dataskydd-personuppgifter/
E-mailing Uppsala University means that we will process your personal data. For more information on how this is performed, please read here: http://www.uu.se/en/about-uu/data-protection-policy _______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users

Hi Daniel, You can use the command info models attribute color see "info" command: <https://rbvi.ucsf.edu/chimerax/docs/user/commands/info.html> ... to report in the Log the r,g,b,a values on the 0-255 scale. It is slightly more annoying to use that scale in a color command than the 1-100% values, but it would be something like color #5 rgba(135,206,235,255) ...as described in this page. <https://rbvi.ucsf.edu/chimerax/docs/user/commands/colornames.html> I hope this helps, Elaine
On Dec 17, 2020, at 8:20 AM, Daniel Larsson <daniel.larsson@icm.uu.se> wrote:
Hi Elaine,
Thanks for the feedback.
Is it possible to get the RGB/HEX color of a model through the command line? I have more than a hundred models that I want to ”dump” and then ”reload” with a cxc script.
Regard, Daniel
17 dec. 2020 kl. 17:01 skrev Elaine Meng <meng@cgl.ucsf.edu>:
Hi Daniel, I don't know what's going on with the Mac colorsample eye-dropper. I can see that after I color a model and click the colorwell in the Model Panel to open the Mac color tool, that color tool does show the expected hex code for that color name, as given in this table:
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/colornames.html#builtin>
However, even when I use the eye-dropper to click on the Mac color tool's own representation of the color (the color swatch immediately to the left of the eye-dropper icon), the color in that tool changes. So it's not necessarily a problem with the Model Panel colorwell, since doing a color sample even within the Mac dialog changes the color. I can only guess that the color sampling tool is imprecise.
You could just copy the hex code in the dialog, not using color sampling, and use it in color commands on other models to make them the same color, e.g.
color #5 #D12310
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/colornames.html>
I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Department of Pharmaceutical Chemistry University of California, San Francisco
On Dec 17, 2020, at 12:53 AM, Daniel Larsson <daniel.larsson@icm.uu.se> wrote:
Attached are three screen dumps to illustrate the problem. The left side shows the initial state. Then I used the eye-dropper and clicked on 1. This resulted in the middle state. The RBG values at arrow-heads 1 and 2 are both (209,35,16) when checking the screen grabs in Photoshop. The model has however changed to a slightly darker shade. When I click on arrow-head 2 (no eye-dropper, just plain left-clicking), I get the right state. The RBG value at arrow-head 3 in Photoshop is (193,8,4). This seems to be the same color as the model has.
Regards, Daniel
<chimerax-colors.png>
On 2020-12-17, at 08:46, Daniel Larsson <daniel.larsson@icm.uu.se> wrote:
Hi all,
I'm trying to color multiple models in the same color using the color column in the Models panel. When I use the eye-droppper in the macOS colors panel, which pops up when I click on the color box, and then sample the middle of another color box, it gives me a slightly different RGB value. For example, if I start out with (209,35,16), what I get is (206,31,0). Another way of saying it is, if I sample the same color box with the eye-dropper repeatedly, the color changes. I can start out with a bright red color and then repeatedly sample the same box over and over and the color becomes a dark brown. What's up with this? Is it the macOS doing something with the colors of the boxes?
Related, is there a way of getting the current RGB color of a model (or all models)?
Thanks in advance!
Regards, Daniel
När du har kontakt med oss på Uppsala universitet med e-post så innebär det att vi behandlar dina personuppgifter. För att läsa mer om hur vi gör det kan du läsa här: http://www.uu.se/om-uu/dataskydd-personuppgifter/
E-mailing Uppsala University means that we will process your personal data. For more information on how this is performed, please read here: http://www.uu.se/en/about-uu/data-protection-policy _______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
_______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users

Hi Daniel, It is pretty weird that the Mac color chooser eye dropper changes the color when clicked on the current color in the color chooser. But this bizarre (seems like a bug) behavior has nothing to do with ChimeraX. If you start an Apple application such as TextEdit on the Mac and press the color button and use the eye dropper in its color chooser (which is the same as the ChimeraX one, just the macOS standard color chooser) it exhibits the same erratic behavior. One think that causes the numbers to change a lot when using the eye dropper is if you set the color profile in the color chooser (under the color chooser settings gear icon) -- for instance when I change from Display P3 which seems to be the default profile in TextEdit to sRGB then use the eye dropper and there is a big change in RGB numbers. That appears to be because the eye dropper changes the color profile back to Display P3. Sometimes the RGB values change a lot and other times a little or not at all -- very strange. Tom
On Dec 17, 2020, at 12:53 AM, Daniel Larsson <daniel.larsson@icm.uu.se> wrote:
Attached are three screen dumps to illustrate the problem. The left side shows the initial state. Then I used the eye-dropper and clicked on 1. This resulted in the middle state. The RBG values at arrow-heads 1 and 2 are both (209,35,16) when checking the screen grabs in Photoshop. The model has however changed to a slightly darker shade. When I click on arrow-head 2 (no eye-dropper, just plain left-clicking), I get the right state. The RBG value at arrow-head 3 in Photoshop is (193,8,4). This seems to be the same color as the model has.
Regards, Daniel
<chimerax-colors.png>
On 2020-12-17, at 08:46, Daniel Larsson <daniel.larsson@icm.uu.se <mailto:daniel.larsson@icm.uu.se>> wrote:
Hi all,
I'm trying to color multiple models in the same color using the color column in the Models panel. When I use the eye-droppper in the macOS colors panel, which pops up when I click on the color box, and then sample the middle of another color box, it gives me a slightly different RGB value. For example, if I start out with (209,35,16), what I get is (206,31,0). Another way of saying it is, if I sample the same color box with the eye-dropper repeatedly, the color changes. I can start out with a bright red color and then repeatedly sample the same box over and over and the color becomes a dark brown. What's up with this? Is it the macOS doing something with the colors of the boxes?
Related, is there a way of getting the current RGB color of a model (or all models)?
Thanks in advance!
Regards, Daniel
När du har kontakt med oss på Uppsala universitet med e-post så innebär det att vi behandlar dina personuppgifter. För att läsa mer om hur vi gör det kan du läsa här: http://www.uu.se/om-uu/dataskydd-personuppgifter/
E-mailing Uppsala University means that we will process your personal data. For more information on how this is performed, please read here: http://www.uu.se/en/about-uu/data-protection-policy _______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
participants (3)
-
Daniel Larsson
-
Elaine Meng
-
Tom Goddard