Re: [script] Keyframe constraints

Date : Sun, 25 Sep 2005 21:34:28 -0400
To : XSI(at)Softimage.COM
From : Bernard Lebel <3dbernard(at)gmail.com>
Subject : Re: [script] Keyframe constraints
Hi Andy,

Thanks a lot for the answer, things are a lot clearer now. Somehow the
Python example from the Constraint(FCurveKey) was not working, as I
was always getting a "member not found" error.

But I found why! That was because I was using a lowercase for the
Constraint property name. Turning into an uppercase made it work.


Thanks again
Bernard


On 9/23/05, Andy Buecker <abuecker(at)ilm.com> wrote:
> The constraints are just booleans.  It goes like this:
>
> #key.Constraint( 'type_of_constraint' ) = True/False
> #
> # turn on zero slope
> key.Constraint( c.siHorizontalTangentConstraint ) = True
> # or #
> key.Constraint( 64 ) = True
>
> Look under 'siFCurveKeyConstraint' in the docs for the constants or
> integer values to set.
>
> -A
>
>
>
>
> Bernard Lebel wrote:
>
> >Hello,
> >
> >Things are getting quite more confusing, as it's the first time I come
> >accross the Constraint property of the fcurvekey object entry in the
> >SDK doc.
> >
> >The Python example makes use if a SetConstraint method of the
> >FcurveKey object, however when I try to run call this method I get an
> >AttributeError. There is no documentation entry about the
> >SetConstraint. The VBScript example also sets a constraint, but uses
> >another approach.
> >
> >Anyone has knowledge about how to handle this area of keyframes?
> >Basically I'm trying to control slope attribute of keyframes.
> >
> >
> >Thanks
> >Bernard
> >
> >---
> >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.