pymel.core.general.distanceDimension

distanceDimension(*args, **kwargs)

This command is used to create a distance dimension to display the distance between two specified points.

Modifications:
  • returns a PyNode object

Flags:

Long Name / Short Name Argument Types Properties
endPoint / ep float, float, float ../../../_images/create.gif
  Specifies the point to measure distance to, from the startPoint.
startPoint / sp float, float, float ../../../_images/create.gif
  Specifies the point to start measuring distance from. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.distanceDimension

Example:

import pymel.core as pm

# To measure ths distance between [0,2,2] and [1,5,6]:
pm.distanceDimension( sp=(0, 2, 2), ep=(1, 5, 6) )
#  Result: distanceDimensionShape1  #