ジャンプ先: 概要. 戻り値. フラグ. Python 例.
extendCurve(
object
, [caching=boolean], [constructionHistory=boolean], [curveOnSurface=boolean], [distance=linear], [extendMethod=int], [extensionType=int], [inputPoint=[linear, linear, linear]], [join=boolean], [name=string], [noChanges=boolean], [nodeState=int], [object=boolean], [pointX=linear], [pointY=linear], [pointZ=linear], [range=boolean], [removeMultipleKnots=boolean], [replaceOriginal=boolean], [start=int])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
extendCurve は、取り消し可能、照会可能、および編集可能です。
このコマンドはカーブを延長するか、または延長として新しいカーブを作成します。| string[] | オブジェクト名とノード名 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
caching(cch)
|
boolean
|
|
||||||||||
|
||||||||||||
distance(d)
|
linear
|
|
||||||||||
|
||||||||||||
extendMethod(em)
|
int
|
|
||||||||||
|
||||||||||||
extensionType(et)
|
int
|
|
||||||||||
|
||||||||||||
inputPoint(ip)
|
[linear, linear, linear]
|
|
||||||||||
|
||||||||||||
join(jn)
|
boolean
|
|
||||||||||
|
||||||||||||
nodeState(nds)
|
int
|
|
||||||||||
|
||||||||||||
pointX(px)
|
linear
|
|
||||||||||
|
||||||||||||
pointY(py)
|
linear
|
|
||||||||||
|
||||||||||||
pointZ(pz)
|
linear
|
|
||||||||||
|
||||||||||||
removeMultipleKnots(rmk)
|
boolean
|
|
||||||||||
|
||||||||||||
start(s)
|
int
|
|
||||||||||
|
||||||||||||
| 共通のフラグ | ||||||||||||
constructionHistory(ch)
|
boolean
|
|
||||||||||
|
||||||||||||
curveOnSurface(cos)
|
boolean
|
|
||||||||||
|
||||||||||||
name(n)
|
string
|
|
||||||||||
|
||||||||||||
noChanges(nc)
|
boolean
|
|
||||||||||
|
||||||||||||
object(o)
|
boolean
|
|
||||||||||
|
||||||||||||
range(rn)
|
boolean
|
|
||||||||||
|
||||||||||||
replaceOriginal(rpo)
|
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) )