Go to: Synopsis. Return value. Python examples.

Synopsis

linearPrecision( int )

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

linearPrecision is undoable, queryable, and NOT editable.

This command controls the display of linear strings in the interface. (See the linearField command). Setting this affects any linear strings displayed afterwards, formatting them so they will show at most the specified number of digits after the decimal point. Allowed values are 0 through 6.

Return value

None

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

Python examples

import maya.cmds as cmds

cmds.linearPrecision( 3 )
cmds.linearPrecision( 10 ) # will be rounded down to 6, the maximum