Old 07-21-2017, 06:32 AM   #1
Flaneurette
Human being with feelings
 
Join Date: Dec 2016
Posts: 373
Default Getting into LUA

So since it's summer vacation here, and have nothing else to do, I am getting into coding LUA. I've been a programmer, and I know a couple of languages, and the most recently is Python. Going to learn LUA now, as I notice that it's the best thing for Reaper. My previous Python experience within Reaper wasn't happy, especially for Mac.

Anyway, after seeing Lokasenna's GUI, I decided LUA is the way to go forward from now on, and I will cease Python coding for Reaper.

Any hints for getting me up to speed?

Also, I am going to translate my Python scripts to LUA. Are there any converters, translators for this? or do I have to do it manually?
Flaneurette is offline   Reply With Quote
Old 07-21-2017, 08:35 AM   #2
EpicSounds
Human being with feelings
 
EpicSounds's Avatar
 
Join Date: Jul 2009
Posts: 7,592
Default

https://youtu.be/0Dwonn3Pe2Q?list=PL...aHLs5G4vOcyLF8

This playlist from X-Raym. Watch with captions for English.

and Adam's book
https://adamtcroft.com/reascript-book
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
EpicSounds is offline   Reply With Quote
Old 07-21-2017, 08:51 AM   #3
Flaneurette
Human being with feelings
 
Join Date: Dec 2016
Posts: 373
Default

Nice! oh well! it's high time to refresh my French as well.
Flaneurette is offline   Reply With Quote
Old 07-21-2017, 10:11 AM   #4
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

@Flaneurette
Quote:
Also, I am going to translate my Python scripts to LUA. Are there any converters, translators for this? or do I have to do it manually?
Manually, but a serie of search/replace can do a lot of work for you, especially if you know regex :P

Hope you will enjoy the serie !

Also, for basic Lua introduction,
Lua tutorial
Less complete, but more readable than the official online guide :P

Have fun !

@EpicSounds
Thanks :P
X-Raym is offline   Reply With Quote
Old 07-24-2017, 03:37 AM   #5
Flaneurette
Human being with feelings
 
Join Date: Dec 2016
Posts: 373
Default

Nevermind. From what I've seen in LUA so far, is that it doesn't do anything better than Python. In fact, with Python I can do more, especially GUI wise. (maybe Pyforms, Kivy).

Python works fine for me, but there are a lot of issues for Mac users. So both LUA and Python have a trade-off. I'm sticking with Python though, as I'm creating these scripts first and foremost for myself.
Flaneurette is offline   Reply With Quote
Old 07-24-2017, 08:31 AM   #6
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

@flaneurette
It is not really python vs lua, but they are integrated in REAPER which maters
. Lua for reaper doesnt need additional libraries and seems more performant than python.

But indeed I think you can have extra libraries in reaper with python, not in lua.
X-Raym is offline   Reply With Quote
Reply

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 09:31 PM.


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