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

概要

displaySmoothness( [objects] , [all=boolean], [boundary=boolean], [defaultCreation=boolean], [divisionsU=int], [divisionsV=int], [full=boolean], [hull=boolean], [pointsShaded=int], [pointsWire=int], [polygonObject=int], [renderTessellation=boolean], [simplifyU=int], [simplifyV=int])

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

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

NURBS カーブとサーフェスの表示の滑らかさが、あらかじめ定義された値またはカスタム値に設定されます。ハルなどの精度とハルの単純化係数も表示モード用に設定されます。現在、このコマンドは取り消すことはできません。

戻り値

なし

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

関連

currentUnit, displayAffected, displayColor, displayCull, displayLevelOfDetail, displayPref, displayRGBColor, displayStats, displaySurface, hide, refresh, showHidden, toggle

フラグ

all, boundary, defaultCreation, divisionsU, divisionsV, full, hull, pointsShaded, pointsWire, polygonObject, renderTessellation, simplifyU, simplifyV
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
all(all) boolean createquery
すべてのカーブとサーフェスの平滑性を変更します。
full(f) boolean createquery
完全解像度でサーフェスが表示されます。これが既定です。
hull(hl) boolean createquery
ハルを使用してサーフェスが表示されます(サーフェス ノット ポイントではなく、制御点が描画されます)。このモードは、サーフェス上でポイントを評価する必要がないので、サーフェスを修正したときの、表示パフォーマンスが改善されて便利です。
boundary(bn) boolean createquery
サーフェスの境界のみを使用してワイヤフレームが表示されます。まだ完全には実装されていません。
defaultCreation(dc) boolean createquery
作成時の既定値(-du、-dv、-pw、-ps のみを適用)。
pointsWire(pw) int createquery
ワイヤフレーム モードにおける、サーフェス アイソパラム スパンごとのポイント数、またはカーブ スパンごとのポイント数。値の有効範囲は [1,128] です。注: NURBS カーブにも適用されるフラグはこれだけです
pointsShaded(ps) int createquery
シェーディング モードでのサーフェス スパンごとのポイント数。値の有効範囲は [1,64] です。
divisionsU(du) int createquery
U 方向における、スパンごとのアイソパラム分割数。値の有効範囲は [0,64] です。
divisionsV(dv) int createquery
V 方向における、スパンごとのアイソパラム分割数。値の有効範囲は [0,64] です。
simplifyU(su) int createquery
ハル表示モードの場合に U 方向でスキップされるスパン数。
simplifyV(sv) int createquery
ハル表示モードの場合に V 方向でスキップされるスパン数。
renderTessellation(rt) boolean createquery
シェーディング モードではレンダー テッセレーション パラメータを使って表示します。
polygonObject(po) int createquery
指定した解像度でポリゴン オブジェクトが表示されます。

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

Python 例

import maya.cmds as cmds

# create a surface
cmds.sphere()
# set rough smoothness settings
cmds.displaySmoothness( du=0, dv=0, pw=4, ps=1 )
# set medium smoothness settings
cmds.displaySmoothness( du=1, dv=1, pw=8, ps=2 )
# set fine smoothness settings
cmds.displaySmoothness( du=2, dv=2, pw=16, ps=4 )
# Display surface as a hull
cmds.displaySmoothness( hull=True )
# Display with reduced number of points
cmds.displaySmoothness( hull=True, su=2, sv=2 )
# Display rendering tesselation
cmds.displaySmoothness( rt=1 )
# Set default value for pointsShaded.
# Subsequent surfaces created will have pointsShaded as 2.
cmds.displaySmoothness( dc=True, ps=2 )
# displaySmoothness queries
#
# query hull display, returns boolean
cmds.displaySmoothness( q=True, hull=True )
# query default pointsShaded value
cmds.displaySmoothness( q=True, dc=True, ps=True )
# query surface divisionsU value
cmds.displaySmoothness( q=True, du=True )
# Only the -pointsWire flag works on curves.
cmds.circle()
# change the number of points displayed per curve span.
cmds.displaySmoothness( pw=3 )
# query default pointsWire value for curves.
cmds.displaySmoothness( q=True, dc=True, pw=True )
cmds.polyCube()
# Query the display resolution
cmds.displaySmoothness( q=True, polygonObject=True )
# Result: 0
# Change the display resolution
cmds.displaySmoothness( polygonObject=2 )