This command draws a message in the 3d view. The message is automatically erased at the next screen refresh.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
horizontalOffset (ho) | int | ||
If this flag is specified, the message will appear the specified distance (in pixels) to the right of the point. Otherwise, a default horizontal offset of 0 pixels is used. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
object (o) | unicode | ||
If an object is specified, then the message is drawn just above the object’s bounding-box centre point. If this flag is not specified, or the object is not found, then the message is centred in the current view. |
|||
selection (s) | bool | ||
|
|||
time (t) | float | ||
|
|||
uvTextureEditor (uve) | bool | ||
verticalOffset (vo) | int | ||
|
|||
viewport (vp) | bool | ||
Derived from mel command maya.cmds.headsUpMessage
Example:
import pymel.core as pm
pm.headsUpMessage( 'Ouch!' )
pm.headsUpMessage( 'This is Circle 1', object='circle1' )
pm.headsUpMessage( 'These objects are selected', selection=True )
pm.headsUpMessage( 'Text appears for minimum of 5 seconds.', time=5.0 )
pm.headsUpMessage( 'Text appears 0 pixels above point.', verticalOffset=20 )
pm.headsUpMessage( 'Text appears 20 pixels to the left of the point.', horizontalOffset=-20 )