Skip to content

Commit

Permalink
Add special tracks dialog option
Browse files Browse the repository at this point in the history
  • Loading branch information
chmaha committed Dec 13, 2024
1 parent 3f3b4bf commit 1c6562e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 10 deletions.
19 changes: 14 additions & 5 deletions ReaClassical/ReaClassical_ExplodeMultiChannel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ function main()
return
end

if num_of_items == 0 then
MB(error_message, "Explode Multi-Channel", 0)
return
end
if num_of_items == 0 then return false end
-- if num_of_items == 0 then
-- MB(error_message, "Explode Multi-Channel", 0)
-- return
-- end

-- if num_of_items == 0 then return false end

local return_code, channel_count = check_channel_count(num_of_items)
if return_code == -2 then
Expand Down Expand Up @@ -160,6 +161,14 @@ function main()
local mixer_tracks = create_mixer_table()
show_track_name_dialog(mixer_tracks)

local response = MB("Would you like to add any special tracks (aux, submix, room tone, reference)?",
"Horizontal Workflow", 4)
if response == 6 then
local add_special_tracks = NamedCommandLookup("_RS9c0fa5c1aae86bf8559df83dd6516c0aa35e264f")
Main_OnCommand(add_special_tracks, 0)
end


if updated_folders == 1 then -- run F7 again
Main_OnCommand(F7_sync, 0)
else -- run F8 again
Expand Down
10 changes: 8 additions & 2 deletions ReaClassical/ReaClassical_Horizontal Workflow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,18 @@ function main()
SetProjExtState(0, "ReaClassical", "Workflow", "Horizontal")
local success = show_track_name_dialog(mixer_track_table)
if success then
local response = MB("Would you like to automatically assign recording inputs based on track naming?",
local response1 = MB("Would you like to automatically assign recording inputs based on track naming?",
"Horizontal Workflow", 4)
if response == 6 then
if response1 == 6 then
local auto_set = NamedCommandLookup("_RS4e19e645166b5e512fa7b405aaa8ac97ca6843b4")
Main_OnCommand(auto_set, 0)
end
local response2 = MB("Would you like to add any special tracks (aux, submix, room tone, reference)?",
"Horizontal Workflow", 4)
if response2 == 6 then
local add_special_tracks = NamedCommandLookup("_RS9c0fa5c1aae86bf8559df83dd6516c0aa35e264f")
Main_OnCommand(add_special_tracks, 0)
end
end
copy_track_names(track_table, mixer_track_table)
end
Expand Down
12 changes: 9 additions & 3 deletions ReaClassical/ReaClassical_Vertical Workflow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,18 @@ function main()
SetProjExtState(0, "ReaClassical", "Workflow", "Vertical")
local success = show_track_name_dialog(mixer_table)
if success then
local response = MB("Would you like to automatically assign recording inputs based on track naming?",
"Vertical Workflow", 4)
if response == 6 then
local response1 = MB("Would you like to automatically assign recording inputs based on track naming?",
"Horizontal Workflow", 4)
if response1 == 6 then
local auto_set = NamedCommandLookup("_RS4e19e645166b5e512fa7b405aaa8ac97ca6843b4")
Main_OnCommand(auto_set, 0)
end
local response2 = MB("Would you like to add any special tracks (aux, submix, room tone, reference)?",
"Horizontal Workflow", 4)
if response2 == 6 then
local add_special_tracks = NamedCommandLookup("_RS9c0fa5c1aae86bf8559df83dd6516c0aa35e264f")
Main_OnCommand(add_special_tracks, 0)
end
end
copy_track_names(table, mixer_table)
end
Expand Down

0 comments on commit 1c6562e

Please sign in to comment.