v7.0
ICENode にコメントを作成します。ICE コメントは ICE ビューのツールチップのようなものです。 基本的には単純なプロパティ エディタで、テキスト ボックスと、テキストや外観(カラー、サイズ変更など)を制御するためのフォーマット用コントロールが付属しています。
ヒント: コメント ノードを削除するには、DeleteObj コマンドを使用します。
oReturn = CreateICENodeComment( InputObj ); |
タイプ「ICETreeComment」の Operator
| パラメータ | タイプ | 説明 |
|---|---|---|
| InputObj | 選択リストまたは選択 |
コメントの作成対象ノード。 このタイプのコメントは常に単一のノードにアタッチされるので、特定のノードに複数のコメントを指定することはできません。
デフォルト値:引数が指定されていない場合は、現在の選択が使用されます。 |
'
' This example demonstrates how to create, modify and delete
' an ICE comment.
'
NewScene , false
CreatePrim "Cone", "MeshSurface"
' Create a simple ICE tree with an Add node
ApplyOp "ICETree", "cone", siNode, , , 0
AddICENode "AddNode", "cone.polymsh.ICETree"
' Add a comment to the Add node and log its class and type
set l_comment = CreateICENodeComment("cone.polymsh.ICETree.AddNode")
Application.LogMessage "Class: " & typename(l_comment)
Application.LogMessage "Type: " & l_comment.Type
' You can use the full string path...
SetValue "cone.polymsh.ICETree.AddNode.ICETreeComment.Text", "Adds the two vectors"
' ... or the return value after creating it
DeleteObj l_comment
' Expected results:
' INFO : Class: Operator
' INFO : Type: ICETreeComment |