Old 12-11-2018, 12:53 AM   #1
nikolalkc
Human being with feelings
 
nikolalkc's Avatar
 
Join Date: Feb 2017
Location: Belgrade, Serbia
Posts: 338
Default Get render path API?

Does this exist already, or am I missing something?

It's actually very comlicated to get this right because there is list of things to consider:

Operating system
-Winows
-Mac
-Linux

Project render path
-Relative
-Absolute
-None

Preferences default render path
-Relative
-Absolute
-None

Preferences default recording path
-Relative
-Absolute
-None

Preferences default save path for new projects
-Relative
-Absolute
-None


This is quite a list of factors to consider and I'm not even sure if it's complete.

Is there an easier way to get this path than to write a script that checks everything and creates a final string?
nikolalkc is offline   Reply With Quote
Old 12-11-2018, 07:16 AM   #2
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,630
Default

What do you mean by Render-path?
The path, in which the rendered files are put, the last time thy were rendered?
Or simply the path set in the Render-Dialog?

Or do you mean the recording-path?
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 12-11-2018, 07:24 AM   #3
nikolalkc
Human being with feelings
 
nikolalkc's Avatar
 
Join Date: Feb 2017
Location: Belgrade, Serbia
Posts: 338
Default

Quote:
Originally Posted by mespotine View Post
What do you mean by Render-path?
The path, in which the rendered files are put, the last time thy were rendered?
Or simply the path set in the Render-Dialog?

Or do you mean the recording-path?
I mean the path where files will be rendered the next time you start rendering. 'Show in explorer' button in render dialog opens this path.
nikolalkc is offline   Reply With Quote
Old 12-11-2018, 07:28 AM   #4
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,630
Default

This is currently not possible, due API-limitations.
The only thing you could do is reading it from the rpp-projectfile just before rendering.

You save the project and read the entries RENDER_PATTERN and RENDERNAME(or something similar...) and get the path from there.
If no path is given, it should(AFAIK) render the audio into the project-path but doublecheck on that first.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 12-11-2018, 01:38 PM   #5
nikolalkc
Human being with feelings
 
nikolalkc's Avatar
 
Join Date: Feb 2017
Location: Belgrade, Serbia
Posts: 338
Default

Quote:
Originally Posted by mespotine View Post
This is currently not possible, due API-limitations.
The only thing you could do is reading it from the rpp-projectfile just before rendering.

You save the project and read the entries RENDER_PATTERN and RENDERNAME(or something similar...) and get the path from there.
If no path is given, it should(AFAIK) render the audio into the project-path but doublecheck on that first.

There is a RENDER_FILE "ExportFolder", but it only saves info from Render to file dialog. It does not consider REAPER preferences.

I guess I really need to create a script from scratch and check all the factors.
Thanks anyway.
nikolalkc is offline   Reply With Quote
Old 04-23-2020, 04:05 AM   #6
nikolalkc
Human being with feelings
 
nikolalkc's Avatar
 
Join Date: Feb 2017
Location: Belgrade, Serbia
Posts: 338
Default

Is this still not possible via the latest API?
__________________
Youtube | Website | Twitter
nikolalkc is offline   Reply With Quote
Old 04-23-2020, 04:46 AM   #7
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,110
Default

Should be possible now with GetSetProjectInfo_String.
nofish is offline   Reply With Quote
Old 04-23-2020, 04:52 AM   #8
nikolalkc
Human being with feelings
 
nikolalkc's Avatar
 
Join Date: Feb 2017
Location: Belgrade, Serbia
Posts: 338
Default

Quote:
Originally Posted by nofish View Post
Should be possible now with GetSetProjectInfo_String.
I tried it.
This function returns value entered in RenderToFile dialog.

It does not consider REAPER preferences for Default render path.

I still need to check manually if the RENDER_FILE value is relative or absolute and to compare it with os version and default render path.
__________________
Youtube | Website | Twitter
nikolalkc is offline   Reply With Quote
Old 04-23-2020, 08:04 PM   #9
J Reverb
Human being with feelings
 
Join Date: Jul 2009
Posts: 1,071
Default

+1

It would be nice if we could have presets in the render window to keep settings for sessions with paths intact etc..

If I want to stick a rendered version of a sound effect into a folder called 'soundfx' then a simple toolbar click would set this to the correct folder.
J Reverb 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 08:50 AM.


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