Re: [script] Keyframe constraints

Date : Fri, 23 Sep 2005 14:55:04 -0700
To : XSI(at)Softimage.COM
From : Andy Buecker <abuecker(at)ilm.com>
Subject : Re: [script] Keyframe constraints
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


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.