Skip to content

Commit

Permalink
Remove unnecessary use of projextstate
Browse files Browse the repository at this point in the history
  • Loading branch information
chmaha committed Feb 15, 2025
1 parent 6e8a4f6 commit 4f829e8
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions ReaSplice/ReaSplice_Prepare Takes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ function main()
end
local cur_pos = (GetPlayState() == 0) and GetCursorPosition() or GetPlayPosition()
local start_time, end_time = GetSet_ArrangeView2(0, false, 0, 0, 0, 0)
SetProjExtState(0, "ReaSplice", "arrangestarttime", start_time)
SetProjExtState(0, "ReaSplice", "arrangeendtime", end_time)
local num_of_project_items = CountMediaItems(0)
if num_of_project_items == 0 then
MB("Please add your takes before running...", "Prepare Takes", 0)
Expand Down Expand Up @@ -103,17 +101,12 @@ function main()
vertical()
end

local _, prev_start_time = GetProjExtState(0, "ReaSplice", "arrangestarttime")
local _, prev_end_time = GetProjExtState(0, "ReaSplice", "arrangeendtime")
GetSet_ArrangeView2(0, true, 0, 0, prev_start_time, prev_end_time)
GetSet_ArrangeView2(0, true, 0, 0, start_time, end_time)
SetEditCurPos(cur_pos, 0, 0)

local scroll_up = NamedCommandLookup("_XENAKIOS_TVPAGEHOME")
Main_OnCommand(scroll_up, 0)

SetProjExtState(0, "ReaSplice", "arrangestarttime", "")
SetProjExtState(0, "ReaSplice", "arrangeendtime", "")

if empty then
MB(
"Some folder tracks are empty. If the folders are not completely empty, items " ..
Expand Down

0 comments on commit 4f829e8

Please sign in to comment.