ジャンプ先: 概要. 戻り値. フラグ. Python 例.

概要

annotate( [objects] , [point=[linear, linear, linear]], [text=string])

注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。

annotate は、取り消し可能、照会不可能、および編集不可能です。

このコマンドを使って、指定したポイントの指定したオブジェクトにアタッチする注釈を作成します。

戻り値

string

フラグ

point, text
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
point(p) [linear, linear, linear] create
注釈テキストの中心となるポイントを指定します。
text(tx) string create
注釈のテキストを指定します。

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。

Python 例

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) )