Go to: Synopsis. Flags. Return value. Python examples.
distanceDimension([endPoint=[float, float, float]], [startPoint=[float, float, float]])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
distanceDimension is undoable, queryable, and editable.
This command is used to create a distance dimension to display the distance between two specified points.| Long name (short name) | [argument types] | Properties | ||
|---|---|---|---|---|
startPoint(sp)
|
[float, float, float]
|
|
||
|
||||
endPoint(ep)
|
[float, float, float]
|
|
||
|
||||
import maya.cmds as cmds # To measure ths distance between [0,2,2] and [1,5,6]: cmds.distanceDimension( sp=(0, 2, 2), ep=(1, 5, 6) ) # Result: distanceDimensionShape1 #