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

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).


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:
Ultraschall-API - a Lua-functions-library4Reaper:
Reaper Internals - Developerdocs4Reaper:
mespotine is offline   Reply With Quote