pymel.core.modeling.textCurves¶
- textCurves(*args, **kwargs)¶
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.
Flags:
Long Name / Short Name Argument Types Properties caching / cch bool constructionHistory / ch bool deprecatedFontName / dfn bool font / f unicode The font to use. frozen / fzn bool 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. nodeState / nds int object / o bool Create the result, or just the dependency node. text / t unicode The string to create the curves for. Flag can have multiple arguments, passed either as a tuple or a list. 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'] #