The arcLengthDimension node:
curveShape1->arcLengthDimensionShape2.uParamValue ;
curveShape1->arcLengthDimensionShape2.arcLength ;
cmds.setAttr('arcLengthDimensionShape2.uParamValue', 1.37)
cmds.getAttr('arcLengthDimensionShape2.arcLength')
# Result: 668.376884861 #
On Tue, Jul 12, 2011 at 4:50 PM, Sebastian Schoellhammer <
[email protected]> wrote:
> Hello,
>
> does anybody know a way of getting the length corresponding to a param on a
> curve?
>
> I can get the param from a length, but not the other way around, mmh.
>
> and something naive like param/curveMaxParam * curveLength doesn't work.
>
> I would like to avoid creating a subCurveNode and measure the length
> myself..
>
> Possible?
>
>
> Thanks for hints!
>
> Seb
>
>
>
>
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
>
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe