ジャンプ先: 概要. 戻り値. フラグ. Python 例.
nurbsSquare([caching=boolean], [center=[linear, linear, linear]], [centerX=linear], [centerY=linear], [centerZ=linear], [constructionHistory=boolean], [degree=int], [name=string], [nodeState=int], [normal=[linear, linear, linear]], [normalX=linear], [normalY=linear], [normalZ=linear], [object=boolean], [sideLength1=linear], [sideLength2=linear], [spansPerSide=int])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
nurbsSquare は、取り消し可能、照会可能、および編集可能です。
nurbsSquare コマンドは、四角形を作成します。| string[] | オブジェクト名とノード名 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
caching(cch)
|
boolean
|
|
||||||||||
|
||||||||||||
center(c)
|
[linear, linear, linear]
|
|
||||||||||
|
||||||||||||
centerX(cx)
|
linear
|
|
||||||||||
|
||||||||||||
centerY(cy)
|
linear
|
|
||||||||||
|
||||||||||||
centerZ(cz)
|
linear
|
|
||||||||||
|
||||||||||||
degree(d)
|
int
|
|
||||||||||
|
||||||||||||
nodeState(nds)
|
int
|
|
||||||||||
|
||||||||||||
normal(nr)
|
[linear, linear, linear]
|
|
||||||||||
|
||||||||||||
normalX(nrx)
|
linear
|
|
||||||||||
|
||||||||||||
normalY(nry)
|
linear
|
|
||||||||||
|
||||||||||||
normalZ(nrz)
|
linear
|
|
||||||||||
|
||||||||||||
sideLength1(sl1)
|
linear
|
|
||||||||||
|
||||||||||||
sideLength2(sl2)
|
linear
|
|
||||||||||
|
||||||||||||
spansPerSide(sps)
|
int
|
|
||||||||||
|
||||||||||||
| 共通のフラグ | ||||||||||||
constructionHistory(ch)
|
boolean
|
|
||||||||||
|
||||||||||||
name(n)
|
string
|
|
||||||||||
|
||||||||||||
object(o)
|
boolean
|
|
||||||||||
|
||||||||||||
import maya.cmds as cmds # create degree 1 square with side length 2, center (0,0,0) on the # x-y plane cmds.nurbsSquare( nr=(0, 0, 1), d=1, c=(0, 0, 0), sl1=2, sl2=2 ) # create degree 2 rectangle with length 2,4 at origin on the x-y plane cmds.nurbsSquare( d=2, nr=(0, 0, 1), c=(0, 0, 0), sl1=2, sl2=4 ) # create square of degree 3,side lengths 3, 4 spans per side cmds.nurbsSquare( nr=(0, 0, 1), c=(0, 0, 0), d=3, sl1=3, sl2=3, sps=4 )