ジャンプ先: 概要. 戻り値. フラグ. Python 例.
annotate(
[objects]
, [point=[linear, linear, linear]], [text=string])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
annotate は、取り消し可能、照会不可能、および編集不可能です。
このコマンドを使って、指定したポイントの指定したオブジェクトにアタッチする注釈を作成します。
| string | 追加された注釈 |
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
point(p)
|
[linear, linear, linear]
|
|
||
|
||||
text(tx)
|
string
|
|
||
|
||||
import maya.cmds as cmds # The following specifies an annotation with text "my annotation text" on # object mySphere, with the text being centered at point [5,6,3]. cmds.sphere( name='mySphere' ) cmds.annotate( 'mySphere', tx='my annotation text', p=(5, 6, 5) )