tolerance([angular=angle], [linear=linear])
注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
tolerance は 「元に戻す」が可能、「照会」が可能、「編集」が不可能 です。
このコマンドは、サーフェス フィレットなど、 許容値が必要なモデリング操作で使用される許容値を設定します。 リニア(Linear)許容値は「位置」の許容値で、 角度(Angular)許容値は「接線」の許容値です。なし
戻り値の型は照会モードでは照会フラグが基になります。
ロング ネーム(ショート ネーム) | 引数型 | プロパティ | ||
---|---|---|---|---|
linear(l)
|
linear
|
![]() ![]() |
||
|
||||
angular(a)
|
angle
|
![]() ![]() |
||
|
![]() |
![]() |
![]() |
![]() |
import maya.cmds as cmds cmds.tolerance( linear=0.02 )# sets the tolerance to 0.02, in the current unit cmds.tolerance( linear='0.02cm' )# sets the tolerance to 0.02 cm cmds.tolerance( angular='0.02rad' )# sets the angle tolerance to 0.02 radians cmds.tolerance( q=True, linear=True )# returns the current tolerance in the current unit cmds.tolerance( q=True, angular=True )# returns the current tolerance in the current unit