I have implemented a new Inventor node called SoLabel which allows to use the fonts that comes with Qt4. The behaviour of this node is the same as the original node SoText2.
To test this node you can use the python script below:
Code: Select all
from pivy import coin,sogui
s=coin.SoType.fromName("SoLabel").createInstance()
s.string="Hey, the label is working :)"
App.newDocument()
ano=coin.SoAnnotation()
ano.addChild(s)
Gui.ActiveDocument.ActiveView.getViewer().getSceneGraph().addChild(ano)
Cheers,
Werner