![]() |
#1 |
Human being with feelings
Join Date: May 2017
Location: Somewhere over the Rainbow
Posts: 6,882
|
![]()
I noticed, that RENDER_TARGETS_EX does not work, as expected.
It is supposed to return the filenames to be rendered null-separated. However, it doesn't work at all or the string is truncated at the first \0-byte. At least on Lua, the following code-snippet shows the behavior. I get the length of the returned strings by RENDER_TARGETS and RENDER_TARGETS_EX and they differ heavily, with the _EXE one truncated at the end of the first filename. Code:
-- 1. Add two files into the project for two items -- 2. Select MediaItems -- 3. Set "Selected media items" as source -- 4. Set Directory to c:\ -- 5. Set Filename to A: so it would create two filenames -- 6. Hit Save Settings -- The following code should return a length of around 25 for both filenames. -- However, the length of RENDER_TARGETS_EX is truncated at 12(the end of the first filename). A, A1=reaper.GetSetProjectInfo_String(0, "RENDER_TARGETS", "", false) A2=A1:len() B1, B2=reaper.GetSetProjectInfo_String(0, "RENDER_TARGETS_EX", "", false) B3=B2:len() Reaper 6.69x64 on Windows 7 Edit: Same problem happens in EEL2: Code:
A=GetSetProjectInfo_String(0, "RENDER_TARGETS", #A1, false); A2=strlen(#A1); B=GetSetProjectInfo_String(0, "RENDER_TARGETS", #B1, false); B2=strlen(#B1);
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - ReaGirl - a GuiLib for guis working for blind people Last edited by Meo-Ada Mespotine; 11-13-2022 at 03:47 AM. |
![]() |
![]() |
![]() |
#2 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,335
|
![]()
Thanks, fixing!
|
![]() |
![]() |
![]() |
Thread Tools | |
|
|