Your Ad Here

Go to: Synopsis. Return value. Python examples.

Synopsis

linearPrecision( <int number of digits> )

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

linearPrecision is undoable, queryable, and 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

Python examples

import maya.cmds as cmds

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

  

Return to Autodesk Index


Your Ad Here