Go to: Synopsis. Return value. Flags. Python examples.
textCurves(
[string]
, [font=string], [name=string], [object=boolean], [text=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
textCurves is undoable, queryable, and editable.
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.
| string[] | Object name and node name |
In query mode, return type is based on queried flag.
| Long name (short name) | Argument types | Properties | ||
|---|---|---|---|---|
| Common flags | ||||
font(f)
|
string
|
|
||
|
||||
name(n)
|
string
|
|
||
|
||||
object(o)
|
boolean
|
|
||
|
||||
text(t)
|
string
|
|
||
|
||||
import maya.cmds as cmds # Create curves for text string "Maya" in the "Times-Roman" font: cmds.textCurves( f='Times-Roman', t='Maya' ) # Create curves for text "hello world" in the "Courier" font. # The "-n" flag specifies the name of the resulting transform # and shape. cmds.textCurves( n= 'first', f='Courier', t='hello world' )