This command sets tolerances used by modelling operations that require a tolerance, such as surface fillet. Linear tolerance is also known as positionaltolerance. Angular tolerance is also known as tangentialtolerance. In query mode, return type is based on queried flag.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
angular (a) | float | ||
|
|||
linear (l) | float | ||
|
Derived from mel command maya.cmds.tolerance
Example:
import pymel.core as pm
pm.tolerance( linear=0.02 )# sets the tolerance to 0.02, in the current unit
pm.tolerance( linear='0.02cm' )# sets the tolerance to 0.02 cm
pm.tolerance( angular='0.02rad' )# sets the angle tolerance to 0.02 radians
pm.tolerance( q=True, linear=True )# returns the current tolerance in the current unit
# Result: 0.02 #
pm.tolerance( q=True, angular=True )# returns the current tolerance in the current unit
# Result: 1.1459155902616465 #