Dear Chimera developers,
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').
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...).
Could you guide us on how to approach it?
Hi Mercè,
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:
class BalloonHelp:
def __init__(self, info):
def oslIdent(self):
b.molecule = BalloonHelp("B's balloon help")
--Eric
Eric Pettersen
UCSF Computer Graphics Lab