pymel.core.windows.annotate

static windows.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 ../../../_images/create.gif
 
Specifies the point about which the annotation text is to be centered.
text (tx) unicode ../../../_images/create.gif
 
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: u'annotationShape1 ' #

Previous topic

pymel.core.windows.animDisplay

Next topic

pymel.core.windows.artBuildPaintMenu

Core

Core Modules

Other Modules

This Page