top of page
- Script Code -

dofile(reaper.AZ_GetLuaInitPath())


list = {"A","B","C","D","E","F"}

for i = 1,6 do

Msg(list[i])

end


table.remove(list)

for i = 1,6 do

Msg(list[i])

end


table.remove(list,2)

for i = 1,6 do

Msg(list[i])

end

- Warm Up -

No preparation required

- Script Detail -

dofile(reaper.AZ_GetLuaInitPath())


  • Loading the initial settings for the Lua version of RIGDOCKS


list = {"A","B","C","D","E","F"}

for i = 1,6 do

Msg(list[i])

end


  • Define an array.

  • Output the values of array indexes (1 to 6) to the console.


table.remove(list)


  • Remove the end of the array.


for i = 1,6 do

Msg(list[i])

end


  • Output the values of array indexes (1 to 6) to the console.


table.remove(list,2)


  • Delete the value at index (2) of the array.


for i = 1,6 do

Msg(list[i])

end

- API LINK -

Beginner

AZ_tableRemove

Delete a part of an array

01_BRONZE_ss_edited.png
01_SILVER_edited_edited.png
03_GOLD_edited_edited.png
bottom of page