
Okay, I gotcha, thank you Elaine ! Your devoted, Enrico Il giorno gio 8 feb 2024 alle ore 23:19 Elaine Meng <meng@cgl.ucsf.edu> ha scritto:
As you saw, rainbow does not give individual colors per atom in a residue. It only works for larger units: each residue in a chain, each chain in a model, etc.
The help page describes what it does; there is no "atoms" level for the rainbow command: <https://rbvi.ucsf.edu/chimerax/docs/user/commands/color.html#sequential>
You would just have to color the atoms individually yourself, such as by selecting and coloring over and over, or using the atom names in several "color" commands.
I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Department of Pharmaceutical Chemistry University of California, San Francisco
On Feb 7, 2024, at 1:27 AM, Enrico Martinez via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Dear ChimeraX users !
I am experimenting with some unusual coloring of the ligand atoms represented as balls and sticks.
the following commands color ligand atoms:
size ligand atomRadius +3.0 color ligand & C gold target a color ligand goldenrod target a
However, the following command does not work w/o any error message
rainbow ligand & C palette cornflowerblue:red:gold target a
I've also tried without any success.
style ligand ball ringFill off rainbow ligand & C palette cornflowerblue:red:gold target f
Any additional suggestions e.g. for the situation when I would like to alternate the colors for the ligand atoms in a regular fashion : e.g. the first atom white, the first black, the third white, the forth black etc ?
Many thanks in advance !
Cheers
Enrico