Re: fcurveKey.SetConstraint not working???

Date : Thu, 18 Oct 2007 15:01:57 -0400
To : XSI(at)Softimage.COM
From : Nicolas Langlois <nicolasl(at)buzzimage.com>
Subject : Re: fcurveKey.SetConstraint not working???
Dispatching hack is done and needed for other scripts to run properly in the studio.

Is that why it's <unknown> ???  If so, any one got idea on what I could do?

Nicolas Langlois
Senior/Lead Rigger/TD
Buzz Image



Steven Caron wrote:
dispatching hack?

steven

On 10/18/07, *Nicolas Langlois* <nicolasl(at)buzzimage.com <mailto:nicolasl(at)buzzimage.com>> wrote:

    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>
    [mailto: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 <mailto: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>
    [mailto: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 <mailto: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
    <mailto:Majordomo(at)Softimage.COM> with the following text in
    > body:
    > unsubscribe xsi
    >
    > ---
    > Unsubscribe? Mail Majordomo(at)Softimage.COM
    <mailto:Majordomo(at)Softimage.COM> with the following text in body:
    > unsubscribe xsi
    >
    ---
    Unsubscribe? Mail Majordomo(at)Softimage.COM
    <mailto: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.