<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.apple-tab-span
{mso-style-name:apple-tab-span;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Hi Eric,<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>thanks for your fast help, <o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>works now as expected!<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Philipp<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b>Von:</b> Eric Pettersen <pett@cgl.ucsf.edu> <br><b>Gesendet:</b> Mittwoch, 15. April 2020 22:19<br><b>An:</b> Philipp Milkereit <philipp.milkereit@vkl.uni-regensburg.de><br><b>Cc:</b> ChimeraX Users Help <chimerax-users@cgl.ucsf.edu><br><b>Betreff:</b> [EXT] Re: [chimerax-users] passing arguments to python scripts with command runscript<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi Philipp,<o:p></o:p></p><div><p class=MsoNormal><span class=apple-tab-span> </span>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.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal>--Eric<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span class=apple-tab-span> </span>Eric Pettersen<o:p></o:p></p></div><div><p class=MsoNormal><span class=apple-tab-span> </span>UCSF Computer Graphics Lab<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal><br><br><o:p></o:p></p><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal>On Apr 15, 2020, at 12:47 PM, Philipp Milkereit <<a href="mailto:philipp.milkereit@vkl.uni-regensburg.de">philipp.milkereit@vkl.uni-regensburg.de</a>> wrote:<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>Dear all,<o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal>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?<o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal>Thanks for your help,<o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal>Philipp<span class=apple-converted-space> </span><o:p></o:p></p></div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica",sans-serif'>_______________________________________________<br>ChimeraX-users mailing list<br></span><a href="mailto:ChimeraX-users@cgl.ucsf.edu"><span style='font-size:9.0pt;font-family:"Helvetica",sans-serif'>ChimeraX-users@cgl.ucsf.edu</span></a><span style='font-size:9.0pt;font-family:"Helvetica",sans-serif'><br>Manage subscription:<br></span><a href="http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users"><span style='font-size:9.0pt;font-family:"Helvetica",sans-serif'>http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</span></a><o:p></o:p></p></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>