移動先: 概要 戻り値 フラグ. Python 例.

概要

tolerance([angular=angle], [linear=linear])

注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。

tolerance は 「元に戻す」が可能、「照会」が可能、「編集」が不可能 です。

このコマンドは、サーフェス フィレットなど、 許容値が必要なモデリング操作で使用される許容値を設定します。 リニア(Linear)許容値は「位置」の許容値で、 角度(Angular)許容値は「接線」の許容値です。

戻り値

なし

戻り値の型は照会モードでは照会フラグが基になります。

フラグ

angular, linear
ロング ネーム(ショート ネーム) 引数型 プロパティ
linear(l) linear createquery
リニア、つまり「位置」の許容値を設定します。
angular(a) angle createquery
角度、つまり「接線」の許容値を設定します。

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : タプルまたはリストとして渡された複数の引数を持てるフラグ

Python 例

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