ジャンプ先: 概要. 戻り値. フラグ. Python 例.
closeSurface(
[surface|surfaceIsoparm]
, [blendBias=float], [blendKnotInsertion=boolean], [caching=boolean], [constructionHistory=boolean], [direction=int], [name=string], [nodeState=int], [object=boolean], [parameter=float], [preserveShape=int], [replaceOriginal=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
closeSurface は、取り消し可能、照会可能、および編集可能です。
closeSurface コマンドは U、V または両方向のサーフェスを閉じて周期サーフェスにします。閉じる方向は、direction フラグで制御されます。このコマンドでサーフェスが指定されていない場合、最初に選択したサーフェスが使用されます。
新しく閉じたサーフェスのパス名と作成されたディペンデンシー ノード名を返します。
このコマンドは、選択したサーフェスのアイソパラムも処理します。たとえば、アイソパラムが指定されていれば、surface1.u[0.33] で、direction フラグに関係なくサーフェスは V 方向に閉じられます。
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
blendBias, blendKnotInsertion, caching, constructionHistory, direction, name, nodeState, object, parameter, preserveShape, replaceOriginal
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
cmds.closeSurface( 'surface1', ch=True, d=0, ps=True )
# Closes surface1 in the U direction with history and by preserving shape.
# The name of the closed surface, and the name of the newly created
# dependency node are returned.
cmds.closeSurface( 'surface1', ch=True, d=2, ps=False )
# Closes surface1 in both U and V directions, with history. Closing
# the surface will not preserve the shape of the surface.
cmds.closeSurface( 'surface1.u[0.66]', ch= True )
# Closes surface1 in the V direction, with history. The direction is
# implied from the specified isoparm.