Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

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.

Return value

None

In query mode, return type is based on queried flag.

Flags

angular, linear
Long name (short name) Argument types Properties
linear(l) linear createquery
Sets the linear, or "positonal" tolerance.
angular(a) angle createquery
Sets the angular, or "tangential" tolerance.

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.

Python examples

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