|
|
|
12-11-2018, 12:53 AM
|
#1
|
Human being with feelings
Join Date: Feb 2017
Location: Belgrade, Serbia
Posts: 338
|
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?
|
|
|
12-11-2018, 07:16 AM
|
#2
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,630
|
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?
|
|
|
12-11-2018, 07:24 AM
|
#3
|
Human being with feelings
Join Date: Feb 2017
Location: Belgrade, Serbia
Posts: 338
|
Quote:
Originally Posted by mespotine
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.
|
|
|
12-11-2018, 07:28 AM
|
#4
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,630
|
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.
|
|
|
12-11-2018, 01:38 PM
|
#5
|
Human being with feelings
Join Date: Feb 2017
Location: Belgrade, Serbia
Posts: 338
|
Quote:
Originally Posted by mespotine
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.
|
|
|
04-23-2020, 04:05 AM
|
#6
|
Human being with feelings
Join Date: Feb 2017
Location: Belgrade, Serbia
Posts: 338
|
Is this still not possible via the latest API?
|
|
|
04-23-2020, 04:46 AM
|
#7
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,110
|
Should be possible now with GetSetProjectInfo_String.
|
|
|
04-23-2020, 04:52 AM
|
#8
|
Human being with feelings
Join Date: Feb 2017
Location: Belgrade, Serbia
Posts: 338
|
Quote:
Originally Posted by nofish
|
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.
|
|
|
04-23-2020, 08:04 PM
|
#9
|
Human being with feelings
Join Date: Jul 2009
Posts: 1,071
|
+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.
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 05:37 PM.
|