Quantcast
Channel: mel wiki
Viewing all articles
Browse latest Browse all 610

What node can return a curve's length?

$
0
0
curveInfo
# Python code
import maya.cmds as mc

lenCalc = mc.createNode("curveInfo")
mc.connectAttr("myCurveShape.worldSpace[0]", lenCalc+".inputCurve")
You can then query, or connect to the curveInfo node's ".arcLength" attribute

Viewing all articles
Browse latest Browse all 610

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>