Prev Previous Post   Next Post Next
Old 09-04-2018, 03:25 PM   #1
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default (Linux): Insert the last file exported from a plugin

When running Windows plugins under Wine, we unfortunately lose the ability to drag and drop files from a plugin to Reaper - the obvious example is drum loops from EZDrummer, MT PowerDrumKit, etc.

The good news, however, is that many plugins DO still export that file to somewhere on your disk. If you know where they put it, you can navigate there and drag the file into Reaper from your file browser.

Or... you could just use this:



It automates the process by searching a given folder for the most recent file, can be expanded to work with additional plugins, and allows saving settings to a separate action in the Action List so you can bind them to a shortcut key, etc.

Installation:

ReaPack. Wow, that was hard.

As with most of my other scripts, you'll need to have my GUI library installed as well. It's on ReaPack too - install the package, then find and run "Set Lokasenna_GUI v2 library path" in your action list.

How to find files exported from a plugin:

(These instructions are also available by clicking the [?] button in the script window)

Plugins will normally export files to a consistent location, often with the same, or a similar, filename. If you know the format of your plugin's exported filenames, you can enter the following in a terminal to find the export path:

Code:
find -name "<filename>"
Known formats:

EZDrummer 2: "Variation*.mid"
MT PowerDrumKit: "mtpdk.mid"

If you don't know the exported filename, export a file and then run (using MIDI as an example):

Code:
ls -alt ~/.wine/**/*.mid | head
The most recent file should have the path you want.
(Be careful of doing this if it's going to end up scanning your whole MIDI library or something)

Please let me know the formats for any additional plugins and I'll add them to the list.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate

Last edited by Lokasenna; 09-05-2018 at 05:49 AM.
Lokasenna is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:21 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.