This command is used to create a distance dimension to display the distance between two specified points.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
endPoint (ep) | float, float, float | ||
Specifies the point to measure distance to, from the startPoint.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
startPoint (sp) | float, float, float | ||
|
Derived from mel command maya.cmds.distanceDimension
Example:
import pymel.core as pm
import maya.cmds as cmds
# To measure ths distance between [0,2,2] and [1,5,6]:
pm.distanceDimension( sp=(0, 2, 2), ep=(1, 5, 6) )
# Result: distanceDimensionShape1 #