This command extends a curve or creates a new curve as an extension
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
caching (cch) | bool | ||
|
|||
constructionHistory (ch) | bool | ||
|
|||
curveOnSurface (cos) | bool | ||
|
|||
distance (d) | float | ||
|
|||
extendMethod (em) | int | ||
|
|||
extensionType (et) | int | ||
|
|||
inputPoint (ip) | float, float, float | ||
|
|||
join (jn) | bool | ||
|
|||
name (n) | unicode | ||
|
|||
noChanges (nc) | bool | ||
nodeState (nds) | int | ||
|
|||
object (o) | bool | ||
|
|||
pointX (px) | float | ||
|
|||
pointY (py) | float | ||
|
|||
pointZ (pz) | float | ||
|
|||
range (rn) | bool | ||
|
|||
removeMultipleKnots (rmk) | bool | ||
|
|||
replaceOriginal (rpo) | bool | ||
|
|||
start (s) | int | ||
|
Derived from mel command maya.cmds.extendCurve
Example:
import pymel.core as pm
import maya.cmds as cmds
# to extend the start of a curve with a line of distance 3
pm.extendCurve( em=0, et=0, s=True, d=3.0 )
# to extend the end of a curve to a point
pm.extendCurve( em=2, s=False, ip=(1, 2, 3) )