Mercurial > vegas-scripts
diff disable_resample.cs @ 1:32af787f8cb8
Migrate files from gist
committer: GitHub <noreply@github.com>
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Mon, 23 Jan 2023 23:25:44 -0500 |
parents | |
children | f3e30ce83303 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/disable_resample.cs Mon Jan 23 23:25:44 2023 -0500 @@ -0,0 +1,15 @@ +using Sony.Vegas; + +public class EntryPoint { + public void FromVegas(Vegas vegas) { + foreach (Track track in vegas.Project.Tracks) { + if (track.IsVideo()) { + foreach (TrackEvent evnt in track.Events) { + VideoEvent videoEvent = (VideoEvent)evnt; + VideoResampleMode VRMode = VideoResampleMode.Disable; + videoEvent.ResampleMode = VRMode; + } + } + } + } +} \ No newline at end of file