
Hi Fabian, There is no direct support for multiple keys, but it is pretty easy to “trick” ChimeraX into showing multiple keys. You would create your first key normally, getting it exactly the way you want it to look before creating the next key. You create the next key with the following Python code: from chimerax.color_key.model import ColorKeyModel m = ColorKeyModel(session) If the above was in a file ending in ‘.py’, you could just use the ‘open’ command to run it and create the key. I’ve attached a file with that code in it for convenience. Once you have created the key, then all operations that affects keys (like the ‘key’ command) will affect the new key and leave the original key as is. If you had the Color Key tool up, it will continue to show the old values. Just close it and re-open it to show the new values. --Eric Eric Pettersen UCSF Computer Graphics Lab 
On Feb 3, 2025, at 6:31 AM, Fabian Glaser via Chimera-users <chimera-users@cgl.ucsf.edu> wrote:
Hi,
We would be interested to add more than one key color bar in the same chimerax session. But we noticed the key command allows only one color key can be present at a time.
Is there a way to add more than one color key in the same session?
Thanks a lot,
Fabian
Fabian Glaser, PhD
Technion Centre for Structural Biology (TCSB), Computational Section, Head Technion Human Health Initiative (THHI) Technion - Israel Institute of Technology, Haifa, Israel fglaser@technion.ac.il +972 (0)48293701
_______________________________________________ Chimera-users mailing list -- chimera-users@cgl.ucsf.edu To unsubscribe send an email to chimera-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimera-users@cgl.ucsf.edu/