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 | ||
|
|||
nodeState (nds) | int | ||
|
|||
object (o) | bool | ||
Create the result shapes, or just the dependency nodeFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
text (t) | unicode | ||
|
Derived from mel command maya.cmds.textCurves
Example:
import pymel.core as pm
import maya.cmds as cmds
# 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'] #