Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

Reply
 
Thread Tools Display Modes
Old 08-24-2019, 04:53 PM   #1
Swi
Human being with feelings
 
Join Date: Apr 2018
Posts: 358
Default Render presets show up as actions in the action list

It would be quite useful to have my render presets show up in the actions list.

I use the same 4 or 5 presets to do what I need to do and I suspect everyone else does as well.
Swi is offline   Reply With Quote
Old 08-24-2019, 07:26 PM   #2
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,984
Default

From v5.975 Reaper allows you to script that. I personally use custom actions built from my scripts related to render presets (starting at "mpl_Set render format to ...").

Last edited by mpl; 08-24-2019 at 07:36 PM.
mpl is offline   Reply With Quote
Old 08-25-2019, 10:51 PM   #3
Swi
Human being with feelings
 
Join Date: Apr 2018
Posts: 358
Default

Thanks, MPL!
These look great.
If I could sponsor another?

Output Format = Video(ffmpeg/libav encoder)
Format = QT/MOV/MP4 (keep source aspect ratio and framerate)
Video Codec = MJPEG
Audio codec = 24bit PCM

And just to confirm it looks like I would use this newly created script with

Script: mpl_Set render bounds to time selection.lua
Script: mpl_Set render source to master.lua
Then this new script for making video clips?

It looks like if I want 32 bit WAV I can just change the first value
"local form conf = [1]=32"

Is that accurate or do I need to ask you to make that as well?

Many thanks to you sir.
Swi is offline   Reply With Quote
Old 08-26-2019, 10:31 AM   #4
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,984
Default

