Go to: Synopsis. Return value. Flags. Python examples.
annotate(
[objects]
, [point=[linear, linear, linear]], [text=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
annotate is undoable, NOT queryable, and NOT editable.
This command is used to create an annotation to be attached to the specified objects at the specified point.
| string |
| Long name (short name) | Argument types | Properties | ||
|---|---|---|---|---|
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) )