<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><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="">chimera-dev@cgl.ucsf.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;"><br class="Apple-interchange-newline">Dear Chimera developers,</div><div class="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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;"><br class=""></div><div class="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; -webkit-text-stroke-width: 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="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; -webkit-text-stroke-width: 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="Apple-converted-space"> </span><br class=""></div><div class="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; -webkit-text-stroke-width: 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="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="Apple-tab-span" style="white-space:pre"> </span>def __init__(self, info):</div><div><span class="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="Apple-tab-span" style="white-space:pre"> </span>def oslIdent(self):</div><div><span class="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="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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;"><span style="font-size: 12pt;" class="">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="" style="font-size: 12pt;">https://plato.cgl.ucsf.edu/trac/chimera/browser/trunk</a><span style="font-size: 12pt;" class="">) found in this page</span> <a href="https://www.cgl.ucsf.edu/chimera/docs/sourcecode.html" id="LPlnk261966" class="" style="font-size: 12pt;">https://www.cgl.ucsf.edu/chimera/docs/sourcecode.html</a> <span style="font-size: 12pt;" class="">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="">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="Apple-tab-span" style="white-space:pre"> </span>Eric Pettersen</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>UCSF Computer Graphics Lab</div><div><br class=""></div></div><br class=""></div></body></html>