<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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);" class="elementToProof">
Hello Eric and Greg,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
thank you for your responses.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I have followed your instructions for Chimera and it worked fine.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
In my group we still don't have experience with ChimeraX but we will start working on it soon.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thanks again for your help,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Mercè<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>De:</b> Greg Couch <gregc@cgl.ucsf.edu><br>
<b>Enviat el:</b> dilluns, 12 de setembre de 2022 20:23<br>
<b>Per a:</b> Chimera Dev <chimera-dev@cgl.ucsf.edu>; Eric Pettersen <pett@cgl.ucsf.edu>; Merce Alemany Chavarria <Merce.Alemany@uab.cat><br>
<b>Tema:</b> Re: [chimera-dev] popup balloons with custom information for vrml models</font>
<div> </div>
</div>
<div>
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="left" style="border:0; display:table; width:100%; table-layout:fixed; border-collapse:seperate; float:none">
<tbody>
<tr>
<td valign="middle" width="1px" bgcolor="#A6A6A6" cellpadding="7px 2px 7px 2px" style="padding:7px 2px 7px 2px; background-color:#A6A6A6">
</td>
<td valign="middle" width="100%" bgcolor="#EAEAEA" cellpadding="7px 5px 7px 15px" color="#212121" style="width:100%; background-color:#EAEAEA; padding:7px 5px 7px 15px; font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial,sans-serif; font-size:12px; font-weight:normal; color:#212121; text-align:left; word-wrap:break-word">
<div>No soleu rebre correu de gregc@cgl.ucsf.edu. <a href="https://aka.ms/LearnAboutSenderIdentification">
Descobriu per què aquest fet pot ser un problema</a></div>
</td>
<td valign="middle" align="left" width="75px" bgcolor="#EAEAEA" cellpadding="7px 5px 7px 5px" color="#212121" style="width:75px; background-color:#EAEAEA; padding:7px 5px 7px 5px; font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial,sans-serif; font-size:12px; font-weight:normal; color:#212121; text-align:left; word-wrap:break-word">
</td>
</tr>
</tbody>
</table>
<div>
<p>In ChimeraX, the .note command sets the balloon help for subsequent objects. Is that sufficient to do what you want?<br>
</p>
<p> -- Greg<br>
</p>
<div class="x_moz-cite-prefix">On 9/12/2022 11:05 AM, Eric Pettersen via Chimera-dev wrote:<br>
</div>
<blockquote type="cite">
<div dir="auto" class="" style="word-wrap:break-word; line-break:after-white-space">
<div>
<blockquote type="cite" class="">
<div class="">On Sep 12, 2022, at 6:28 AM, Merce Alemany Chavarria via Chimera-dev <<a href="mailto:chimera-dev@cgl.ucsf.edu" class="x_moz-txt-link-freetext">chimera-dev@cgl.ucsf.edu</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="x_elementToProof" 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; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<br class="x_Apple-interchange-newline">
Dear Chimera developers,</div>
<div class="x_elementToProof" 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; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="x_elementToProof" 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; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
We are developing an extension that renders vrml models using BILD commands. For the moment the vrml models have a name that shows up on Models Panel, but when the mouse is placed on top of them only the number of model is displayed (like '#11').<br class="">
</div>
<div class="x_elementToProof" 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; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
We would like to add to the models a popup balloon with customized information, in a similar way as information if shown for classical chimera objects (atoms, bonds...).<span class="x_Apple-converted-space"> </span><br class="">
</div>
<div class="x_elementToProof" 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; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
Could you guide us on how to approach it?<br class="">
</div>
</div>
</blockquote>
<div><br class="">
</div>
Hi Mercè,</div>
<div><span class="x_Apple-tab-span" style="white-space:pre"></span>So the first thing I'd like to say is that this is a whole lot easier in ChimeraX, and we actively support and work on ChimeraX, whereas Chimera is legacy software so you might want to consider
doing this in ChimeraX instead if possible. Nonetheless, there is an extremely kludgy way to do this in Chimera. It involves giving the BILD model a fake "molecule" attribute that in turn has an "oslIdent()" method that returns what you want to display in
the balloon help. So assuming your BILD model was in a variable named "b" and you wanted it to show the balloon help "B's balloon help", this would do it:</div>
<div><br class="">
</div>
<div>class BalloonHelp:</div>
<div><span class="x_Apple-tab-span" style="white-space:pre"></span>def __init__(self, info):</div>
<div><span class="x_Apple-tab-span" style="white-space:pre"></span><a href="http://self.info/" class="">self.info</a> = info</div>
<div><br class="">
</div>
<div><span class="x_Apple-tab-span" style="white-space:pre"></span>def oslIdent(self):</div>
<div><span class="x_Apple-tab-span" style="white-space:pre"></span>return <a href="http://self.info/" class="">
self.info</a></div>
<div><br class="">
</div>
<div>b.molecule = BalloonHelp("B's balloon help")</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="x_elementToProof" 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; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<span class="" style="font-size:12pt">I will use this e-mail also to let you know that the link to chimera's source code (</span><a href="https://plato.cgl.ucsf.edu/trac/chimera/browser/trunk" id="LPlnk426129" class="x_moz-txt-link-freetext" style="font-size:12pt">https://plato.cgl.ucsf.edu/trac/chimera/browser/trunk</a><span class="" style="font-size:12pt">)
found in this page</span> <a href="https://www.cgl.ucsf.edu/chimera/docs/sourcecode.html" id="LPlnk261966" class="x_moz-txt-link-freetext" style="font-size:12pt">https://www.cgl.ucsf.edu/chimera/docs/sourcecode.html</a> <span class="" style="font-size:12pt">returns
a 404 error. Is there an alternative way to check it out?</span></div>
</blockquote>
<br class="">
</div>
<div>I see no such link in that page. The source code checkout given in that page is "svn checkout
<a href="https://svn.cgl.ucsf.edu/svn/chimera/trunk" class="x_moz-txt-link-freetext">
https://svn.cgl.ucsf.edu/svn/chimera/trunk</a> chimera", which works fine for me.</div>
<div><br class="">
</div>
<div>
<div>--Eric</div>
<div><br class="">
</div>
<div><span class="x_Apple-tab-span" style="white-space:pre"></span>Eric Pettersen</div>
<div><span class="x_Apple-tab-span" style="white-space:pre"></span>UCSF Computer Graphics Lab</div>
<div><br class="">
</div>
</div>
<br class="">
</div>
<br>
<fieldset class="x_moz-mime-attachment-header"></fieldset>
<pre class="x_moz-quote-pre">_______________________________________________
Chimera-dev mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:Chimera-dev@cgl.ucsf.edu">Chimera-dev@cgl.ucsf.edu</a>
<a class="x_moz-txt-link-freetext" href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimera-dev">https://www.rbvi.ucsf.edu/mailman/listinfo/chimera-dev</a>
</pre>
</blockquote>
</div>
</div>
</body>
</html>