Annotation
v10.5 (2012)
The Annotation object is a specialized X3DObject used for inserting text annotation in a scene.
#
# How to add a simple text annotation to a model object.
#
from siutils import *
mymodel = si.ActiveSceneRoot.AddModel('MyModel')
annotation = mymodel.AddAnnotation('This model is annotated')
log( '%s is annotated with %s: "%s"' % (mymodel.Name, annotation.Name, annotation.Parameters('Message').Value), C.siComment )
|