Graphics

 View Only

Scripting A Key Frame Change

  • 1.  Scripting A Key Frame Change

    Posted 11-18-2024 09:54

    Sorry if this is the wrong place to post this or if it's extremely easy, I'm just starting to learn scripting. I'm trying to change the last key frame of an animation from a text input. This is the script I have so far:

    Dim Wheel as xpBaseObject
    Dim EndFrame as xpTextObject
    Self.GetObjectByName("Row Wheel", Wheel)
    Self.GetObjectByName("End Frame", EndFrame)
    Function as Wheel.SetKeyFrameRotation (ByVal 180 as Integer,ByVal 0 as Double,ByVal 0 as Double,ByVal EndFrame as Integer)

    I'm getting errors on BC42030 on the 3rd and 4th Lines. Also error BC30289 on the 5th Lines. any help would be much appreciated!



    ------------------------------
    Emilio Lopez
    ------------------------------