ジャンプ先: 概要. 戻り値. フラグ. Python 例.
rebuildSurface(
surface [surface]
, [caching=boolean], [constructionHistory=boolean], [degreeU=int], [degreeV=int], [direction=int], [endKnots=int], [fitRebuild=int], [keepControlPoints=boolean], [keepCorners=boolean], [keepRange=int], [name=string], [nodeState=int], [object=boolean], [polygon=int], [rebuildType=int], [replaceOriginal=boolean], [spansU=int], [spansV=int], [tolerance=linear])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
rebuildSurface は、取り消し可能、照会可能、および編集可能です。
パラメータ設定を修正してサーフェスをリビルドします。サーフェスのシェイプも変化することがあります。サーフェスの再構築方法は、rebuildType (-rt)アトリビュートで決まります。 オプションの 2 番目のサーフェスは、リファレンス パラメータ設定の指定に使用できます。| string[] | オブジェクト名とノード名 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
caching(cch)
|
boolean
|
|
||||||||||
|
||||||||||||
degreeU(du)
|
int
|
|
||||||||||
|
||||||||||||
degreeV(dv)
|
int
|
|
||||||||||
|
||||||||||||
direction(dir)
|
int
|
|
||||||||||
|
||||||||||||
endKnots(end)
|
int
|
|
||||||||||
|
||||||||||||
fitRebuild(fr)
|
int
|
|
||||||||||
|
||||||||||||
keepControlPoints(kcp)
|
boolean
|
|
||||||||||
|
||||||||||||
keepCorners(kc)
|
boolean
|
|
||||||||||
|
||||||||||||
keepRange(kr)
|
int
|
|
||||||||||
|
||||||||||||
nodeState(nds)
|
int
|
|
||||||||||
|
||||||||||||
rebuildType(rt)
|
int
|
|
||||||||||
|
||||||||||||
spansU(su)
|
int
|
|
||||||||||
|
||||||||||||
spansV(sv)
|
int
|
|
||||||||||
|
||||||||||||
tolerance(tol)
|
linear
|
|
||||||||||
|
||||||||||||
| 共通のフラグ | ||||||||||||
constructionHistory(ch)
|
boolean
|
|
||||||||||
|
||||||||||||
name(n)
|
string
|
|
||||||||||
|
||||||||||||
object(o)
|
boolean
|
|
||||||||||
|
||||||||||||
polygon(po)
|
int
|
|
||||||||||
|
||||||||||||
replaceOriginal(rpo)
|
boolean
|
|
||||||||||
|
||||||||||||
import maya.cmds as cmds # rebuild the surface using uniform parameterization # The rebuilt surface will have 5 spans in u and # 10 spans in v cmds.rebuildSurface( rt=0, dir=2, su=5, sv=10 ) # rebuild the surface by removing its redundant spans cmds.rebuildSurface( rt=1 ) # rebuild the surface by matching the u parameterization # of another surface. surface1 is the surface to rebuild # surface2 is the reference surface cmds.rebuildSurface( 'surface1', 'surface2', rt=2, dir=0 ) # rebuild the surface by removing all multiple interior knots cmds.rebuildSurface( rt=3 ) # rebuild the surface using uniform parameterization cmds.rebuildSurface( rt=4 )