diff Disable Resample.cs @ 4:d32ae6be32a4

*: mass rename files committer: GitHub <noreply@github.com>
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Mon, 23 Jan 2023 23:35:06 -0500
parents disable_resample.cs@f3e30ce83303
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Disable Resample.cs	Mon Jan 23 23:35:06 2023 -0500
@@ -0,0 +1,14 @@
+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;
+					videoEvent.ResampleMode = VideoResampleMode.Disable;
+				}
+			}
+		}
+	}
+}