Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 10-28-2022, 01:14 AM   #1
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,630
Default API: RENDER_TARGETS_EX not working on Lua and is not documented (FIXED)

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()
I also noticed, that it's missing from the API-docs, so maybe, I'm just holding it wrong...

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 - Donate, if you wish

On vacation for the time being...

Last edited by Meo-Ada Mespotine; 11-13-2022 at 03:47 AM.
Meo-Ada Mespotine is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:47 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.