This command is used to create an annotation to be attached to the specified objects at the specified point.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
point (p) | float, float, float | ||
|
|||
text (tx) | unicode | ||
|
Derived from mel command maya.cmds.annotate
Example:
import pymel.core as pm
# The following specifies an annotation with text "my annotation text" on
# object mySphere, with the text being centered at point [5,6,3].
pm.sphere( name='mySphere' )
# Result: [nt.Transform(u'mySphere'), nt.MakeNurbSphere(u'makeNurbSphere1')] #
pm.annotate( 'mySphere', tx='my annotation text', p=(5, 6, 5) )
# Result: nt.AnnotationShape(u'annotationShape1') #