
Hi, Elaine, Thanks. Yes I knew I can interactively look up colors but I need to get access to the colors in a simple .cmd script so that the 2d labels get the same font color as the corresponding model. Maybe this is not possible. What algorithm (mentioned in the doc that it exists) do you use to generate new model colors ? Thanks, Lothar -----Original Message----- From: Elaine Meng <meng@cgl.ucsf.edu> Sent: Sunday, March 12, 2023 2:01 PM To: Esser, Lothar (NIH/NCI) [E] <esserlo@mail.nih.gov> Cc: chimera-users@cgl.ucsf.edu Subject: [EXTERNAL] Re: [Chimera-users] Query colors? Hi Lothar, Interactively, you can look in the Model Panel and click the color square for that model, which will bring up the Color Editor containing the color. Or, if you select part of a model and look in the Selection Inspector molecule attributes, it will also show that color well. <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimera%2Fdocs%2FUsersGuide%2Fmodelpanel.html&data=05%7C01%7Cesserlo%40mail.nih.gov%7Cb6f335d3a560492cb75008db2323ceb6%7C14b77578977342d58507251ca2dc2b06%7C0%7C0%7C638142408946370389%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ucK06XW7D8swLRcn5OLEx3YW%2BTLWOFT6zOfqZP9TAdE%3D&reserved=0> <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimera%2Fdocs%2FUsersGuide%2Finspection.html&data=05%7C01%7Cesserlo%40mail.nih.gov%7Cb6f335d3a560492cb75008db2323ceb6%7C14b77578977342d58507251ca2dc2b06%7C0%7C0%7C638142408946370389%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=04%2B37LAKfnzETheA11sjLUD4j%2FBlG3IPT5AZZeSKp48%3D&reserved=0> Programmatically (if you need code somebody else would need to address that), it is the model attribute named "color"... but you can list them as R,G,B in the Reply Log with command: list models attribute color <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimera%2Fdocs%2FUsersGuide%2Fmidas%2Flisten.html%23listmodels&data=05%7C01%7Cesserlo%40mail.nih.gov%7Cb6f335d3a560492cb75008db2323ceb6%7C14b77578977342d58507251ca2dc2b06%7C0%7C0%7C638142408946370389%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=6MCNpwy20oW1vcclPI6IWraY4HjiRzKqwiQrX5J%2FTOk%3D&reserved=0> Also, the first 9 colors are listed in the description of the New Molecules preference "use new color for each model": <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimera%2Fdocs%2FUsersGuide%2Fpreferences.html%23New%2520Molecules&data=05%7C01%7Cesserlo%40mail.nih.gov%7Cb6f335d3a560492cb75008db2323ceb6%7C14b77578977342d58507251ca2dc2b06%7C0%7C0%7C638142408946370389%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=O3X9s7edpYPuvX3VzUET92d6Bg7kkGPUWC%2F8TKzmZGU%3D&reserved=0> I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Department of Pharmaceutical Chemistry University of California, San Francisco
On Mar 12, 2023, at 8:17 AM, Esser, Lothar (NIH/NCI) [E] via Chimera-users <chimera-users@cgl.ucsf.edu> wrote:
Hi,
in my current project I am reading about 50 pdb files. Chimera does a good job at assigning pleasant colors automatically and I would like to get access to the chosen colors to write 2dlabels with the same color. How do I get access to the molecular (ribbon color) ? It's probably trivial but well, I somehow could not figure this out. Thanks, Lothar
Dr. Lothar Esser National Institutes of Health 37 Convent Dr. Rm2122B Bethesda, MD 20892
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and are confident the content is safe.