diff --git a/Video/VideoAutoFlipper/VP_Presets/AspectratioFixer.eel b/Video/VideoAutoFlipper/VP_Presets/AspectratioFixer.eel index d02fc9e..899d44d 100644 --- a/Video/VideoAutoFlipper/VP_Presets/AspectratioFixer.eel +++ b/Video/VideoAutoFlipper/VP_Presets/AspectratioFixer.eel @@ -1,4 +1,4 @@ -// Aspectratio fixer +// VAF: Aspectratio fixer //@param1:p_bg_clr 'green/blue bg' 1 0 1 0.1 1 gfx_b = p_bg_clr; diff --git a/Video/VideoAutoFlipper/VP_Presets/BoxCrop.eel b/Video/VideoAutoFlipper/VP_Presets/BoxCrop.eel index 8a06384..6dc4ed6 100644 --- a/Video/VideoAutoFlipper/VP_Presets/BoxCrop.eel +++ b/Video/VideoAutoFlipper/VP_Presets/BoxCrop.eel @@ -1,4 +1,4 @@ -//Box Crop +// VAF: Box Crop //By Zly //@param[:varname] 'name' [defval minval maxval centval step] diff --git a/Video/VideoAutoFlipper/VP_Presets/Chroma.eel b/Video/VideoAutoFlipper/VP_Presets/Chroma.eel index 03b4271..70f9ae5 100644 --- a/Video/VideoAutoFlipper/VP_Presets/Chroma.eel +++ b/Video/VideoAutoFlipper/VP_Presets/Chroma.eel @@ -1,4 +1,4 @@ -// Chroma-key (RGB version) +// VAF: Chroma-key //@param1:mode '0=green,1=blue' 1 0 1 0.5 1 //@param2:p primary 1.01 0 6 3 .01 //@param3:rej rejection 3 0 6 3 .01 diff --git a/Video/VideoAutoFlipper/VP_Presets/Cropper.eel b/Video/VideoAutoFlipper/VP_Presets/Cropper.eel index bdab298..e149e55 100644 --- a/Video/VideoAutoFlipper/VP_Presets/Cropper.eel +++ b/Video/VideoAutoFlipper/VP_Presets/Cropper.eel @@ -1,4 +1,4 @@ -//Cropper +// VAF: Cropper //By Zly //@param1:left_cut "Left" 0 0 0.5 0.25 0.01 diff --git a/Video/VideoAutoFlipper/VP_Presets/Flipper.eel b/Video/VideoAutoFlipper/VP_Presets/Flipper.eel index d2fd7e7..dd6b9ab 100644 --- a/Video/VideoAutoFlipper/VP_Presets/Flipper.eel +++ b/Video/VideoAutoFlipper/VP_Presets/Flipper.eel @@ -1,4 +1,4 @@ -// Flipper +// VAF: Flipper //@param[:varname] 'name' [defval minval maxval centval step] //@param1:h_flip 'Horiz flip' 0 0 1 0.5 1 //@param2:v_flip 'Vert flip' 0 0 1 0.5 1 diff --git a/Video/VideoAutoFlipper/VP_Presets/Null.eel b/Video/VideoAutoFlipper/VP_Presets/Null.eel index 08c4ca6..1a4c2a6 100644 --- a/Video/VideoAutoFlipper/VP_Presets/Null.eel +++ b/Video/VideoAutoFlipper/VP_Presets/Null.eel @@ -1,3 +1,3 @@ -// Null +// VAF: Null //@param1:null "null" 0 -360 360 0 0.001 diff --git a/Video/VideoAutoFlipper/VP_Presets/Opacity.eel b/Video/VideoAutoFlipper/VP_Presets/Opacity.eel index 9c83592..d35e3ee 100644 --- a/Video/VideoAutoFlipper/VP_Presets/Opacity.eel +++ b/Video/VideoAutoFlipper/VP_Presets/Opacity.eel @@ -1,4 +1,4 @@ -//Opacity +// VAF: Opacity //@param1:opacity 'Opacity' 1 bg_img = input_ismaster() ? -2 : input_track(0); diff --git a/Video/VideoAutoFlipper/VP_Presets/PositionOffset.eel b/Video/VideoAutoFlipper/VP_Presets/PositionOffset.eel index 184b312..482c3dc 100644 --- a/Video/VideoAutoFlipper/VP_Presets/PositionOffset.eel +++ b/Video/VideoAutoFlipper/VP_Presets/PositionOffset.eel @@ -1,4 +1,4 @@ -//Position Offset +// VAF: Position Offset //@param[:varname] 'name' [defval minval maxval centval step] //@param1:p_x_offs 'X offset' 0 -1 1 0 0.001 //@param2:p_y_offs 'Y offset' 0 -1 1 0 0.001 diff --git a/Video/VideoAutoFlipper/VP_Presets/Pre-Compose.eel b/Video/VideoAutoFlipper/VP_Presets/Pre-Compose.eel index 7cd9622..c6276ca 100644 --- a/Video/VideoAutoFlipper/VP_Presets/Pre-Compose.eel +++ b/Video/VideoAutoFlipper/VP_Presets/Pre-Compose.eel @@ -1,2 +1,2 @@ -// Pre-Compose +// VAF: Pre-Compose gfx_blit(0, 0); \ No newline at end of file diff --git a/Video/VideoAutoFlipper/VP_Presets/Rotate.eel b/Video/VideoAutoFlipper/VP_Presets/Rotate.eel index 33822c9..ad8d3a7 100644 --- a/Video/VideoAutoFlipper/VP_Presets/Rotate.eel +++ b/Video/VideoAutoFlipper/VP_Presets/Rotate.eel @@ -1,4 +1,4 @@ -//Rotate +// VAF: Rotate //@param1:rotate 'rotate' 0 -360 360 0 1 //@param2:filter 'filter' 0 0 1 0.5 1 diff --git a/Video/VideoAutoFlipper/VP_Presets/Scale.eel b/Video/VideoAutoFlipper/VP_Presets/Scale.eel index 156978a..ab27ed0 100644 --- a/Video/VideoAutoFlipper/VP_Presets/Scale.eel +++ b/Video/VideoAutoFlipper/VP_Presets/Scale.eel @@ -1,4 +1,4 @@ -//Scale +// VAF: Scale //@param[:varname] 'name' [defval minval maxval centval step] //@param1:p_scale 'Scale' 1 0.01 2 1 //@param2:p_scale_x 'X Scale' 1 0.01 2 1 diff --git a/Video/VideoAutoFlipper/VP_Presets/SolidColorFill.eel b/Video/VideoAutoFlipper/VP_Presets/SolidColorFill.eel index ba2aff1..223af3e 100644 --- a/Video/VideoAutoFlipper/VP_Presets/SolidColorFill.eel +++ b/Video/VideoAutoFlipper/VP_Presets/SolidColorFill.eel @@ -1,4 +1,4 @@ -// Solid Color Fill +// VAF: Solid Color Fill //@param1:p_r "R" 1 0 1 0.5 0.05 //@param2:p_g "G" 0 0 1 0.5 0.05 //@param3:p_b "B" 0 0 1 0.5 0.05 diff --git a/Video/VideoAutoFlipper/Zly_VideoAutoFlipper.lua b/Video/VideoAutoFlipper/Zly_VideoAutoFlipper.lua index 149bdcc..3565d71 100644 --- a/Video/VideoAutoFlipper/Zly_VideoAutoFlipper.lua +++ b/Video/VideoAutoFlipper/Zly_VideoAutoFlipper.lua @@ -680,9 +680,10 @@ local VAF = { AddVFX = function(self, track, name, presset_name, force_add) + local fx_chroma = reaper.TrackFX_GetByName(track, "VAF: Chroma-key", false) local fx = reaper.TrackFX_GetByName(track, name, false) if fx == -1 or force_add then - fx = reaper.TrackFX_AddByName(track, "Video processor", 0, 1) + fx = reaper.TrackFX_AddByName(track, "Video processor", 0, fx_chroma ~= -1 and -1000-fx_chroma or 1) reaper.TrackFX_SetNamedConfigParm(track, fx, "renamed_name", name) reaper.TrackFX_SetNamedConfigParm(track, fx, "VIDEO_CODE", self.VP_Presets[presset_name]) end @@ -1282,7 +1283,7 @@ end function GUI:TAB_FAQ() local fla = 0 - | reaper.ImGui_WindowFlags_NoResize() + | ImGui.WindowFlags_NoResize() | ImGui.WindowFlags_AlwaysVerticalScrollbar() if ImGui.BeginChild(self.ctx, "AI", 0, 0, true, fla) then local max_line_len = 36