pymel.core.windows.annotate¶
- annotate(*args, **kwargs)¶
This command is used to create an annotation to be attached to the specified objects at the specified point.
- Modifications:
- <lambda>(result)
Flags:
Long Name / Short Name Argument Types Properties point / p float, float, float Specifies the point about which the annotation text is to be centered. text / tx unicode Specifies the annotation text. Flag can have multiple arguments, passed either as a tuple or a list. 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') #