Quote:
Originally Posted by mespotine
Oh, didn't know that
How can I find them. Via ReaPack?
One thing still missing, that I should write a small code-snippet for insertion into such a script, that gives feedback to the user, if Ultraschall-API is not installed.
|
Try:
Code:
local UltraSchall, err = loadfile(reaper.GetResourcePath().."/UserPlugins/ultraschall_api.lua")
if err then reaper.MB("Couldn't load Ultraschall:\n\n"..err, 0); return; end
UltraSchall()
For performance you'd be better off having US return itself so it can be stored in a local variable rather than a global. The difference can be significant for scripts accessing it frequently.