Go to: Synopsis. Return value. Python examples.

Synopsis

arcLengthDimension( [curve|surface] )

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

arcLengthDimension is undoable, NOT queryable, and NOT editable.

This command is used to create an arcLength dimension to display the arcLength of a curve/surface at a specified point on the curve/surface.

Return value

stringName of the arcLengthDimension node created

Python examples

import maya.cmds as cmds

# Measure the arcLength of curve curveShape1 at u = 0.5
cmds.curve( d=3, p=((-9.3, 0, 3.2), (-4.2, 0, 5.0), (6.0, 0, 8.6), (2.1, 0, -1.9)), k=(0, 0, 0, 1, 2, 2));
cmds.arcLengthDimension( 'curveShape1.u[0.5]' )

# Measure the arcLength of sphere nurbsSphere1 at u = 0.5 and v = 0.5
cmds.sphere();
cmds.arcLengthDimension( 'nurbsSphere1.uv[0.5][0.5]' );