<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 Stephen,<div class=""><br class=""></div><div class=""> There is nothing in Chimera that lists window pixel positions of an atom. It could probably be done with some Python code. But I don't grasp why you are trying to do this in such a hard way. If Chimera gave window positions in pixels and you divided by the window width and height in pixels and then typed a command for an arrow, that whole process would take at least 10 times longer than dragging the arrow with the mouse. Also the drag with mouse would produce a better result because it will be clearer if the tip is a small distance from the atom. Also to make the arrow not cross over other important atoms requires mouse placement of both the label and the arrow.</div><div class=""><br class=""></div><div class=""> You must have some reason why you want to do this in a very hard way but I cannot guess it.</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 Jul 30, 2020, at 10:40 AM, Chin-Bow, Stephen <<a href="mailto:stephen.chin-bow@yale.edu" class="">stephen.chin-bow@yale.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">Hello Elaine,</div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">Thank you for encouraging me to look at the BILD format.</div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">Unfortunately, the problem is that I want the arrows to end on (point towards) an "atom-spec", not away. I was able to get a 3D text comment to show, but I could not get the text to stay fixed in space (eg. always visible). Plus, per my first message, I do not understand the different coordinate systems and reference frames used by Chimera so my 3D text comment was far away from the BILD arrows.<br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">In summary, this what I can do using command line instructions.<br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">I understand how to set the center of rotation to a specific "atom-spec". I know how to display an "x' on the center of rotation. I know how to display, below the command line, the center of rotation coordinates "in the laboratory frame of reference".</div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">Here are the two things which I cannot do:<br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">1) After using "cofr" (without any parameters) I tried to highlight (and copy) the center of rotation "in the laboratory frame of reference". However, when I tried using control-C I was not able to copy the three coordinates.<br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">2) I could not find in the Chimera-users archive or in the command summary a description of how the different coordinate systems work or how they are related to the coordinates of elements in the main display window (containing the models).</div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">Is it clear why my questions are focusing on the coordinates of the current window? These coordinates are needed when I create the arrow "end" points (range 0.0 to 1.0) for "2D Labels".</div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">Thanks for your help!<br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">Stephen<br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div id="appendonsend" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""></div><hr tabindex="-1" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline-block; width: 668.359375px;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""></span><div id="divRplyFwdMsg" dir="ltr" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu" class="">meng@cgl.ucsf.edu</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Thursday, July 30, 2020 12:29 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Chin-Bow, Stephen <<a href="mailto:stephen.chin-bow@yale.edu" class="">stephen.chin-bow@yale.edu</a>><br class=""><b class="">Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:chimera-users@cgl.ucsf.edu" class="">chimera-users@cgl.ucsf.edu</a><span class="Apple-converted-space"> </span><<a href="mailto:chimera-users@cgl.ucsf.edu" class="">chimera-users@cgl.ucsf.edu</a>><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Chimera-users] Is there a way to determine the "screen" window coordinates (x, y) of an "atom-spec"</font><div class=""> </div></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div class="x_BodyFragment"><font size="2" class=""><span style="font-size: 11pt;" class=""><div class="x_PlainText">Hi Stephen,<br class="">One suggestion if you want to specify an arrow in the coordinate system of the structure is to create it as a 3D object instead of using 2D labels. In general, if using 2D labels you would position them interactively, not try to do some automatic calculation that figures out the position.<br class=""><br class="">For 3D objects: You can create a simple BILD-format file (plain text giving coordinates of objects), name the file something.bild, and then open it Chimera to show the objects. For example, opening the attached file XYZ-axes.bild in Chimera will show some 3D arrows.<br class=""><br class="">BILD format described here:<br class=""><<a href="https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimera%2Fdocs%2FUsersGuide%2Fbild.html&data=02%7C01%7Cstephen.chin-bow%40yale.edu%7C16a10c4c21d046fb123908d834a5bf65%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637317233768008069&sdata=6t5lgPVRJzd9pE6%2FkxmmMBDvo3jx6gwgR8Kg3d0olD4%3D&reserved=0" class="">https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimera%2Fdocs%2FUsersGuide%2Fbild.html&data=02%7C01%7Cstephen.chin-bow%40yale.edu%7C16a10c4c21d046fb123908d834a5bf65%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637317233768008069&sdata=6t5lgPVRJzd9pE6%2FkxmmMBDvo3jx6gwgR8Kg3d0olD4%3D&reserved=0</a>><br class=""><br class="">Or, since it is a separate model, you can just create the 3D object with any coordinates and then (after opening the BILD file), move the arrow manually to the position you want relative to the atomic structure. Moving models separately:<br class=""><<a href="https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimera%2Fdocs%2FUsersGuide%2Fmouse.html%23activedef&data=02%7C01%7Cstephen.chin-bow%40yale.edu%7C16a10c4c21d046fb123908d834a5bf65%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637317233768008069&sdata=m1k7e3y5VFiqVCtEuIizdDTZrbSTzUg1LK%2Fr591plbI%3D&reserved=0" class="">https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimera%2Fdocs%2FUsersGuide%2Fmouse.html%23activedef&data=02%7C01%7Cstephen.chin-bow%40yale.edu%7C16a10c4c21d046fb123908d834a5bf65%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637317233768008069&sdata=m1k7e3y5VFiqVCtEuIizdDTZrbSTzUg1LK%2Fr591plbI%3D&reserved=0</a>><br class=""><br class="">I hope this helps,<br class="">Elaine<br class="">-----<br class="">Elaine C. Meng, Ph.D. <span class="Apple-converted-space"> </span><br class="">UCSF Chimera(X) team<br class="">Department of Pharmaceutical Chemistry<br class="">University of California, San Francisco<br class=""><br class=""></div></span></font></div><div class="x_BodyFragment"><font size="2" class=""><span style="font-size: 11pt;" class=""><div class="x_PlainText"><br class="">> On Jul 30, 2020, at 8:58 AM, Chin-Bow, Stephen <<a href="mailto:stephen.chin-bow@yale.edu" class="">stephen.chin-bow@yale.edu</a>> wrote:<br class="">><span class="Apple-converted-space"> </span><br class="">> Hello,<br class="">><span class="Apple-converted-space"> </span><br class="">> It has been only a few weeks since I first started learning Chimera 1.14 (build 42094) on a Linux64 system with X11. I hope my experiences will help you improve both Chimera and ChimeraX. Earlier today, I reported a situation which results in an unexpected handling of a "divide by zero" bug.<br class="">><span class="Apple-converted-space"> </span><br class="">> I am using the experience to also learn some Python. I am sure there are better ways, but I edited your playmorph.py code to record an animation with a morphing sequence played in reverse.<br class="">><span class="Apple-converted-space"> </span><br class="">> I admit that I still do not understand the different coordinate systems used in Chimera.<br class="">><span class="Apple-converted-space"> </span><br class="">> I have a question which can simply be answered using a ruler, but I am hoping there is another more elegant solution.<br class="">><span class="Apple-converted-space"> </span><br class="">> "2D Labels" arrow ends are specified as a percentage of the screen width and screen height (range 0.0 to 1.0). I would like to draw an arrow whose end (x,y) is specified with precision.<br class="">><span class="Apple-converted-space"> </span><br class="">> After I can specify the windowsize<br class="">><span class="Apple-converted-space"> </span><br class="">> Is there a way to request the "window-screen" coordinates of a specific atom-spec? This is useful, because if I have set the windowsize then I can simply divide the coordinates by the window dimensions to get the desired end for the arrow.<br class="">><span class="Apple-converted-space"> </span><br class="">> Many thanks,<br class="">><span class="Apple-converted-space"> </span><br class="">> Stephen<br class=""><br class=""></div></span></font></div></div><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Chimera-users mailing list:<span class="Apple-converted-space"> </span></span><a href="mailto:Chimera-users@cgl.ucsf.edu" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">Chimera-users@cgl.ucsf.edu</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Manage subscription:<span class="Apple-converted-space"> </span></span><a href="https://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a></div></blockquote></div><br class=""></div></body></html>