pymel.core.modeling.tolerance

static modeling.tolerance(*args, **kwargs)

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.

Flags:
Long name (short name) Argument Types Properties
angular (a) float ../../../_images/create.gif ../../../_images/query.gif
 
Sets the angular, or tangentialtolerance. Flag can have multiple arguments, passed either as a tuple or a list.
linear (l) float ../../../_images/create.gif ../../../_images/query.gif
 
Sets the linear, or positonaltolerance.

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 #

Previous topic

pymel.core.modeling.textCurves

Next topic

pymel.core.modeling.torus

Core

Core Modules

Other Modules

This Page