Hmm it does seem like it needs an actual position rather than an angle
value for tangent Y. So the problem might be that if you are writing to
a uniform slope you might have to indicate the correct value for both
right and left tangent.
So try this:
newCurve.AddKey(0.0f, 0.0f, siDefaultKeyInterpolation, -0.5, -0.3, 0.3,
0.3);
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
Of Alan Jones
Sent: August 31, 2007 11:01 AM
To: XSI(at)Softimage.COM
Subject: Re: FCurve.AddKey()
Thanks Serguei,
I tried newCurve.AddKey(0.0f, 0.0f, siDefaultKeyInterpolation, -0.5,
0, 0.3, 45);
And got the same again - Here's a capture of the curve I'd like.
Cheers,
Alan.
On 8/31/07, Serguei Kalentchouk <serguei.kalentchouk(at)ubisoft.com> wrote:
> Ahh cool, not use to C++ questions :)
> Well in any case if I recall the X value of a tangent is a number of
> keys offset from the key itself and the Y is the angle value in
degrees.
> Since you angle value is so small 0.3 it seems like your tangent is
same
> as default.
>
> -----Original Message-----
> From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On
Behalf
> Of Alan Jones
> Sent: August 31, 2007 10:29 AM
> To: XSI(at)Softimage.COM
> Subject: Re: FCurve.AddKey()
>
> Hi Serguei,
>
> The C++ one is declared differently.
>
> LONG AddKey ( const CTime & in_frame,
> const CValue & in_value,
> siFCurveKeyInterpolation in_interp = siDefaultKeyInterpolation,
> double in_ltx = DBL_MAX,
> double in_lty = DBL_MAX,
> double in_rtx = DBL_MAX,
> double in_rty = DBL_MAX,
> double in_tol = DBL_MAX,
> bool in_okl = false
> )
>
> Cheers,
>
> Alan.
>
> On 8/31/07, Serguei Kalentchouk <serguei.kalentchouk(at)ubisoft.com>
wrote:
> > I'm a bit confused because the AddKey method looks like this:
> > FCurve.AddKey( [Frame], [Value], [Tolerance], [Overwrite] )
> > I'm not sure which method you are using?
> >
> > -----Original Message-----
> > From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On
> Behalf
> > Of Alan Jones
> > Sent: August 31, 2007 6:11 AM
> > To: xsi(at)Softimage.COM
> > Subject: FCurve.AddKey()
> >
> > Hi All,
> >
> > This line is not doing what I expected.
> >
> > newCurve.AddKey(0.0f, 0.0f, siDefaultKeyInterpolation, -0.5, 0, 0.3,
> > 0.3);
> >
> > I imagined that the left and right handles were just time and value
> > entries, but given the results I get - it seems not. I get just the
> > same as if I'd just done newCurve.AddKey(0.0f, 0.0f);
> >
> > Thanks for any suggestions.
> >
> > Cheers,
> >
> > Alan.
> > ---
> > Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
> > body:
> > unsubscribe xsi
> >
> > ---
> > Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
> body:
> > unsubscribe xsi
> >
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
> body:
> unsubscribe xsi
>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
body:
> unsubscribe xsi
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi