View Single Post
Old 10-17-2018, 07:16 AM   #1
tufb
Human being with feelings
 
Join Date: Dec 2017
Posts: 152
Default Lua: Replace item under mouse cursor; Copy and replace selected items

Copy and replace selected items

bfut_Copy item to clipboard.lua
bfut_Paste item from clipboard to selected items (replace).lua


Copies and replaces selected items, preserving position, length, mute status, etc. in the replaced items. Requires SWS extension.

How to use:
1. Select media item.
2. Run script "bfut_Copy item to clipboard".
3. Select other media item(s).
4. Run script "bfut_Paste item from clipboard to selected items (replace)".

NB: I use shortcuts similar to Ctrl+c, Ctrl+v.





Replace item under mouse cursor

bfut_Replace item under mouse cursor with selected item.lua

Replaces item under mouse cursor with selected item, preserving position, length, mute status, etc. in the replaced item. Requires SWS extension. (This is a full rewrite of a similar script by spk77.)

How to use:
1. Select media item.
2. Hover mouse over another item.
3. Run the script.

NB: Requires setting a hotkey or mouse modifier.

Installation
Directly from https://github.com/bfut/ReaScripts or
Copy and paste this URL in Extensions > ReaPack > Import a repository:
Code:
https://github.com/bfut/ReaScripts/raw/main/index.xml
Then install in Extensions > ReaPack > Browse packages.

Last edited by tufb; 11-18-2020 at 11:41 AM.
tufb is offline   Reply With Quote