ジャンプ先: 概要. 戻り値. キーワード. 関連. フラグ. Python 例.

概要

subdivDisplaySmoothness([all=boolean], [smoothness=int])

注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。

subdivDisplaySmoothness は、取り消し可能、照会可能、および編集不可能です。

セレクション リスト上のサブディビジョン サーフェス、または -all オプションを設定した場合はすべてのサブディビジョン サーフェスについて、表示の平滑性を設定または照会します。平滑性(Smoothness)オプションは、粗(Rough)、中(Medium)、高(Fine)で、既定は粗です。

戻り値

booleanコマンドの結果

照会モードでは、戻り値のタイプは照会されたフラグに基づきます。

キーワード

subdivision, surface, display, smoothness

関連

changeSubdivComponentDisplayLevel, changeSubdivRegion, createSubdivRegion, nurbsToSubdiv, polyToSubdiv, querySubdiv, refineSubdivSelectionList, subdCollapse, subdToBlind, subdToPoly, subdiv, subdivCrease

フラグ

all, smoothness
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
all() boolean createquery
このフラグを設定した場合、すべてのサブディビジョン サーフェスの平滑性を変更します。
smoothness(s) int createquery
平滑性(Smoothness) - 1 粗(Rough)、2 中(Medium)、3 高(Fine)

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。

Python 例

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