I'm specifically thinking of the keyframe seting being set to "linear" by default, which I'd like to be set to "smooth" always. But there are a number of other settings where it would be handy to be able to change the defaults.
I would like to have that pan/crop keyframe choice too, but there doesn't seem to be any way within Vegas Pro or its Internal Preferences to change the default from Linear to Smooth. I'd really like to know if there is a way to do this without the (risky) need to hack the registry.
You can go through all keyframes after the fact and change them to whatever type you want them to be using a script. I'll work up a tutorial that shows changing:
Envelopes (velocity, volume, mute, etc... These are "smooth" by default but the script could change them to something else as well)
Audio effect animation envelopes
Track Motion/Glow/Shadow/3D keyframes
Pan/Crop keyframes
OFX Effect Parameter keyframes (this is the most complicated of them all but will include event level, track level, project level, and media level - fortunately once you have one done, the rest are simple calls to the same routine.)
Are there any other keyframes you'd like to see adjusted?
@jetdv Hi, I'd like Envelopes to have Hold as the default but as with @Mindmatter I don't know much about scripts. I successfully added the script to Documents - Vegas Script Menu. It shows in VP, I select Pan Crop keyframes or the timeline event &/or it's envelope points, run script & nothing happens, (I don't even get the error window pop-up which I often do when trying out new scripts 😂)
Can you explain the application procedure, I'll wait for your video if you'd prefer . Thanks.
-----------
Ah, If I change the keyframes to Hold then run the script it changes them to Smooth 👍 The default is already Smooth.. I see Smooth listed in the Script several times, do I just change the ... I'll have a play.
In the folder header View - tick the box - File name extensions
Change the name of your new text document to whatever you want ending in .cs
Open the text document, copy & paste the script in @jetdv comment,
Save - close.
In VP - Tools - Scripting you should see the script, clicking it will change the keyframes.
Scripts can be added to the UI for easy access .
Forgive me if you know all this 👍
Thanks so much for your help @Gid! I didn't know any of this. I get an error message though:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Test_Script.Class1.Main(Vegas vegas) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at ScriptPortal.Vegas.ScriptHost.ScriptManager.Run(Assembly asm, String className, String methodName) at ScriptPortal.Vegas.ScriptHost.RunScript(Boolean fCompileOnly)
While jetdv is brilliant at creating scripts for Vegas Pro, the ability to set default settings such as the default setting for pan/crop keyframing nodes should be available natively in Vegas Pro - IMO anyway. Really, 'Smooth' should be the default setting rather than 'Linear' which gives a 'jerky' sudden change to pan/crop's motion.
@Mindmatter I'd have to see the VEG file in order to see what might be causing the issue. I tested with an empty event and adjustment event on the timeline and those are two things that can cause scripts to fail. I need to try to duplicate the error and using your VEG file to test with would be a good start.
I think I'm just confused. I opened a new project, added a jpg, ran the script and all pan crop keyframes are now set to smooth, But I did not see the choice menu you posted.Or is that the normal keyframe menu? Ok just got this - when setting a keyframe to either choice, all the following ones have the same atribute. Is that how you intended it to work? Thanks!
@Mindmatter Hi, sorry been a busy day, glad you got it sorted, to be honest that error msg doesn't mean anything to me so @jetdv is best to work that out if you still have problems 👍
Ok just got this - when setting a keyframe to either choice, all the following ones have the same atribute. Is that how you intended it to work?
That's the way it is, I just opened VP21 to check, when you change the option in the pic below that is then the default for future keyframes, (the script essentially changes that box)
@Mindmatter there is no screen. I suggested it might be better if there was a selection screen so you could pick the pieces you wanted changed. Right now it just does everything with no input.