passing arguments to python scripts with command runscript

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

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@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 ChimeraX-users@cgl.ucsf.edu <mailto:ChimeraX-users@cgl.ucsf.edu> Manage subscription: http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users <http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users>
participants (2)
-
Eric Pettersen
-
Philipp Milkereit