Adds an Annotation object as a child of this X3DObject.
Annotation X3DObject.AddAnnotation( String in_Text, String in_name ); |
oReturn = X3DObject.AddAnnotation( [Text], [Name] ); |
Parameter | Type | Description |
---|---|---|
Text | String | Text annotation to add. |
Name | String | Name of the new Annotation. |
# # 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 ) |