RE: FCurve.AddKey()

Date : Fri, 31 Aug 2007 10:51:15 -0400
To : <XSI(at)Softimage.COM>
From : "Serguei Kalentchouk" <serguei.kalentchouk(at)ubisoft.com>
Subject : RE: FCurve.AddKey()
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


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.