|
|
|
01-11-2017, 04:12 PM
|
#1
|
Human being with feelings
Join Date: Dec 2013
Posts: 166
|
How to import Lua script?
Hi
Could someone tell me please how to import Lua script? I'm on Reaper v.5311/64
Best,
Andrey
|
|
|
01-12-2017, 01:24 AM
|
#2
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,857
|
1) Open the Action List
2) Hit the Reascript [Load...] button
|
|
|
01-13-2017, 11:42 PM
|
#3
|
Human being with feelings
Join Date: Dec 2013
Posts: 166
|
Quote:
Originally Posted by solger
1) Open the Action List
2) Hit the Reascript [Load...] button
|
Very strange... When i did it first i can't load it. Thank anyway!
|
|
|
01-13-2017, 11:59 PM
|
#4
|
Human being with feelings
Join Date: Jul 2009
Posts: 7,595
|
just to be clear for everyone coming across this thread with the same question
loading just adds it to the action list, it doesn't run automatically. You only need to do this once.
after that you can search for, assign shortcut and run as needed.
|
|
|
01-14-2017, 01:21 AM
|
#5
|
Human being with feelings
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
|
To add another rather important thing:
You first should move a Script you wanna load in Reaper into Reaper's Script folder.
And then:
1) Open the Action List
2) Hit the Reascript [Load...] button and choose the Script.
Reason is, is that the Reascript Load function not really IMPORTS the Script into Reaper's Script folder.
(Which is abit cumbersome imho).
For instance:
Let's say you have a Script on your desktop.
You then do:
1) Open the Action List
2) Hit the Reascript [Load...] button and choose the Script.
You then delete the Script from desktop, maybe assuming the Script is imported into Script folder already.
Next time you wanna execute the Script in Reaper, Reaper gives error that it can't find the Script.
Maybe this all isn't the case for PC users, but for mac users, it certainly is.
|
|
|
01-14-2017, 10:05 AM
|
#6
|
Human being with feelings
Join Date: Jul 2009
Posts: 7,595
|
That's a good point Rob
moving or deleting a script from the system doesn't remove it from the action list, so attempting to run it will cause an error.
mpl has a script in ReaPack for this situation
Script: mpl_Delete nonexistent scripts from ActionList.lua
|
|
|
01-14-2017, 10:07 AM
|
#7
|
Human being with feelings
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
|
Wow, great tip Jon !
Wasn't aware of this handy one, thx !
|
|
|
01-15-2017, 03:29 AM
|
#8
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,857
|
Quote:
Originally Posted by AndreyMarchenko
Very strange... When i did it first i can't load it. Thank anyway!
|
Which lua script are you trying to load or use?
Can you maybe post a link ...
Quote:
Originally Posted by vanhaze
For instance:
Let's say you have a Script on your desktop.
You then do:
1) Open the Action List
2) Hit the Reascript [Load...] button and choose the Script.
You then delete the Script from desktop, maybe assuming the Script is imported into Script folder already.
Next time you wanna execute the Script in Reaper, Reaper gives error that it can't find the Script.
Maybe this all isn't the case for PC users, but for mac users, it certainly is.
|
It's the same on PC.
Moving or deleting the file will break the action since it basically just points to the script file using an absolute file path.
So in case you move the script file, you have the following options:
- Put the script file back to the original location
- Or edit the file-path in reaper-kb.ini
- Or remove the broken action from the action list and import the script file again
Last edited by solger; 01-15-2017 at 03:47 AM.
|
|
|
10-10-2019, 01:03 AM
|
#9
|
Human being with feelings
Join Date: Jul 2008
Posts: 1,850
|
Sorry for asking, but as its now 2019 and I am using latest Reaper, I have just downloaded a Custom Action and 3 scripts .RAR
Have extracted these, into 3 x .lua files and a 'ReaperKeyMap' file.
What do I add where and in what order for these to work? or do I add the whole .RAR file and these become extracted within Reaper itself?
Do I need SWS or any sort of add on at all before installing?
I believe once these are in Reaper, I can then use my own custom Action Key to trigger this?
|
|
|
10-10-2019, 07:14 AM
|
#10
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,857
|
Quote:
Originally Posted by buckman
... I have just downloaded a Custom Action and 3 scripts .RAR
Have extracted these, into 3 x .lua files and a 'ReaperKeyMap' file...
|
Which ones exactly? Can you please post links.
|
|
|
10-10-2019, 07:20 AM
|
#11
|
Human being with feelings
Join Date: Jul 2008
Posts: 1,850
|
Quote:
Originally Posted by solger
Which ones exactly? Can you please post links.
|
Yes;
https://drive.google.com/file/d/1ckd...RGJsmXRXS/view
What goes where exactly for this to run correctly?
|
|
|
10-10-2019, 07:36 AM
|
#12
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,857
|
Quote:
Originally Posted by buckman
|
When using ReaPack, the three scripts from me2beats are automatically installed into the [Main] and [Main (alt recording)] Section of the Action List: - set project bpm according to selected take name bpm.lua
- Paste BPM.lua
- Copy BPM.lua
If you want to install them manually: - Put the lua files into (a subfolder of) the Scripts folder in the Reaper resource path (Options > Show Reaper resource path ...)
- Load the lua files via the Action List into the [Main] Sections mentioned above
- Assign these actions to a key shortcut, a toolbar button, a menu, etc.
By the way, any specific reason why you're not installing these scripts directly via ReaPack?
ReaperKeyMap files- Put the Audio take to project tempo.ReaperKeyMap file, for instance, in the KeyMaps or Scripts folder in the Reaper resource path
- Then Import it into the Action List via the [Import/export] button at the bottom left of the Action List
- And assign it to a key shortcut, a toolbar button, a menu, etc.
|
|
|
04-08-2022, 10:26 AM
|
#13
|
Human being with feelings
Join Date: Feb 2015
Posts: 39
|
Quote:
Originally Posted by solger
1) Open the Action List
2) Hit the Reascript [Load...] button
|
I clicked Actions -> Show action list...
Where is the "Reascript [Load...] button"?
|
|
|
04-08-2022, 11:21 AM
|
#14
|
Human being with feelings
Join Date: Jul 2009
Posts: 7,595
|
Quote:
Originally Posted by kfj452
I clicked Actions -> Show action list...
Where is the "Reascript [Load...] button"?
|
in reaper 6 click on "new action..." button
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 05:12 AM.
|