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.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 ../../../_images/create.gif
 
Specifies the point to start measuring distance from.

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  #

Previous topic

pymel.core.general.displaySurface

Next topic

pymel.core.general.duplicate

Core

Core Modules

Other Modules

This Page