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