ジャンプ先: 概要. 戻り値. フラグ. Python 例.
extendSurface(
surface [surface]
, [caching=boolean], [constructionHistory=boolean], [distance=linear], [extendDirection=int], [extendMethod=int], [extendSide=int], [extensionType=int], [join=boolean], [name=string], [nodeState=int], [object=boolean], [replaceOriginal=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
extendSurface は、取り消し可能、照会可能、および編集可能です。
このコマンドは、サーフェスを延長するか、または延長として新しいサーフェスを作成します。| string[] | オブジェクト名とノード名 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
caching(cch)
|
boolean
|
|
||||||||||
|
||||||||||||
distance(d)
|
linear
|
|
||||||||||
|
||||||||||||
extendDirection(ed)
|
int
|
|
||||||||||
|
||||||||||||
extendMethod(em)
|
int
|
|
||||||||||
|
||||||||||||
extendSide(es)
|
int
|
|
||||||||||
|
||||||||||||
extensionType(et)
|
int
|
|
||||||||||
|
||||||||||||
join(jn)
|
boolean
|
|
||||||||||
|
||||||||||||
nodeState(nds)
|
int
|
|
||||||||||
|
||||||||||||
| 共通のフラグ | ||||||||||||
constructionHistory(ch)
|
boolean
|
|
||||||||||
|
||||||||||||
name(n)
|
string
|
|
||||||||||
|
||||||||||||
object(o)
|
boolean
|
|
||||||||||
|
||||||||||||
replaceOriginal(rpo)
|
boolean
|
|
||||||||||
|
||||||||||||
import maya.cmds as cmds
#Create a nurbs plane, then extend both sides of the plane by 10
cmds.nurbsPlane(n='plane1')
cmds.extendSurface('plane1', d=10, es=2)