Found my answer.
Problem solved.

tStartP = OpenMaya.MScriptUtil().asDoublePtr()
tEndP = OpenMaya.MScriptUtil().asDoublePtr()

curveFn.getKnotDomain(tStartP, tEndP)

tStart = OpenMaya.MScriptUtil().getDouble(tStartP)
tEnd = OpenMaya.MScriptUtil().getDouble(tEndP)

Thans
P.

On Aug 17, 6:41 pm, Praxis <[email protected]> wrote:
> Hi all
>
> I am new to python and try to rewrite a C++ script in python.
>
> The code is this:
>
> tStart
> tEnd
> curveFn.getKnotDomain( tStart, tEnd)           #OpenMaya.MFnNurbsCurve
> ()
>
> Error:
> # Error: : line1  in method 'MFnNurbsCurve_getKnotDomain', argument 2
> of type 'double &' #
>
> I also try it  like is:
>
> tStart = float(0.1)
> tEnd = float(0.1)
> curveFn.getKnotDomain( float(tStart), float(tEnd))
> #OpenMaya.MFnNurbsCurve()
>
> ...but same error.
>
> Thanks for your help.
> P.
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to