[chimerax-users] [EXT] Re: passing arguments to python scripts with command runscript
Philipp Milkereit
philipp.milkereit at vkl.uni-regensburg.de
Wed Apr 15 13:35:54 PDT 2020
Hi Eric,
thanks for your fast help,
works now as expected!
Philipp
Von: Eric Pettersen <pett at cgl.ucsf.edu>
Gesendet: Mittwoch, 15. April 2020 22:19
An: Philipp Milkereit <philipp.milkereit at vkl.uni-regensburg.de>
Cc: ChimeraX Users Help <chimerax-users at cgl.ucsf.edu>
Betreff: [EXT] Re: [chimerax-users] passing arguments to python scripts with command runscript
Hi Philipp,
In ChimeraX, the arguments will be in sys.argv — namely sys.argv[1:] since sys.argv[0] will be the name of your script file.
--Eric
Eric Pettersen
UCSF Computer Graphics Lab
On Apr 15, 2020, at 12:47 PM, Philipp Milkereit <philipp.milkereit at vkl.uni-regensburg.de <mailto:philipp.milkereit at vkl.uni-regensburg.de> > wrote:
Dear all,
in Chimera 1 it was possible to pass arguments with runscript to python scripts which could be read out there by arguments[index]. In ChimeraX I am not anymore able to read passed values using arguments[index] in python scripts called by runscript. Was that feature dismissed or was there a change in the naming?
Thanks for your help,
Philipp
_______________________________________________
ChimeraX-users mailing list
<mailto:ChimeraX-users at cgl.ucsf.edu> ChimeraX-users at cgl.ucsf.edu
Manage subscription:
<http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users> 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/20200415/3d33ba34/attachment.html>
More information about the ChimeraX-users
mailing list