"Smoothing" set at Full strength

mrBun wrote on 9/8/2005, 1:32 AM
Is there any way to;
A. reset the keyframe interpolation(smoothness) to zero as a default...my motion is looking "jerky"... , I have just rendered 2 days of solid animation and am reluctant to go in and reset thousands of keyframes individually....dragging over the timeline in the track editor's keyframes, selects all keys, but the interpolation reset isn't "sticky" ....oh yeah...AAAAAAAGH!!!...(oops, sorry 'bout the outburst)....can anyone help me?

Comments

JohnnyRoy wrote on 9/8/2005, 5:24 AM
I wish there was a way to default the smoothness. This would be a very welcome feature. Here is a script that will unsmooth all the keyframes for every event that is selected:
/** 
* Program: UnSmoothKeyframes.js
* Description: This script will set the smoothness to zero for all the keyframes on
* any selected event.
* Author: Johnny (Roy) Rofrano jrofrano at vasst.com
* Date: September 8, 2005
*
**/
import System.Windows.Forms;
import Sony.Vegas;

try
{
var count :int = 0;
for(var track : Track in Vegas.Project.Tracks)
{
if (!track.IsVideo()) continue;

for(var videoEvent : VideoEvent in track.Events)
{
if (!videoEvent.Selected) continue;

for(var keyframe : VideoMotionKeyframe in videoEvent.VideoMotion.Keyframes)
{
keyframe.Smoothness = 0;
count++;
}
}
}

MessageBox.Show("UnSmoothed " + count + " keyframes.");
}
catch (e)
{
MessageBox.Show(e);
}
~jr
dcrandall wrote on 9/8/2005, 6:44 AM
JohnnyRoy,

Thank you for supplying the script.......it's going to save me a lot of time.

-Dan
  • Velocity Micro Z55 Desktop Computer
  • ASUS Prime Z270M-Plus Motherboard
  • Intel(R) Core(TM) i7-7700K CPU @ 4.2GHz
  • Memory: 16GB DDR4-2400MHz
  • 4GB NVIDIA GeForce GTX 1050 Ti Driver Version: Studio Driver 452.06
  • Windows 10 Home 64bit v1909
  • Vegas Pro 18.0 Build 284
JohnnyRoy wrote on 9/8/2005, 9:32 AM
Dan, You’re welcome. I’ve uploaded it to the VASST free resources as a download under Automation Scripts so everyone can find it: UnSmooth Resources.

~jr
mrBun wrote on 9/8/2005, 5:33 PM
thanks JohnnyRoy, the script worked a treat!..... it seems that if you set the smoothing to 0% when placing the 1st keyframe, Vegas remembers and it is sticky.... unfortunately in my case the problem wasn't noticable until I had rendered and by then it was too far down the track to go back in and fix it.... maybe a timeline "key/curve editor " would be a handy thing for future builds.... especially as Vegas appears to be so well suited to compositing ....anyway thanks again for the helping hand =)
FrigidNDEditing wrote on 9/8/2005, 8:10 PM
GOD BLESS YOU JOHNNY ROY!!!!!

You have made my smile - as I will use this ever so much.

I Can't thank you enough!!!

thank you thank you thank you thank you thank you thank you thank you.... etc...

:D

THANK YOU!!!

Dave
JohnnyRoy wrote on 9/9/2005, 4:31 AM
Dave, You are very, very welcome. I didn’t realize people needed this so badly. If you have any script needs you can always send me an email with ideas. Glad I could help.

~jr
johnmeyer wrote on 9/9/2005, 9:52 AM
Johnny,

I tried to write this script in response to the original post but didn't realize that "interpolation" used to be called "smoothness" so I couldn't find it in the API.

Wonderful script. Thank you!
Grazie wrote on 9/9/2005, 10:44 PM
JR! - Thanks. I wish I'd had this 2 months back.

I don't know I need a script, until I think it is possible to write one. Meaning, "unsmoothing" seems to me, so Vegas-HARD-WIRED that I "smoothed" over there being a possibility. Sometimes I ask for a script to be told that access to that part of Vegas is presently not possible. See what I'm getting at? Are there other areas of the Vegas beast we/you are getting access too?

Again, thank you!

Grazie