# Scripting A Key Frame Change

**URL:** <https://rossvideo.community/t/scripting-a-key-frame-change/9892>\
**Category:** Graphics & Virtual\
**Created:** [November 17, 2024, 9:55pm UTC](https://rossvideo.community/t/scripting-a-key-frame-change/9892 "2024-11-17T21:55:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emiliolopez](https://rossvideo.community/letter_avatar_proxy/v4/letter/e/34f0e0/32.png) [@emiliolopez](https://rossvideo.community/u/emiliolopez)\
**Post date:** [November 17, 2024, 9:55pm UTC](https://rossvideo.community/t/scripting-a-key-frame-change/9892/1 "2024-11-17T21:55:00Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![simonredmile](https://rossvideo.community/user_avatar/rossvideo.community/simonredmile/32/4102_2.png) [@simonredmile](https://rossvideo.community/u/simonredmile)\
**Post date:** [July 11, 2025, 9:22am UTC](https://rossvideo.community/t/scripting-a-key-frame-change/9892/2 "2025-07-11T09:22:00Z")

</div>

I answer this here;

[https://rossvideo.community/discussion/animated-editable-last-keyframe-editable](https://rossvideo.community/discussion/animated-editable-last-keyframe-editable)
