Hm, a pure mathematical solution. I expect the ikHandle would make a curve
similar to this, and then resample it afterwards to fit the spans
requirement. To calculate the resampling yourself, then a linear
interpolation <https://en.wikipedia.org/wiki/Linear_interpolation> should
get you started, followed by a spline interpolation
<https://en.wikipedia.org/wiki/Spline_interpolation>. It'll assume you have
at least 2 points for input, and want more points as output. Once you've
got all of your points, you could pass that to your `cmds.curve` command.
Not entirely sure that's what you're after.

On Wed, 28 Nov 2018 at 11:13, Rémi Deletrain <[email protected]>
wrote:

> this code is juste for create Curve from given points.
> With ikHandle options it's possible to given number of spans. (Maya create
> curve with all point and rebuild curve after ?)
> But I surch solution without create curve. Pure mathematical solution
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/28c05c92-d5d1-429a-80de-32ca5b22e7eb%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/28c05c92-d5d1-429a-80de-32ca5b22e7eb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODKwSYOvtnXAh90KaQ1u%2BvBghFXnxxc%2BVBGM8R0o%2B115w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to