<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Lukas,<div class=""><br class=""></div><div class=""> Your errors are with the "2dlabel create" command which is not a documented command in ChimeraX. It is there for backwards compatibility with Chimera but best to use the ChimeraX 2dlabel syntax as described in the documentation since the undocumented form may be removed in the future.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><a href="https://www.cgl.ucsf.edu/chimerax/docs/user/commands/2dlabels.html" class="">https://www.cgl.ucsf.edu/chimerax/docs/user/commands/2dlabels.html</a></div><div class=""><br class=""></div><div class="">I have fixed the undocumented "2dlabel create" so if you try to create a second label with the same id name it gives a simple error message instead of a traceback, and I fixed the initial visibility. Neither of these bugs were present in the documented command.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Tom</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jun 26, 2020, at 10:02 AM, Tom Goddard <<a href="mailto:goddard@sonic.net" class="">goddard@sonic.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Hi Lukas,</div><div class=""><br class=""></div><div class=""> Thanks for the bug reports. When you got the traceback the error dialog should have had a "Report Bug" button on it. Or you can use ChimeraX menu Help / Report a Bug. That is the best way to report because it tells us what ChimeraX version, operating system, includes the traceback, and automatically puts it into our bug tracking system. For this bug I have made the bug report</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><a href="https://plato.cgl.ucsf.edu/trac/ChimeraX/ticket/3447" class="">https://plato.cgl.ucsf.edu/trac/ChimeraX/ticket/3447</a></div><div class=""><br class=""></div><div class="">Should be able to fix these problems today.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Tom</div><div class=""><br class=""></div><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Jun 26, 2020, at 2:19 AM, Lukas Kater wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi ChimeraX developers,<br class=""><br class="">Sorry about that previous email...<br class=""><br class="">Please let me know if there is a better way to report bugs.<br class=""><br class="">I have been trying to use 2dlabel to annotate some things in a movie. I have stumbled across a number of problems:<br class=""><br class="">1) creating 2 labels with the same name causes a crash (v1 quits and daily build just displays the log bellow under Fedora 32):<br class="">2dlab create ADP text "ADP state" color black size 26 bold true xpos 0.03 ypos 0.92 visibility false<br class="">2dlab create ADP text "ADP state" color black size 26 bold true xpos 0.03 ypos 0.92 visibility false<br class=""><br class="">Traceback (most recent call last):<br class=""> File "/opt/UCSF/ChimeraX-daily/lib/python3.7/site-packages/chimerax/cmd_line/tool.py", line 263, in execute<br class=""> cmd.run(cmd_text)<br class=""> File "/opt/UCSF/ChimeraX-daily/lib/python3.7/site-packages/chimerax/core/commands/cli.py", line 2805, in run<br class=""> result = ci.function(session, **kw_args)<br class=""> File "/opt/UCSF/ChimeraX-daily/lib/python3.7/site-packages/chimerax/label/label2d.py", line 88, in label_create<br class=""> return Label(session, name, **kw)<br class=""> File "/opt/UCSF/ChimeraX-daily/lib/python3.7/site-packages/chimerax/label/label2d.py", line 512, in __init__<br class=""> lb.add_label(self)<br class=""> File "/opt/UCSF/ChimeraX-daily/lib/python3.7/site-packages/chimerax/label/label2d.py", line 400, in add_label<br class=""> nl.delete()<br class=""> File "/opt/UCSF/ChimeraX-daily/lib/python3.7/site-packages/chimerax/label/label2d.py", line 530, in delete<br class=""> lm.delete_label(self)<br class=""> File "/opt/UCSF/ChimeraX-daily/lib/python3.7/site-packages/chimerax/label/label2d.py", line 417, in delete_label<br class=""> self._labels.remove(label)<br class="">ValueError: list.remove(x): x not in list<br class=""><br class="">ValueError: list.remove(x): x not in list<br class=""><br class="">File "/opt/UCSF/ChimeraX-daily/lib/python3.7/site-packages/chimerax/label/label2d.py", line 417, in delete_label<br class="">self._labels.remove(label)<br class=""><br class="">See log for complete Python traceback.<br class=""><br class=""><br class="">2) set bgColor hides labels<br class="">2dlab create ADP text "ADP state" color black size 26 bold true xpos 0.03 ypos 0.92 visibility false<br class=""># label is there (although visibility false?!)<br class="">set bgColor white<br class="">#label is gone<br class=""><br class="">3) labels created with visibility false are still displayed<br class="">see above. But I can change visibility with 2dlab change<br class=""><br class="">Thanks for any help!<br class=""><br class="">Lukas Kater<br class=""><br class=""><br class=""><br class=""><br class="">_______________________________________________<br class="">ChimeraX-users mailing list<br class=""><a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">Manage subscription:<br class=""><a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br class=""><br class=""></div></div></blockquote></div><br class=""></div>_______________________________________________<br class="">ChimeraX-users mailing list<br class=""><a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">Manage subscription:<br class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users<br class=""></div></blockquote></div><br class=""></div></body></html>