I`ve added 32 bit wav and mp4 video presets. There are a lot of flags in video format, so you probably have to reverse engeneer youself that stuff or ask someone to do this for a reasonable donation.
mpl is offline   Reply With Quote
Old 08-26-2019, 03:34 PM   #5
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

Use my Ultraschall-API and you can code it yourself. I reverse-engineered all settings for all formats and wrote some nice handy functions to deal with that.

There are also functions, who can read the Preset-Settings and apply them to the current project.

This is the introduction-chapter for these functions and how to work with them:
https://mespotin.uber.space/Ultrasch...1_Introduction
__________________
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 08-26-2019, 05:00 PM   #6
Swi
Human being with feelings
 
Join Date: Apr 2018
Posts: 358
Default

thanks, MPL and mespotine.

This is all great stuff.
I will dig in when I get a beat to do so.
Thank you thank you.
Swi is offline   Reply With Quote
Old 08-27-2019, 11:31 AM   #7
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,964
Default

cfillion is offline   Reply With Quote
Old 08-28-2019, 07:30 PM   #8
Swi
Human being with feelings
 
Join Date: Apr 2018
Posts: 358
Default

Cfillion.
Holy crap.
Many thanks from many of us.
Swi is offline   Reply With Quote
Old 08-28-2019, 09:40 PM   #9
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 4,820
Default

Quote:
Originally Posted by Swi View Post
Cfillion.
Holy crap.
Many thanks from many of us.
Yep! Thanks !
deeb is offline   Reply With Quote
Old 08-29-2019, 01:50 PM   #10
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,721
Default

+1

Will have to test out the suggestions on this thread too!
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Thonex is offline   Reply With Quote
Old 11-15-2019, 03:35 AM   #11
Joe90
Human being with feelings
 
Join Date: Aug 2019
Posts: 855
Default

Quote:
Originally Posted by cfillion View Post
Hi Cfillion, thanks so much for your excellent scripts! I'm using the latest Dev version and for the last few pre-release versions I've been getting this error while using your render presets script -

cfillion_Apply render preset (create action).lua:154: reaper-render.ini: <RENDERPRESET contains 9 tokens, expected 8

Any idea what could be causing this?

Thanks again.
Joe90 is offline   Reply With Quote
Old 11-15-2019, 03:39 AM   #12
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,964
Default

Thanks, this is probably due to this change:
Code:
v5.984+dev1106 - November 6 2019
  + Render: include all options in "options and format" render presets
I'll take a closer look at what changed and update the script later.
cfillion is offline   Reply With Quote
Old 11-15-2019, 03:53 AM   #13
Joe90
Human being with feelings
 
Join Date: Aug 2019
Posts: 855
Default

Quote:
Originally Posted by cfillion View Post
Thanks, this is probably due to this change:
Code:
v5.984+dev1106 - November 6 2019
  + Render: include all options in "options and format" render presets
I'll take a closer look at what changed and update the script later.
Legend. Thank you.

Do you have a means of receiving donations? I'm using a fair few of your scripts.
Joe90 is offline   Reply With Quote
Old 11-16-2019, 12:37 AM   #14
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,964
Default

The new included options in the output format presets are "Tracks with only mono media to mono files" and "Multichannel tracks to multichannel files". Version 1.0.5 of the script now supports these when using the new pre-releases.

Quote:
Originally Posted by Joe90 View Post
Do you have a means of receiving donations? I'm using a fair few of your scripts.
See the link in my signature or the donate button on https://reapack.com. Thanks!

Last edited by cfillion; 11-22-2019 at 05:26 AM.
cfillion is offline   Reply With Quote
Old 11-16-2019, 03:49 AM   #15
Joe90
Human being with feelings
 
Join Date: Aug 2019
Posts: 855
Default

Quote:
Originally Posted by cfillion View Post
The new included options in the output format presets are "Tracks with only mono media to mono files" and "Multichannel tracks to multichannel files". Version 1.0.5 of the script now supports these when using the new pre-releases.

(The "Use project sample rate for mixing and FX/synth processing" option still isn't stored in the preset data.)



See the link in my signature or the donate button on https://reapack.com. Thanks!
Working and donated. Thanks!
Joe90 is offline   Reply With Quote
Old 02-01-2020, 06:51 PM   #16
Joe90
Human being with feelings
 
Join Date: Aug 2019
Posts: 855
Default

Hi cfillion, this script seems not to be working correctly on the latest development build, I'm guessing since the secondary render format has been introduced.

I have an 'Mp3 Full Mix' render preset, and when I load it via the render menu in Reaper it loads correctly, but when I use your script to make a preset, it loads the primary output format as WAV, not mp3 as it it's meant to.

I also tried DSY's render script, and the same issue occurs, so I guess something in these new builds is disrupting these scripts. I've tried resaving the render preset and then recreating the action with your script, but the same issue still occurs.

If you don't generally update your scripts to support development builds (which I'd understand) then let me know and I'll find a workaround, but if it's not a complex fix then I'd greatly appreciate it as I use these scripts all the time.

Cheers!
Joe90 is offline   Reply With Quote
Old 02-01-2020, 08:33 PM   #17
Joe90
Human being with feelings
 
Join Date: Aug 2019
Posts: 855
Default

I just rolled back to the previous version, reinstalled the latest version, then re-synchronised, and it's working as expected now, so please disregard my previous post.

My apologies.
Joe90 is offline   Reply With Quote
Old 02-04-2020, 02:42 PM   #18
Buy One
Human being with feelings
 
Buy One's Avatar
 
Join Date: Sep 2019
Posts: 1,146
Default

On my end both versions 1.0.4 (line 217) and 1.0.6 of the script throw an error

Quote:
cfillion_Apply render preset (create action).lua:236: M:\REAPER 550c (x86)/Scripts/Apply render preset: Bounce.lua: Invalid argument
the problem is the colon in the file name stub on line 222

Quote:
local actionName = string.format('Apply render preset: %s', presetName)
Not sure about Mac OS but Windows doesn't allow this in file names, so replacing with a compatible symbol fixes the problem

Thanks to cfillion for the script

Last edited by Buy One; 02-04-2020 at 02:51 PM.
Buy One is offline   Reply With Quote
Old 02-04-2020, 11:55 PM   #19
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,964
Default

Quote:
Originally Posted by Buy One View Post
Windows doesn't allow this in file names
Thanks! Good catch, will fix soon (and harden against special chars in preset names).

It usually works on Windows by accident as the colon is just making it save the contents in an alternate data stream (NTFS drives only).

Last edited by cfillion; 02-05-2020 at 12:07 AM.
cfillion is offline   Reply With Quote
Old 02-05-2020, 01:59 AM   #20
Buy One
Human being with feelings
 
Buy One's Avatar
 
Join Date: Sep 2019
Posts: 1,146
Default

Quote:
Originally Posted by cfillion View Post
It usually works on Windows by accident as the colon is just making it save the contents in an alternate data stream (NTFS drives only).
I run REAPER from a USB stick which is FAT32, so that's apparently the reason it glitched on me
Buy One is offline   Reply With Quote
Old 02-10-2020, 11:45 AM   #21
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,964
Default

The fixed version (1.0.7) is released.
cfillion is offline   Reply With Quote
Old 05-27-2021, 04:15 PM   #22
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

Hey Christian,

I have an issue on Windows. I get the following error when executing (both scripts):

Code:
cfillion_Apply render preset (create action).lua:191: reaper-render.ini: found unknown preset type: <RENDERPRESET_EXT
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is online now   Reply With Quote
Old 05-27-2021, 04:35 PM   #23
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

Quote:
Originally Posted by _Stevie_ View Post
Hey Christian,

I have an issue on Windows. I get the following error when executing (both scripts):

Code:
cfillion_Apply render preset (create action).lua:191: reaper-render.ini: found unknown preset type: <RENDERPRESET_EXT
What is <RENDERPRESET_EXT? Never seen this before yet...
__________________
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 05-27-2021, 04:49 PM   #24
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

That's the synthax, not sure if it has been introduced recently?

Code:
<RENDERPRESET_EXT WavPak 3 0.070795
  <RENDERPRESET "Render 1" 48000 2 0 1 3 0 0
    a3B2dwQAAAAAAAAAAAAAAAEAAAA=
  >
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is online now   Reply With Quote
Old 05-27-2021, 05:04 PM   #25
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,108
Default

@Stevie, using latest dev version by chance?
Guess it could have to do with the new normalize on render options.
nofish is offline   Reply With Quote
Old 05-27-2021, 05:06 PM   #26
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

Hm yes, but I also updated on my Mac and there's no EXT in the render ini.
But how could it be that the ini looks different on Windows and Mac?
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is online now   Reply With Quote
Old 05-27-2021, 05:29 PM   #27
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,108
Default

From (very) briefly looking at it I think the <RENDERPRESET_EXT only gets created once you've actually enabled the normalize option and saved that as a preset, could that be the difference?
nofish is offline   Reply With Quote
Old 05-27-2021, 05:34 PM   #28
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

Very good Sherlock!
I just checked... apparently all my presets have normalize added now, eventhough I only saved a single preset manually. The other entries got EXT added as well.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is online now   Reply With Quote
Old 05-27-2021, 05:52 PM   #29
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,108
Default

Nice to know that my guess was right I don't know what to do with this finding now though. :P
nofish is offline   Reply With Quote
Old 05-27-2021, 06:02 PM   #30
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

Haha
Maybe it helps Christian

EDIT: he is already investigating:
https://forums.cockos.com/showpost.p...1&postcount=16

EDIT2: it's a synthax bug apparently.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom

Last edited by _Stevie_; 05-27-2021 at 06:10 PM.
_Stevie_ is online now   Reply With Quote
Old 05-28-2021, 04:09 AM   #31
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

Quote:
Originally Posted by nofish View Post
From (very) briefly looking at it I think the <RENDERPRESET_EXT only gets created once you've actually enabled the normalize option and saved that as a preset, could that be the difference?
Ohh...that means rework-work for Ultraschall-Api. Thanks for pointing into the right direction.

Edit:
Yup, it's a bug in the devs-release.
__________________
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 06-01-2021, 12:26 PM   #32
MrTsonts
Human being with feelings
 
MrTsonts's Avatar
 
Join Date: Apr 2019
Location: Ukraine, Kyiv
Posts: 173
Default

I have now stopped working Script: cfillion_Apply render preset.lua
And all the actions associated with it. How to fix it?
MrTsonts is offline   Reply With Quote
Old 06-01-2021, 01:54 PM   #33
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

If you had actually bothered to read the posts above... It's all explained there and that Christian will need some time to implement the new feature.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is online now   Reply With Quote
Old 06-01-2021, 02:55 PM   #34
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

Quote:
Originally Posted by MrTsonts View Post
I have now stopped working Script: cfillion_Apply render preset.lua
And all the actions associated with it. How to fix it?
Don't use the developer release, as this is introduced by a bug in it.
Best is to stick to the official one currently.
__________________
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 06-01-2021, 03:32 PM   #35
MrTsonts
Human being with feelings
 
MrTsonts's Avatar
 
Join Date: Apr 2019
Location: Ukraine, Kyiv
Posts: 173
Default

Quote:
Originally Posted by _Stevie_ View Post
If you had actually bothered to read the posts above... It's all explained there and that Christian will need some time to implement the new feature.
I was interested in how to fix it now))))) And I found a solution, thanks to you))) Thank you)))))
MrTsonts is offline   Reply With Quote
Old 06-01-2021, 03:44 PM   #36
MrTsonts
Human being with feelings
 
MrTsonts's Avatar
 
Join Date: Apr 2019
Location: Ukraine, Kyiv
Posts: 173
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Don't use the developer release, as this is introduced by a bug in it.
Best is to stick to the official one currently.
Thanks for the advice. For me, it is better not to make presets with normalize.
MrTsonts is offline   Reply With Quote
Old 06-03-2021, 12:30 PM   #37
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,964
Default

Quote:
Originally Posted by _Stevie_ View Post
Hey Christian,

I have an issue on Windows. I get the following error when executing (both scripts):

Code:
cfillion_Apply render preset (create action).lua:191: reaper-render.ini: found unknown preset type: <RENDERPRESET_EXT
Released version 1.1 supporting the new RENDERPRESET_EXT token and applying the normalization settings. (Thanks to Mespotine for finding the new configvars. )

EDIT: Replaced by v1.1.1 using the API added in v6.29+dev0603 instead of configvars.

Last edited by cfillion; 06-03-2021 at 01:22 PM.
cfillion is offline   Reply With Quote
Old 06-03-2021, 01:01 PM   #38
Daodan
Human being with feelings
 
Join Date: Jan 2011
Posts: 1,178
Default

Quote:
Originally Posted by cfillion View Post
Released version 1.1 supporting the new RENDERPRESET_EXT token and applying the normalization settings. (Thanks to Mespotine for finding the new configvars. )
Thanks so much Cfillion!
Daodan is offline   Reply With Quote
Old 06-03-2021, 02:34 PM   #39
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

Thanks Christian and Mespo!
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is online now   Reply With Quote
Old 10-02-2021, 08:39 AM   #40
YuriOl
Human being with feelings
 
Join Date: Sep 2018
Location: lugansk
Posts: 153
Default

cfillion,Hello!
After updating the wonderful Script: CFillion_apply Render Preset.lua, it became uncomfortable to use them. My button with this script is on the bottom panel and the pop-up menu is now opening down relative to the mouse pointer, and not up as before. I do not see all my presets now.
Can you configure so that the menu pop up above the mouse pointer?
Attached Images
File Type: jpg Screenshot_1.jpg (25.4 KB, 114 views)

Last edited by YuriOl; 10-02-2021 at 08:46 AM.
YuriOl 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 06:02 AM.


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