Graphics

 View Only
  • 1.  Scripting Keyframes on Animation Controller

    Posted 04-18-2024 10:23

    Can someone tell me what I am doing wrong here? I am trying to set keyframes on an animation controller via script but I seem to be doing something wrong with my syntax. Cannot get this to work.

    dim anim1 as xpAnimController
    dim myQuad as xpBaseObject
    
    self.GetObjectByName("AC1", anim1)
    self.GetObjectByName("Quad1", myQuad)
    
    anim1.SetKeyFrameAlpha(myQuad, 0, 100)
    anim1.SetKeyFrameAlpha(myQuad, 30, 0)
    anim1.SetKeyFrameScale(myQuad, 0, 1, 1, 1)
    anim1.SetKeyFrameScale(myQuad, 30, 2, 2, 2)


    ------------------------------
    Carlito Chippy
    ------------------------------


  • 2.  RE: Scripting Keyframes on Animation Controller

    Posted 04-18-2024 14:06

    self.GetAnimControllerByName("AC1",anim1)



    ------------------------------
    Azathoth
    Son of Cthulhu
    ------------------------------



  • 3.  RE: Scripting Keyframes on Animation Controller

    Posted 04-18-2024 14:43
    Thank you!!


    ------------------------------
    Carlito Chippy
    ------------------------------