Last updated:

ReaScript Video Tutorial — Part. 4: Loop in Selected Items

In this tutorial, you will learn how to get and set properties of all selected items.

Note: Audio is not perfect but next videos will be better !

Code Snippets:

selected_items_count = reaper.CountSelectedMediaItems(0)

-- INITIALIZE loop through selected items
for i = 0, selected_items_count-1  do
	-- GET ITEMS
	item = reaper.GetSelectedMediaItem(0, i) -- Get selected item i
	
	-- DO SOMETHING HERE
	
end -- ENDLOOP through selected items

Next videos will speak about conditions. It will start to be more sophisticated !

Hope you like it !

Help us translate the subtitles of this video in your language using Amara.org !