この X3DObject の子として、アノテーション オブジェクトを追加します。
oReturn = X3DObject.AddAnnotation( [Text], [Name] ); |
| パラメータ | タイプ | 詳細 |
|---|---|---|
| Text | String | 追加するテキスト アノテーションです。 |
| Name | String | 新しい 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 )
|