Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 01-07-2019, 03:14 AM   #1
reapero
Human being with feelings
 
Join Date: Aug 2011
Posts: 103
Default Can we get the names of the files to be rendered after wildcards are applied?

I am interested i knowing the names of the files after all the wildcards you setup in the render options. I figured the easiest way would be to use the render queue and get the names straight from there but i see no scripts already doing something similar and i failed to find anything in this regard on the wonderful Reascript API page by X-Raym.

Am i missing something?
reapero is online now   Reply With Quote
Old 01-07-2019, 04:39 AM   #2
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 9,725
Default

click here

schwa is offline   Reply With Quote
Old 01-07-2019, 05:04 AM   #3
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 7,527
Default

Quote:
Originally Posted by schwa View Post
click here

I think the poster is asking for a programmatical way to get the names...
__________________
For info on SWS Reaper extension plugin (including Xenakios' previous extension/actions) :
http://www.sws-extension.org/
https://github.com/Jeff0S/sws
--
Xenakios blog (about HourGlass, Paul(X)Stretch and λ) :
http://xenakios.wordpress.com/
Xenakios is offline   Reply With Quote
Old 01-07-2019, 05:57 AM   #4
reapero
Human being with feelings
 
Join Date: Aug 2011
Posts: 103
Default

Yes, as Xenakios said, i want to get the names of the files from a script.
reapero is online now   Reply With Quote
Old 01-07-2019, 09:05 AM   #5
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 9,725
Default

schwa is offline   Reply With Quote
Old 01-07-2019, 09:33 AM   #6
reapero
Human being with feelings
 
Join Date: Aug 2011
Posts: 103
Default

I just cant believe i´ve reached that point with Reaper!

What would be the clever way to do this? I usuall y have regions called the same: "impact". Then i render out impact_01, impact_02, etc using wildcards. So basically i need to append an incremental suffix to region names if they have the same name. I have all the region names in a table already.
reapero is online now   Reply With Quote
Old 01-08-2019, 09:41 AM   #7
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 679
Default

Add them to the project after rendering and get them from there. Just look, which track wasn't there before rendering.
Get the filename of the newly inserted item and voila: you got the filename of the rendered file.

That's how I do it in the Ultraschall-API.
__________________
Ultraschall-API: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs for Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 01-09-2019, 11:39 AM   #8
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 679
Default

I dug into that stuff yesterday and maybe I have a solution for you, at least when you use the render-queue for rendering your projects.

The render-queue-projectfiles are stored in the resources-fodler that's named something like QueuedProjects or something like that.

In there you can find the projects. In each of these files, there are Render-Queue-specific entries called QUEUED_RENDER_OUTFILE and QUEUED_RENDER_ORIGINAL_FILENAME (the latter only, when the currently opened project has been saved.

These entries work like the following:

QUEUED_RENDER_OUTFILE string renderfilename_with_path_for_queue integer unknown string guid

stores the output-renderedfilename with path for the render-queue.
There can be multiple ones in ones file, when having render-stems activated.
In that case of stem-rendering, check RENDER_STEMS, if the MasterTrack is rendered as well. If yes, the first QUEUED_RENDER_OUTFILE refers to the rendered Master-Track, otherwise its the first stem.


QUEUED_RENDER_ORIGINAL_FILENAME string projectfilename

stores the original filename of the project


The filename of the queue-projects might also be of interest for you, as it contains the date and time of when the projct has been added to the queue.

QueueFilename:
The queue-filename MUST have the following namingpattern: qrender_123456_123456_projectname.RPP,
where the first number is a datestamp yymmdd and the second a timestamp hhmmss.
the projectname is optional BUT the _ before it is mandatory. Otherwise, Reaper
stops rendering with an error!

Now the procedure is: add the project to the render-queue, read the QUEUED_RENDER_OUTFILE-entries and start rendering the queue.

That way, you'll get the correct rendered-filenames.
__________________
Ultraschall-API: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs for Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Reply

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 03:20 AM.


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