Go to: Synopsis. Return value. Flags. Python examples.
tolerance([angular=angle], [linear=linear])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
tolerance is undoable, queryable, and NOT editable.
This command sets tolerances used by modelling operations that require a tolerance, such as surface fillet. Linear tolerance is also known as "positional" tolerance. Angular tolerance is also known as "tangential" tolerance.None
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
angular(a)
|
angle
|
|||
|
||||
linear(l)
|
linear
|
|||
|
Flag can appear in Create mode of command | Flag can appear in Edit mode of command |
Flag can appear in Query mode of command | Flag can have multiple arguments, passed either as a tuple or a list. |
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