Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#9700 closed enhancement (fixed)

Add info commands to report atom and residue colors in hex notation

Reported by: matzov.donna@… Owned by: Tom Goddard
Priority: moderate Milestone:
Component: Depiction Version:
Keywords: Cc: Elaine Meng, chimerax-programmers
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

From: Matzov Donna via ChimeraX-users <chimerax-users@…>
Subject: [chimerax-users] getting HEX code from molecule
Date: September 1, 2023 at 12:49:11 AM PDT
To: "chimerax-users@…" <chimerax-users@…>

Hello,

I was wondering if there's a command that would give me the HEX code of a particular atomspec.
Using the "pick from screen" option in the color editor is somewhat helpful samples the colors that are the results of shadows so I can't really the exact color.

Thanks,

Donna Matzov, PhD
Department of Structural Biology
Weizmann Institute of Science
The Shalev-Benami Lab

Change History (3)

comment:1 by Tom Goddard, 2 years ago

Cc: Elaine Meng chimerax-programmers added
Resolution: fixed
Status: assignedclosed

Done.

I added "info atomcolor" and "info rescolor" commands to report colors using hex codes. For example

> info rescolor /A:16
#1/A:16 color #d2b48c

> info atomcolor /A:16
#1/A:16@N color #3050f8
#1/A:16@CA color #d2b48c
#1/A:16@C color #d2b48c
#1/A:16@O color #ff0d0d
#1/A:16@CB color #d2b48c
#1/A:16@OG color #ff0d0d

comment:2 by Elaine Meng, 2 years ago

I assume "rescolor" means residue cartoon color and will only apply to biopolymer residues?  There is also a per-residue ring-fill color, but ring fill is not used that often.

comment:3 by Tom Goddard, 2 years ago

Yes rescolor reports cartoon color. All residues even non-polymers have a ribbon color that can be queried, although it is not used for non-polymers. I did not add a command to report ring color.

Note: See TracTickets for help on using tickets.