ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
rebuildCurve(
curve [curve]
, [caching=boolean], [constructionHistory=boolean], [degree=int], [endKnots=int], [fitRebuild=boolean], [keepControlPoints=boolean], [keepEndPoints=boolean], [keepRange=int], [keepTangents=boolean], [name=string], [nodeState=int], [object=boolean], [range=boolean], [rebuildType=int], [replaceOriginal=boolean], [smartSurfaceCurveRebuild=boolean], [spans=int], [tolerance=linear])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
rebuildCurve は、取り消し可能、照会可能、および編集可能です。
パラメータ設定を修正してカーブをリビルドします。シェイプが変化することもあります。カーブの再構築方法は rebuildType (-rt)で決まります。 オプションの 2 番目のカーブは、リファレンス パラメータ設定の指定に使用できます。| string[] | オブジェクト名とノード名 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
caching(cch)
|
boolean
|
|
||||||||||
|
||||||||||||
degree(d)
|
int
|
|
||||||||||
|
||||||||||||
endKnots(end)
|
int
|
|
||||||||||
|
||||||||||||
fitRebuild(fr)
|
boolean
|
|
||||||||||
|
||||||||||||
keepControlPoints(kcp)
|
boolean
|
|
||||||||||
|
||||||||||||
keepEndPoints(kep)
|
boolean
|
|
||||||||||
|
||||||||||||
keepRange(kr)
|
int
|
|
||||||||||
|
||||||||||||
keepTangents(kt)
|
boolean
|
|
||||||||||
|
||||||||||||
nodeState(nds)
|
int
|
|
||||||||||
|
||||||||||||
rebuildType(rt)
|
int
|
|
||||||||||
|
||||||||||||
smartSurfaceCurveRebuild(scr)
|
boolean
|
|
||||||||||
|
||||||||||||
spans(s)
|
int
|
|
||||||||||
|
||||||||||||
tolerance(tol)
|
linear
|
|
||||||||||
|
||||||||||||
| 共通のフラグ | ||||||||||||
constructionHistory(ch)
|
boolean
|
|
||||||||||
|
||||||||||||
name(n)
|
string
|
|
||||||||||
|
||||||||||||
object(o)
|
boolean
|
|
||||||||||
|
||||||||||||
range(rn)
|
boolean
|
|
||||||||||
|
||||||||||||
replaceOriginal(rpo)
|
boolean
|
|
||||||||||
|
||||||||||||
import maya.cmds as cmds # rebuild curve to 5 uniform spans cmds.rebuildCurve( rt=0, s=5 ) # rebuild curve by reducing redundant spans cmds.rebuildCurve( rt=1 ) # rebuild curve by matching the parameterization of another curve # curve1 is the curve to rebuild # curve2 is the reference curve cmds.rebuildCurve( 'curve1', 'curve2', rt=2 ) # rebuild curve by removing all multiple interior knots cmds.rebuildCurve( rt=3 ) # rebuild curve using the curvature of the curve # to create more spans where curvature is higher cmds.rebuildCurve( rt=4 )