extendCurve(
object
, [caching=boolean], [constructionHistory=boolean], [curveOnSurface=boolean], [distance=linear], [extendMethod=int], [extensionType=int], [inputPoint=[float, float, float]], [join=boolean], [name=string], [nodeState=int], [object=boolean], [pointX=linear], [pointY=linear], [pointZ=linear], [range=boolean], [removeMultipleKnots=boolean], [replaceOriginal=boolean], [start=int])
注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
extendCurve は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。
このコマンドはカーブを延長するか、または延長として新しいカーブを作成します。string[] | オブジェクト名とノード名 |
戻り値の型は照会モードでは照会フラグが基になります。
ロング ネーム(ショート ネーム) | 引数型 | プロパティ | ||
---|---|---|---|---|
inputPoint(ip)
|
[float, float, float]
|
![]() ![]() ![]() |
||
|
||||
pointX(px)
|
linear
|
![]() ![]() ![]() |
||
|
||||
pointY(py)
|
linear
|
![]() ![]() ![]() |
||
|
||||
pointZ(pz)
|
linear
|
![]() ![]() ![]() |
||
|
||||
extensionType(et)
|
int
|
![]() ![]() ![]() |
||
|
||||
extendMethod(em)
|
int
|
![]() ![]() ![]() |
||
|
||||
start(s)
|
int
|
![]() ![]() ![]() |
||
|
||||
join(jn)
|
boolean
|
![]() ![]() ![]() |
||
|
||||
distance(d)
|
linear
|
![]() ![]() ![]() |
||
|
||||
removeMultipleKnots(rmk)
|
boolean
|
![]() ![]() ![]() |
||
|
||||
高度なフラグ | ||||
caching(cch)
|
boolean
|
![]() ![]() ![]() |
||
|
||||
nodeState(nds)
|
int
|
![]() ![]() ![]() |
||
|
||||
一般的なフラグ | ||||
name(n)
|
string
|
![]() |
||
|
||||
constructionHistory(ch)
|
boolean
|
![]() |
||
|
||||
object(o)
|
boolean
|
![]() |
||
|
||||
replaceOriginal(rpo)
|
boolean
|
![]() |
||
|
||||
curveOnSurface(cos)
|
boolean
|
![]() |
||
|
||||
range(rn)
|
boolean
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
import maya.cmds as cmds # to extend the start of a curve with a line of distance 3 cmds.extendCurve( em=0, et=0, s=True, d=3.0 ) # to extend the end of a curve to a point cmds.extendCurve( em=2, s=False, ip=(1, 2, 3) )