This command takes a format string, where the format string contains format specifiers. The format specifiers have a number associated with them relating to which parameter they represent to allow for alternate ordering of the passed-in values for other languages by merely changing the format string
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
stringArg (s) | unicode | ||
|
Derived from mel command maya.cmds.format
Example:
import pymel.core as pm
# The mel script below returns the sentence
# "Display all lambert and blinn nodes."
#
pm.format( 'Display all ^1s and ^2s nodes.', stringArg=('lambert', 'blinn') )
# Result: u'Display all lambert and blinn nodes.' #