Skip to content

Commit 9c9da5c

Browse files
authored
Update BuyOne_Render each item in place separately (guide inside).lua (#814)
1 parent ef0de68 commit 9c9da5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rendering/BuyOne_Render each item in place separately (guide inside).lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ local rend_trks_t = {}
385385
ACT(40421) -- Item: Select all items in track
386386
ACT(40290) -- Time selection: Set time selection to items
387387
local start, fin = r.GetSet_LoopTimeRange(false, false, 0, 0, false) -- GET // isSet, isLoop, start, end, allowautoseek
388-
local fin = is_folder and Get_Folder_Rightmost_Item_RightEdge(k) or fin -- if folder, extent time selection to the right edge of the last item therein
388+
local fin = is_folder and Get_Folder_Rightmost_Item_RightEdge(k) or fin -- if folder, extend time selection to the right edge of the last item therein
389389
local start, fin = r.GetSet_LoopTimeRange(true, false, 0, fin, false) -- SET
390390
if TAIL then
391391
r.GetSet_LoopTimeRange(true, false, start, fin + TAIL, false) -- extend time selection by TAIL value
@@ -535,7 +535,7 @@ local index = index + 1 -- increment
535535
r.SetMediaItemTake_Source(take, new_src) -- assign the renamed file as a source
536536
ACT(40439) -- Item: Set selected media online
537537
index = index + 1
538-
local ok, message = os.remove(f_path..f_name..'.reapeaks') -- remove lingering peak files with old file names; may leave lone non-deleted peak files if placed in the middle of the routine, could be because the source file is valid until renamed
538+
local ok, message = #r.GetPeakFileName(f_path..f_name, '') > 0 and os.remove(r.GetPeakFileName(f_path..f_name, '')) -- remove lingering peak files with old file names; may leave lone non-deleted peak files if placed in the middle of the routine, could be because the source file is valid until renamed
539539
end
540540
end
541541

0 commit comments

Comments
 (0)