X3DObject.AddAnnotation

Description

Adds an Annotation object as a child of this X3DObject.

Scripting Syntax

oReturn = X3DObject.AddAnnotation( [Text], [Name] );

Return Value

Annotation

Parameters

Parameter Type Description
Text String Text annotation to add.
Name String Name of the new Annotation.

Examples

Python Example

#
# 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 )