Hi Eric,

 

thanks for your fast help,

works now as expected!

 

Philipp

 

Von: Eric Pettersen <pett@cgl.ucsf.edu>
Gesendet: Mittwoch, 15. April 2020 22:19
An: Philipp Milkereit <philipp.milkereit@vkl.uni-regensburg.de>
Cc: ChimeraX Users Help <chimerax-users@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@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
Manage subscription:
http://plato.cgl.ucsf.edu/mailman/listinfo/chimerax-users