<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello Elaine,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you for encouraging me to look at the BILD format.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
In summary, this what I can do using command line instructions.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Here are the two things which I cannot do:<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks for your help!<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Stephen<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Elaine Meng <meng@cgl.ucsf.edu><br>
<b>Sent:</b> Thursday, July 30, 2020 12:29 PM<br>
<b>To:</b> Chin-Bow, Stephen <stephen.chin-bow@yale.edu><br>
<b>Cc:</b> chimera-users@cgl.ucsf.edu <chimera-users@cgl.ucsf.edu><br>
<b>Subject:</b> Re: [Chimera-users] Is there a way to determine the "screen" window coordinates (x, y) of an "atom-spec"</font>
<div> </div>
</div>
<div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">Hi Stephen,<br>
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>
<br>
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>
<br>
BILD format described here:<br>
<<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">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>
<br>
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>
<<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">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>
<br>
I hope this helps,<br>
Elaine<br>
-----<br>
Elaine C. Meng, Ph.D. <br>
UCSF Chimera(X) team<br>
Department of Pharmaceutical Chemistry<br>
University of California, San Francisco<br>
<br>
</div>
</span></font></div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText"><br>
> On Jul 30, 2020, at 8:58 AM, Chin-Bow, Stephen <stephen.chin-bow@yale.edu> wrote:<br>
> <br>
> Hello,<br>
> <br>
> 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>
> <br>
> 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>
> <br>
> I admit that I still do not understand the different coordinate systems used in Chimera.<br>
> <br>
> I have a question which can simply be answered using a ruler, but I am hoping there is another more elegant solution.<br>
> <br>
> "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>
> <br>
> After I can specify the windowsize<br>
> <br>
> 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>
> <br>
> Many thanks,<br>
> <br>
> Stephen<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>