<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div dir="ltr" data-setdir="false">Dear ChimeraX wizards,<br></div><br>I was trying to generate hbond analysis via nogui, by issuing "chimerax --nogui --script "myscript.cxc",<br><br>where in the script I put the following commands:<br><br><div><b>open /Users/visvaldas/temp0000.pdb</b></div><b>select /B<br>hbonds sel saveFile /Users/visvaldas/temp00.hbonds restrict cross batch true<br></b><div><b>quit</b></div><div><br></div><div>However, something is wrong with hbonds line since I am getting this error:</div><div>Executing: runscript myscript.cxc<br>Traceback (most recent call last):<br> File "/Applications/ChimeraX-1.4.app/Contents/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/chimerax/core/scripting.py", line 83, in open_python_script<br> code = compile(data, stream.name, 'exec')<br> File "myscript.cxc", line 4<br> hbonds sel saveFile /Users/visvaldas/temp00.hbonds restrict cross batch true<br> ^<br>SyntaxError: invalid syntax<br><br><div>What I am doing wrong? <br></div><div dir="ltr" data-setdir="false">(Also, when using GUI, the hbonds line was much longer, so I deleted those reveal, color, etc entities to make it more relevant to batch. (The "long" line <br></div><div><b>hbonds sel saveFile /Users/visvaldas/temp00.hbonds color #fffb00 dashes 5 restrict cross reveal true retainCurrent true</b></div><div>from the GUI does not work either)</div><div><br></div><div dir="ltr" data-setdir="false">Best wishes,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Visvaldas<br></div></div></div></body></html>