ジャンプ先: 概要. 戻り値. フラグ. Python 例.
polyOptions([activeObjects=boolean], [allEdges=boolean], [backCullVertex=boolean], [backCulling=boolean], [colorMaterialChannel=string], [colorShadedDisplay=boolean], [displayAlphaAsGreyScale=boolean], [displayBorder=boolean], [displayCenter=boolean], [displayCreaseEdge=boolean], [displayCreaseVertex=boolean], [displayGeometry=boolean], [displayInvisibleFaces=boolean], [displayItemNumbers=[boolean, boolean, boolean, boolean]], [displayMapBorder=boolean], [displayMetadata=[boolean, boolean, boolean]], [displayNormal=boolean], [displaySubdComps=boolean], [displayTriangle=boolean], [displayUVTopology=boolean], [displayUVs=boolean], [displayVertex=boolean], [displayWarp=boolean], [facet=boolean], [fullBack=boolean], [gl=boolean], [hardBack=boolean], [hardEdge=boolean], [materialBlend=string], [newPolymesh=boolean], [point=boolean], [pointFacet=boolean], [relative=boolean], [reuseTriangles=boolean], [sizeBorder=float], [sizeNormal=float], [sizeUV=float], [sizeVertex=float], [softEdge=boolean], [vertexNormalMethod=int], [wireBackCulling=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
polyOptions は、取り消し可能、照会可能、および編集不可能です。
グローバル表示ポリゴン アトリビュートを変更します。
なし
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
activeObjects, allEdges, backCullVertex, backCulling, colorMaterialChannel, colorShadedDisplay, displayAlphaAsGreyScale, displayBorder, displayCenter, displayCreaseEdge, displayCreaseVertex, displayGeometry, displayInvisibleFaces, displayItemNumbers, displayMapBorder, displayMetadata, displayNormal, displaySubdComps, displayTriangle, displayUVTopology, displayUVs, displayVertex, displayWarp, facet, fullBack, gl, hardBack, hardEdge, materialBlend, newPolymesh, point, pointFacet, relative, reuseTriangles, sizeBorder, sizeNormal, sizeUV, sizeVertex, softEdge, vertexNormalMethod, wireBackCulling
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
cmds.polyCube( n='plg', sx=3, sy=3, sz=3, w=5, h=5, d=5 )
cmds.delete( 'plg.f[9:17]' )
# Vertices
cmds.polyOptions( displayVertex=True )
# Toggle vertices
cmds.polyOptions( r=True, displayVertex=True )
# Toggle, whatever the value given to the flag in this command.
# It was previously true, it is set to false : vertices are not drawn.
# Facet centers
cmds.polyOptions( displayCenter=True )
cmds.polyOptions( displayCenter=False )
# Triangulation
cmds.polyOptions( displayTriangle=True )
cmds.polyOptions( displayTriangle=False )
# Reusing Triangulation
cmds.polyOptions( reuseTriangles=True )
cmds.polyOptions( reuseTriangles=False )
# Borders
cmds.polyOptions( displayBorder=True )
# Border size
cmds.polyOptions( sb=3 )
# Increase border size
cmds.polyOptions( r=True, sb=2 )
cmds.polyOptions( displayBorder=False, sb=3 )
# Map borders
cmds.polyOptions( displayMapBorder=True )
cmds.polyOptions( displayMapBorder=False )
# Normals
# Normal type
cmds.polyOptions( displayNormal=True )
cmds.polyOptions( pt=True )# on vertices
cmds.polyOptions( pf=True )# on vertices and facets
cmds.polyOptions( f=True )# on facets
# Normal size
cmds.polyOptions( sn=2 )
# Increase normal size
cmds.polyOptions( r=True, sn=1.5 )
cmds.polyOptions( displayNormal=False )
# Edges
cmds.polyOptions( softEdge=True )
cmds.polyOptions( hardEdge=True )
cmds.polyOptions( allEdges=True )
# Geometry
cmds.polyOptions( displayGeometry=False )
cmds.polyOptions( displayGeometry=True )
# Backculling
cmds.polyOptions( wireBackCulling=True )
cmds.polyOptions( hardBack=True )
cmds.polyOptions( fullBack=True )
cmds.polyOptions( displayVertex=True, backCullVertex=True )
cmds.polyOptions( backCullVertex=False )
cmds.polyOptions( displayVertex=False )
cmds.polyOptions( backCulling=True )
# Color Shaded Display
cmds.polyOptions( colorShadedDisplay=True )
cmds.polyOptions( colorMaterialChannel='DIFFUSE' )