Also, if the script needs arguments you can use the ‘runscript’ command, e.g.:

runscript “/path/to/python_script.py arg1 arg2”

—Eric

Eric Pettersen
UCSF Computer Graphics Lab



On Jul 15, 2019, at 9:58 AM, Elaine Meng <meng@cgl.ucsf.edu> wrote:

Hi James,
In both Chimera and ChimeraX you can just open python files or command script files with the “open” command (or menu: File.. Open). Opening the file executes the script.

<http://www.rbvi.ucsf.edu/chimerax/docs/user/commands/open.html#formats>

Elaine
-----
Elaine C. Meng, Ph.D.
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco

On Jul 15, 2019, at 2:55 AM, James Starlight <jmsstarlight@gmail.com> wrote:

P.S. here is an additional question about chimeraX

as I have found it is possible to execute python scrips directly in chimera-X
https://www.cgl.ucsf.edu/chimerax/docs/devel/core/scripting.html
what is the syntaxis for command line ? (e.g. load, like in Chimera,
does not work here).



_______________________________________________
ChimeraX-users mailing list
ChimeraX-users@cgl.ucsf.edu
Manage subscription:
http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users