- ReaScript Basics — Interview on REAPER blog / Part-1
- ReaScript Basics — Interview on REAPER blog / Part-2
- How to Learn ReaScript for REAPER
- Useful Tools for REAPER Scripters
- ReaScript: What can we Expect from v5 Pre-Releases?
- Advanced Actions Management: Import and Export Toolbars Buttons linked to Scripts, Change Script Path and Name
- Scripting for REAPER: General Guidelines
- ReaScript Video Tutorial — Part. 1: The Console Output
- ReaScript Video Tutorial — Part. 2: The Api Documentation
- ReaScript Video Tutorial — Part. 3: Get/Set First Selected Item Properties
- ReaScript Video Tutorial — Part. 4: Loop in Selected Items
- ReaScript Video Tutorial — Part. 5: Conditions Basics
- ReaScript Video Tutorial — Part. 6: Time Selection
- ReaScript Video Tutorial — Part. 7: Loop in Items on Selected Tracks
- ReaScript Video Tutorial — Part. 8: Using Native Actions
- ReaScript Video Tutorial — Part. 9: Preventing Bugs
- ReaScripts Templates Repository on GitHub
Scripts are powerful. But as Cockos developer’s Jeffos reminds me when I started:
With great power comes great responsibility
What you will learn in this lesson is very important, for all people who make scripts for REAPER.
In this video, you will see:
- that scripts can set invalid values to a project
- how to correct these invalid values
- how to set new values, being sure that they are balid
It is not as complicated as it sounds: it is just basic conditions. Basic, but important!
Code Snippet:
-- A function to set an Item Fade-Out Length in security. function SetItemFadeOut(item, item_len, fade_out_len) fade_in_len = reaper.GetMediaItemInfo_Value(item, "D_FADEINLEN") max_value = item_len - fade_in_len if fade_out_len > max_value then fade_out_len = max_value end --[[ Optionnal if fade_out_len < 0 fade_out_len = 0 end ]] reaper.SetMediaItemInfo_Value(item, "D_FADEOUTLEN", fade_out_len) end
Next videos will show you how and why using tables in ReaScript.
Help us translate the subtitles of this video in your language using Amara.org !