The textCurves command creates NURBS curves from a text string using the specified font. A single letter can be made up of more than one NURBS curve. The number of curves per letter varies with the font.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
caching (cch) | bool | ||
|
|||
constructionHistory (ch) | bool | ||
font (f) | unicode | ||
|
|||
name (n) | unicode | ||
Sets the name of the newly-created node. If it contains namespace path, the new node will be created under the specified namespace; if the namespace does not exist, it will be created.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
nodeState (nds) | int | ||
|
|||
object (o) | bool | ||
|
|||
text (t) | unicode | ||
|
Derived from mel command maya.cmds.textCurves
Example:
import pymel.core as pm
# Create curves for text string "Maya" in the "Times-Roman" font:
pm.textCurves( f='Times-Roman', t='Maya' )
# Result: [u'Text_Maya_1', u'makeTextCurves1'] #
# Create curves for text "hello world" in the "Courier" font.
# The "-n" flag specifies the name of the resulting transform
# and shape.
pm.textCurves( n= 'first', f='Courier', t='hello world' )
# Result: [u'firstShape', u'makeTextCurves2'] #