API
beforePath = reaper.AZ_SetProjectInfoRecPath(proj, path)
API Detail
| Argument |
Description |
Type |
Required/Optional |
Default |
proj |
Target project (0 for the current project) |
ReaProject |
Required |
- |
path |
Save path for recordings to set |
string |
Required |
- |
▼Output
| Return value |
Description |
Type |
Value on failure |
beforePath |
Recording save path before the change |
string |
Empty string |
▼Possible errors
| Condition |
Error |
Error code |
| The path is protected (path restriction) |
ProtectedPath |
119 |
| The path restriction settings file (path_policy.yaml) is invalid |
PathPolicyInvalid |
120 |
SIMPLE SCRIPT
dofile(reaper.AZ_GetLuaInitPath())
require("reaper_AZSTOKE_SILVER")
proj = 0
path = "C:/Rec/Session01"
beforePath = reaper.AZ_SetProjectInfoRecPath(proj, path)
Msg(beforePath)
API
beforePath = AZ_SetProjectInfoRecPath(proj, path)
API Detail
| Argument |
Description |
Type |
Required/Optional |
Default |
proj |
Target project (None for the current project) |
ReaProject |
Required |
- |
path |
Save path for recordings to set |
string |
Required |
- |
▼Output
| Return value |
Description |
Type |
Value on failure |
beforePath |
Recording save path before the change |
string |
Empty string |
▼Possible errors
| Condition |
Error |
Error code |
| The path is protected (path restriction) |
ProtectedPath |
119 |
| The path restriction settings file (path_policy.yaml) is invalid |
PathPolicyInvalid |
120 |
SIMPLE SCRIPT
import sys
sys.path.append(RPR_GetResourcePath() + r"/UserPlugins")
from RIGDOCKS_python import *
from AZSTOKE_SILVER_python import *
proj = None
path = "C:/Rec/Session01"
beforePath = AZ_SetProjectInfoRecPath(proj, path)
Msg(beforePath)