Right. It
fails because endKey is <unknown>.
Release version of XSI 6.5 and Python 2.4 just like you.
?????
Nicolas Langlois
Senior/Lead Rigger/TD
Buzz Image
Stephen Blair wrote:
No, nothing special. I have the release version of XSI 6.5 installed.
Python 2.4.
For you, the LogMessage fails because endKey is <unknown>, right?
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
Of Nicolas Langlois
Sent: Wed 17 October 2007 5:55 PM
To: XSI(at)Softimage.COM
Subject: Re: fcurveKey.SetConstraint not working???
Why would it not work on our side? in 6.5. On Francois' machine and my
machine?
Anything special in our 6.5 versus yours?
Nicolas Langlois
Senior/Lead Rigger/TD
Buzz Image
Stephen Blair wrote:
Works for me in 6.5.
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On
Behalf Of Nicolas Langlois
Sent: Wed 17 October 2007 4:12 PM
To: xsi(at)Softimage.COM
Subject: fcurveKey.SetConstraint not working???
Hey everyone,
The python example of Constraint (FCurveKey <FCurveKey.htm#FCurveKey>)
in the XSI SDK doc shows the use almost exactly like this of
fckey.SetConstraint:
# PYTHON CODE START
oCube = Application.CreatePrim("Cube", "MeshSurface", "", "") param =
Application.Dictionary.GetObject("%s.kine.local.posx" % oCube) fcurve
=
param.AddFCurve() endFrame = 10 fcurve.AddKey(endFrame, 0, 0, True)
endKey = fcurve.GetKeysBetween(endFrame, endFrame + 1)(0)
Application.LogMessage("endKey is at time: %s" % endKey.Time)
endKey.SetConstraint(constants.siG1ContinuousConstraint,0)
# PYTHON CODE END
Why is endKey <unknown> at the end of this script???
Can anyone help me make this work?
I need to make the key have Non-Unified Slope Orientation. Anyone have
any idea how to do it otherwise?
Thanks!
---
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