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 ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Modifies the node caching mode. See the node documentation for more information.Note:For advanced users only.
constructionHistory (ch) bool  
   
font (f) unicode ../../../_images/create.gif
 
The font to use
name (n) unicode ../../../_images/create.gif
 
Name the resulting object
nodeState (nds) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Modifies the node state. See the node documentation for more information.Note:For advanced users only.
object (o) bool ../../../_images/create.gif
 

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 ../../../_images/create.gif
 
The string to create the curves for

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'] #

Previous topic

pymel.core.modeling.surface

Next topic

pymel.core.modeling.tolerance

Core

Core Modules

Other Modules

This Page