移動先: 概要 戻り値 関連項目. フラグ. Python 例.
subdListComponentConversion(
[objects...]
, [fromEdge=boolean], [fromFace=boolean], [fromUV=boolean], [fromVertex=boolean], [internal=boolean], [toEdge=boolean], [toFace=boolean], [toUV=boolean], [toVertex=boolean], [uvShell=boolean], [uvShellBorder=boolean])
注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
subdListComponentConversion は 「元に戻す」が可能、「照会」が不可能、「編集」が不可能 です。
このコマンドは、サブディビジョン サーフェス コンポーネントのタイプを
1 つまたは複数のタイプから別の 1 つまたは複数のタイプに変換し、
変換のリストを返します。現在選択しているオブジェクトは変更されません。
「-in/internal」フラグを使用して、変換の対象を「コネクトされた」コンポーネントと「含まれた」コンポーネントのどちらにするか指定します。たとえば、サブディビジョン サーフェスの頂点をフェースに変換するときに
internal フラグを指定すると、頂点に完全に含まれるフェースのみを返します。internal フラグを指定しないと、
頂点にコネクトされたすべてのフェースを返します。
string[] | サブディビジョン サーフェス コンポーネントのリスト |
polyListComponentConversion
fromEdge, fromFace, fromUV, fromVertex, internal, toEdge, toFace, toUV, toVertex, uvShell, uvShellBorder
: コマンドの作成モードで使用可能なフラグ
|
: コマンドの編集モードで使用可能なフラグ
|
: コマンドの照会モードで使用可能なフラグ
|
: タプルまたはリストとして渡された複数の引数を持てるフラグ
|
import maya.cmds as cmds
cmds.subdListComponentConversion( 'subdShape.smp[5][6]', 'subdShape.smp[9][10]', fv=True, tf=True )
# Returns a list of faces that are connected to the given vertices.
cmds.subdListComponentConversion( 'subdShape.sme[0][0]', 'subdShape.smp[3][0]', 'subdShape.smp[8][0]', tf=True )
# Returns a list of faces that are connected to the given components.
cmds.subdListComponentConversion( 'subdShape.smp[5][9]', fv=True, tf=True, in=True )
# Returns a list of only those faces that are completely contained
# by the given vertices.
cmds.select( 'subdShape.smp[0][0]', 'subdShape.smp[3][0]', 'subdShape.smp[8][0]', r=True )
cmds.subdListComponentConversion( fv=True, tf=True )
# Returns the conversion of selected vertices to faces.
cmds.subdListComponentConversion( 'subdShape.smm[3]', fuv=True, tuv=True, uvs=True )
# Returns a list of all uv map components in the
# same UV shell (contiguous region in texture space).
# (You can view these regions in the UV Texture Editor.)
cmds.subdListComponentConversion( 'subdShape.smm[3]', fuv=True, tuv=True, uvb=True )
# Returns a list of the uv map components on the border of the
# same UV shell (contiguous region in texture space). (You can
# view these regions in the UV Texture Editor.)