<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<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="moz-cite-prefix">On 9/12/2022 11:05 AM, Eric Pettersen
via Chimera-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:3E40E187-A5DA-48CF-8C9A-DF304EDF1259@cgl.ucsf.edu">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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="moz-txt-link-freetext" moz-do-not-send="true">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="" moz-do-not-send="true">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="" moz-do-not-send="true">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="moz-txt-link-freetext"
style="font-size: 12pt;" moz-do-not-send="true">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="moz-txt-link-freetext"
style="font-size: 12pt;" moz-do-not-send="true">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="moz-txt-link-freetext" moz-do-not-send="true">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>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Chimera-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Chimera-dev@cgl.ucsf.edu">Chimera-dev@cgl.ucsf.edu</a>
<a class="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>
</body>
</html>