Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
-- @description Conform project using metadata (post-production tools)
-- @author AZ
-- @version 0.7
-- @changelog
-- - New improved EDL parser that can cover different EDL text formatting more wider.
-- - Better handling overlapped items.
-- @version 0.7.1
-- @changelog - Respect project time offset
-- @provides
-- az_Conform project using metadata (post-production tools)/az_Conform project_Core.lua
-- [main] az_Conform project using metadata (post-production tools)/az_Rename takes with last used settings (post-production tools).lua
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,7 @@ function MainWindow(OptTable, windowName)


--------------
function frame()
MIN_luft_ZERO = reaper.parse_timestr_pos('00:00:00:01', 5) / 4

function frame()
reaper.ImGui_PushFont(ctx, font)

--About button
Expand Down Expand Up @@ -305,6 +303,11 @@ function MainWindow(OptTable, windowName)
end
end

reaper.ImGui_SameLine(ctx)
reaper.ImGui_PushFont(ctx, fontSep)
reaper.ImGui_Text(ctx, 'Note: EDL must be CMX 3600')
reaper.ImGui_PopFont(ctx)

showEDLsNames(EDL)

--Source tracks
Expand Down Expand Up @@ -744,6 +747,8 @@ function MainWindow(OptTable, windowName)
function loop()
PrjTimeOffset = -reaper.GetProjectTimeOffset( 0, false )

MIN_luft_ZERO = ( reaper.parse_timestr_pos('00:00:00:01', 5) - PrjTimeOffset ) / 4

PrFrRate = reaper.SNM_GetIntConfigVar( 'projfrbase', -1 )
PrDropFrame = reaper.SNM_GetIntConfigVar( 'projfrdrop', -1 )

Expand Down Expand Up @@ -872,8 +877,6 @@ function AnalyseEDLs(EDLs, timeTreshold) --table of pathes
local prevBlockNumber, curBlockNumber = 0, 0
local itemsList = {}
local block
--local fadelen
--local clip

for line in io.lines(EDLfile) do
line = line:gsub('^%s*(.-)%s*$', '%1') --remove spaces at edges
Expand Down Expand Up @@ -984,8 +987,8 @@ function AnalyseEDLs(EDLs, timeTreshold) --table of pathes

clip.SrcIn = reaper.parse_timestr_pos( clip.SrcIn, 5 ) - PrjTimeOffset
clip.SrcOut = reaper.parse_timestr_pos( clip.SrcOut, 5 ) - PrjTimeOffset
item.DestIn = reaper.parse_timestr_pos( item.DestIn, 5 ) - PrjTimeOffset - timeTreshold
item.DestOut = reaper.parse_timestr_pos( item.DestOut, 5 ) - PrjTimeOffset - timeTreshold
item.DestIn = reaper.parse_timestr_pos( item.DestIn, 5 ) - timeTreshold -- - PrjTimeOffset
item.DestOut = reaper.parse_timestr_pos( item.DestOut, 5 ) - timeTreshold -- - PrjTimeOffset

item.Type = block.main[1]['track']
table.insert(item.Clips, copy(clip) )
Expand Down Expand Up @@ -1051,8 +1054,8 @@ function AnalyseEDLs(EDLs, timeTreshold) --table of pathes

clip.SrcIn = reaper.parse_timestr_pos( clip.SrcIn, 5 ) - PrjTimeOffset
clip.SrcOut = reaper.parse_timestr_pos( clip.SrcOut, 5 ) - PrjTimeOffset
item.DestIn = reaper.parse_timestr_pos( item.DestIn, 5 ) - PrjTimeOffset - timeTreshold
item.DestOut = reaper.parse_timestr_pos( item.DestOut, 5 ) - PrjTimeOffset - timeTreshold
item.DestIn = reaper.parse_timestr_pos( item.DestIn, 5 ) - timeTreshold -- - PrjTimeOffset
item.DestOut = reaper.parse_timestr_pos( item.DestOut, 5 ) - timeTreshold -- - PrjTimeOffset

item.Type = block.main[i]['track']

Expand Down