pymel.core.windows.textCurves — PyMEL 1.0.7 documentation

pymel.core.windows.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  
   
deprecatedFontName / dfn bool  
   
font / f unicode ../../../_images/create.gif
 
The font to use
frozen / fzn bool  
   
name / n unicode ../../../_images/create.gif
 

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 have multiple arguments, passed either as a tuple or a list.

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 node
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

# 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.windows.text

Next topic

pymel.core.windows.textField

Core Modules

Type Modules

Other Modules

This Page