Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0613· openaiHugging Face Suzhen/CodeChat

make a reaper script to move all effect with the name "SS" down to be the last on the…

  1. User

    make a reaper script to move all effect with the name "SS" down to be the last on the chain

  2. Assistant

    Sure! Below is a Reaper script that moves all effects with the name "SS" to the end of the plugin chain:

    -- Get the selected track
    local track = reaper.GetSelectedTrack(0, 0)
    
    if track ~= nil then
        -- Count the number of FX on the track
        local fx_count = reaper.TrackFX_GetCount(track)
    
        -- Create a table to store the FX indexes with name "SS"
        local ss_indexes = {}
    
        -- Find the indexes of effects with name "SS"
        for i = 0, fx_count - 1 do
            local _, fx_name = reaper.TrackFX_GetFXName(track, i, "")
            if fx_name == "SS" then
                table.insert(ss_indexes, i)
            end
        end
    
        -- Move the "SS" effects to the end of the chain
        for _, index in ipairs(ss_indexes) do
            reaper.TrackFX_MoveToEndOfChain(track, index)
        end
    end
    

    To use this script, follow these steps:

    1. Open Reaper and select the track(s) containing the effects you want to move.
    2. Go to "Actions" in the Reaper menu and choose "Show action list" or use the shortcut Ctrl + Alt + A (Windows) or Cmd + Option + A (Mac).
    3. In the action list, click on "New" to create a new action.
    4. In the new action window, select the "Script" radio button and click "Load".
    5. Browse to the location where you saved the above script, select it, and click "Open".
    6. Click "Save" to save the new action.
    7. Close the action list.
    8. You can now assign a keyboard shortcut to this script by going to "Options" in the Reaper menu, selecting "Customize menus/toolbars," and finding the action under "Custom Actions."

    Now, whenever you want to move all effects named "SS" to the end of the chain, you can use the assigned keyboard shortcut or run the action from the action list menu.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.