How to lock keyframes to actual clip?

Fresh wrote on 10/22/2021, 6:28 PM

Hi - this is probably a dumb question, but it's a problem i run into often and i can't figure out how to solve it - hopefully i can explain it clearly.

I use a lot of keyframes to pan in and out of clips - however - if i decide to shorten or lengthen the clip, the keyframes i created seem to move around with the adjustments of the clip. I'm trying to figure out how to lock the keyframes to the clip, so that changing the clip's length doesn't affect existing keyframes.

Is there an option to do that? Every time i make minute adjustments to the clip length, i have to go in a re-adjust all the keyframes to match their intended positions and it's driving me crazy.

Thanks in advance for any suggestions or solutions.

 

Comments

gary-rebholz wrote on 10/26/2021, 2:20 PM

It's a bit unclear what you're saying. But if you mean that you're using the Event Pan/Crop window and adding keyframes there, then those keyframes might not actually be moving--they just look like it. The Pan/Crop window shows a timeline that is equal in length to the event on the main timeline. When you trim the event on the main timeline, the Pan/Crop timeline scale changes to reflect that edit. Thus it looks like your keyframes moved, but they really didn't. To see this, put a key frame every two seconds (or some consistent distance). Then trim the timeline event. Even though the Pan/Crop timeline looks like it changed, you'll see that your key frames are still every two seconds.

Now, if what you want to happen is that you place a keyframe at the exact midpoint of your event and then change the length of the event then you want the keyframe to still be at the midpoint, you can't do that. Keyframe placement is relative to time and will always stay at the time you specified. If you change the length of the event, then you'll have to manually adjust to the new midpoint.

wwaag wrote on 10/28/2021, 5:04 PM

@Fresh

Just uploaded a new script to the HappyOtterScripts Free Tools library that should do what you want. You can change the length of the selected event and all pan/crop keyframes will remain in their relative position. Here's a link to a post which describes the new tool, provides a demo, and provides a link where it can be freely downloaded. https://www.vegascreativesoftware.info/us/forum/happyotterscripts-free-tools--118349/?page=4#ca826088

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Fresh wrote on 10/28/2021, 5:20 PM

Guys thank you for your advice/suggestions. Gary you may be correct and i imagined the problem. Nevertheless i'm going to see if the 'tool' suggested by wwaag works. Cheers!

Fresh wrote on 10/28/2021, 5:46 PM

So i went and downloaded the script and tried it out - that does solve my problem, so thank you. Also some other good scripts there i didn't know about.


https://tools4vegas.com/keyframe-adjuster/

 

wwaag wrote on 10/28/2021, 5:51 PM

@Fresh

Glad that it works for you. I found your question one of interest and a bit of a challenge in terms of how it might be done through scripting.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.