I was trying to generate hbond analysis via nogui, by issuing "chimerax --nogui --script "myscript.cxc",
Executing: runscript myscript.cxc
Traceback (most recent call last):
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
code = compile(data, stream.name, 'exec')
File "myscript.cxc", line 4
hbonds sel saveFile /Users/visvaldas/temp00.hbonds restrict cross batch true
^
SyntaxError: invalid syntax
What I am doing wrong?
(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
hbonds sel saveFile /Users/visvaldas/temp00.hbonds color #fffb00 dashes 5 restrict cross reveal true retainCurrent true
from the GUI does not work either)
Best wishes,
Visvaldas