
Hello, Would there be a way to run some chimerax scripts at the beginning of every ChimeraX session? In particular, I want three things: 1. Change the color of the background. set bgColor white 2. Change the mode of the mouse. ui mousemode right zoom 3. Open the shell. ui tool show Shell The most relevant documentation I found was: "Python files in the directory *~/chimerax_start* (where *~* is the user's home directory) are imported automatically at startup." I put ChimeraX scripts (not python files) in this folder, but no luck. Thank you. Best, Siyoung

Hi Siyoung, In the Preferences, there is a section called Startup. It allows directly entering ChimeraX commands to execute upon startup. If you prefer to have the commands in one or more separate files (which I also like to do), however, you can simply put the command to open each cxc file there, instead of all the individual commands directly. See Preferences: <https://rbvi.ucsf.edu/chimerax/docs/user/preferences.html> "Execute these commands at startup" option: <https://rbvi.ucsf.edu/chimerax/docs/user/preferences.html#startup> I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Department of Pharmaceutical Chemistry University of California, San Francisco
On Nov 20, 2023, at 11:05 AM, Siyoung Kim via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hello,
Would there be a way to run some chimerax scripts at the beginning of every ChimeraX session? In particular, I want three things:
1. Change the color of the background. set bgColor white
2. Change the mode of the mouse. ui mousemode right zoom
3. Open the shell. ui tool show Shell
The most relevant documentation I found was: "Python files in the directory ~/chimerax_start (where ~ is the user's home directory) are imported automatically at startup." I put ChimeraX scripts (not python files) in this folder, but no luck.
Thank you. Best, Siyoung

Hi Elaine, Thank you for the quick and helpful response! Best, Siyoung On Mon, Nov 20, 2023 at 2:12 PM Elaine Meng <meng@cgl.ucsf.edu> wrote:
Hi Siyoung, In the Preferences, there is a section called Startup. It allows directly entering ChimeraX commands to execute upon startup. If you prefer to have the commands in one or more separate files (which I also like to do), however, you can simply put the command to open each cxc file there, instead of all the individual commands directly.
See Preferences: <https://rbvi.ucsf.edu/chimerax/docs/user/preferences.html>
"Execute these commands at startup" option: <https://rbvi.ucsf.edu/chimerax/docs/user/preferences.html#startup>
I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Department of Pharmaceutical Chemistry University of California, San Francisco
On Nov 20, 2023, at 11:05 AM, Siyoung Kim via ChimeraX-users < chimerax-users@cgl.ucsf.edu> wrote:
Hello,
Would there be a way to run some chimerax scripts at the beginning of every ChimeraX session? In particular, I want three things:
1. Change the color of the background. set bgColor white
2. Change the mode of the mouse. ui mousemode right zoom
3. Open the shell. ui tool show Shell
The most relevant documentation I found was: "Python files in the directory ~/chimerax_start (where ~ is the user's home directory) are imported automatically at startup." I put ChimeraX scripts (not python files) in this folder, but no luck.
Thank you. Best, Siyoung
participants (2)
-
Elaine Meng
-
Siyoung Kim