View Single Post
Old 01-18-2019, 09:34 AM   #8
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 829
Default

Toy around with them.

Type in the function and put into the parameters, what they expect. If they fail, they will tell you that and you can learn from that.

In your case: try to set(reaper.SetExtState) an extstate and successfully get it(reaper.GetExtState).

like:

my_new_extstate_section = "sectionname"
my_new_extstate_key = "keyname"
my_new_extstate_value = "I am the value. Try to get or I will feel abondaned in here."

reaper.SetExtState(my_new_extstate_section, my_new_extstate_key, my_new_extstate_value, false)

extstate_value = reaper.GetExtState("sectionname", "keyname")


Toy around with it, until it does, what you want and move on to the next step. And don't be afraid of mistakes. This is the fastest way of learning the basics of ReaScript and Lua.


A great resource is also X-Raym's tutorial on ReaScript:

https://www.extremraym.com/en/reascript-basics-part1/
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote