移動先: 概要 戻り値 キーワード. 関連項目. フラグ. Python 例.
subdivDisplaySmoothness([all=boolean], [smoothness=int])
注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
subdivDisplaySmoothness は 「元に戻す」が可能、「照会」が可能、「編集」が不可能 です。
セレクション リスト上のサブディビジョン サーフェス、または -all オプションを設定した場合はすべてのサブディビジョン サーフェスについて、表示の平滑性を設定または照会します。平滑性(Smoothness)オプションは、粗(Rough)、中(Medium)、高(Fine)で、デフォルトは粗です。| boolean |
戻り値の型は照会モードでは照会フラグが基になります。
| ロング ネーム(ショート ネーム) | 引数型 | プロパティ | ||
|---|---|---|---|---|
smoothness(s)
|
int
|
|
||
|
||||
all()
|
boolean
|
|
||
|
||||
import maya.cmds as cmds cmds.subdivDisplaySmoothness( s=0 )# Set smoothness to hull for selected subdivs cmds.subdivDisplaySmoothness( s=1 )# Set smoothness to rough for selected subdivs cmds.subdivDisplaySmoothness( s=2 )# Set smoothness to medium for selected subdivs cmds.subdivDisplaySmoothness( s=3 )# Set smoothness to fine for selected subdivs cmds.subdivDisplaySmoothness( s=1, all=True )# Set smoothness to rough for all subdivs cmds.subdivDisplaySmoothness( query=True )# Query display smoothness for selected subdivs