ジャンプ先: 概要. 戻り値. フラグ. Python 例.
annotate(
[objects]
, [point=[linear, linear, linear]], [text=string])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
annotate は、取り消し可能、照会不可能、および編集不可能です。
このコマンドを使って、指定したポイントの指定したオブジェクトにアタッチする注釈を作成します。
point, text
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
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) )