[chimerax-users] how to run a python file or command file

Eric Pettersen pett at cgl.ucsf.edu
Mon Jul 15 10:20:00 PDT 2019


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 at 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 at 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 at cgl.ucsf.edu
> Manage subscription:
> http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20190715/3f62d2aa/attachment.html>


More information about the ChimeraX-users mailing list