Old 05-13-2018, 09:10 PM   #1
mespotine
Human being with feelings
 
Join Date: May 2017
Posts: 201
Default Solved: SNM_SetIntConfigVar-variables and tools...

Does anyone of you have an idea, how to access the render-settings of the currently opened project using SNM_SetIntConfigVar?

Or is there somewhere a list of useable values for "varname" for SNM_SetIntConfigVar anywhere? I couldn't find one yet...

Last edited by mespotine; 05-16-2018 at 09:44 AM.
mespotine is offline   Reply With Quote
Old 05-14-2018, 03:32 AM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 4,779
Default

This is project specific, written in the rrp file.

It cant be modified with script as we font have function to access this chunk.it has bee

It has be requested quite some time though
X-Raym is offline   Reply With Quote
Old 05-14-2018, 05:13 AM   #3
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 7,743
Default

A list of IntConfigVar's is here (thanks amagalma):

https://forum.cockos.com/showpost.ph...1&postcount=11

What seems to be useful there regarding render settings (I've been looking into this myself recently):

"projrenderaddtoproj" -- toggles the "Add rendered items to new tracks in project" setting

"projrenderstems" - seems to set "Source", 0 = Master mix

That's all I've found so far.

But yeah, hopefully we'll get API functions for it at some point:
https://forum.cockos.com/showthread.php?t=178245

Last edited by nofish; 05-14-2018 at 05:41 AM.
nofish is offline   Reply With Quote
Old 05-14-2018, 06:27 AM   #4
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 4,779
Default

If all you need is to change file name, what you can explore is post render file renaming right from your script.
X-Raym is offline   Reply With Quote
Old 05-16-2018, 09:50 AM   #5
mespotine
Human being with feelings
 
Join Date: May 2017
Posts: 201
Default

I spend the last two days and hacked out a new list that is more complete and documented some of the variables(including adding some missing from the threads you've linked).

It covers 411 variables and I also wrote a "beginner's"-doc for usage of them.

I'm open for additions to it.

https://github.com/Ultraschall/ultra...Reaper5_80.txt

Last edited by mespotine; 05-24-2018 at 09:07 AM.
mespotine is offline   Reply With Quote
Old 05-16-2018, 09:50 AM   #6
mespotine
Human being with feelings
 
Join Date: May 2017
Posts: 201
Default

And, as this wouldn't be cool enough, I wrote a script, that displays into the Reaper-Console, which config-variable changed, it's value and it's bitwise representation:

https://github.com/Ultraschall/ultra...onfig-Vars.lua

Could be very helpful, when reverse-engineering the variables.


Last edited by mespotine; 05-16-2018 at 09:59 AM.
mespotine is offline   Reply With Quote
Old 05-16-2018, 10:25 AM   #7
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 4,779
Default

Indeed; that might help :P

Thanks !
X-Raym is offline   Reply With Quote
Old 05-16-2018, 10:41 AM   #8
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 7,743
Default

Nice one, thanks.
nofish is offline   Reply With Quote
Old 05-16-2018, 01:13 PM   #9
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,185
Default

Super cool! Well done!!!
amagalma is offline   Reply With Quote
Old 05-19-2018, 05:35 AM   #10
mespotine
Human being with feelings
 
Join Date: May 2017
Posts: 201
Default

I updated the list by documenting about 90 variables, including datatypes and accompanying updated entry in the reaper.ini


In addition to that, I updated the script to show the double-float-version of the variable-values as well(playrate or zoom produce weird integer but useful double-values).
AND, it shows the currently set setting in the reaper.ini so you can see, whether updating a certain setting has an immediate effect to the reaper.ini, when altered in menus, preferences, other dialogs, etc.

It has an issue with float-values, means: if you want to reverse-engineer float-values, you need to type them as something like 5.001 or 6.123, never as an integer representation (8 or 8.000), or it will not show up.
It's a bug I'm too lazy to fix...
mespotine is offline   Reply With Quote
Old 05-23-2018, 08:20 AM   #11
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 7,743
Default

Does anyone know about the "relativeedges" IntConfigVar by chance ?

I need to temporarly disable the "Preferences -> If no items are selected, some split/trim/delete actions affect all items at the edit cursor" setting which seems to be controlled by this variable.

I.e when I set to
1 -> enabled
257 -> disabled.

I got the 257 from checking in Reaper.ini, it's working, but why 257 I'm wondering (some sort of bitmask I guess) ?

(No description in the mespotine doc currently.)

Last edited by nofish; 05-23-2018 at 08:26 AM.
nofish is offline   Reply With Quote
Old 05-23-2018, 09:39 AM   #12
FnA
Human being with feelings
 
FnA's Avatar
 
Join Date: Jun 2012
Posts: 1,964
Default

Yeah, it handles other prefs too. I once posted "toggle dual trim.lua". That uses &32. I didn't know the shorter, easier way of handling bitmasks then. Maybe I should edit it... XD
FnA is offline   Reply With Quote
Old 05-23-2018, 11:17 AM   #13
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 7,743
Default

Thanks FnA.

Got it with the help of mespotine's script to investigate bit fields (nice tool), it's the 8th bit.
nofish is offline   Reply With Quote
Old 05-24-2018, 09:07 AM   #14
mespotine
Human being with feelings
 
Join Date: May 2017
Posts: 201
Default

I updated descriptions for further 155 variables.

So now, 245 of the 411 variables are documented.


Fully documented:
Playrate context menu, Help-information display context-menu, Transport-Context Menus, Project Settings, the Master VU-settings, Ruler context-menu, Metronome and pre-roll settings, Projecttab-context-menu, MixerControlPanel-context menu, Action-menu, TrackControlPanel-context menu, Crossfade-editor, FX browser, Peaks Display Settings, Scale Finder, Screensets/Layouts the View-menu, the Options-menu and Render to File-dialogs are completely documented.

Partially documented
Preferences(General to Project-tabs and Automation to External Editors-tabs)

https://github.com/Ultraschall/ultra...Reaper5_80.txt

Important: Even if 245 variables are documented, some variables still are missing information. If you find something missing, just drop me a note in this thread, which bit/value in which config-dialog/menu and where I can find it

Last edited by mespotine; 05-24-2018 at 09:13 AM.
mespotine is offline   Reply With Quote
Old 05-24-2018, 10:23 AM   #15
James HE
Human being with feelings
 
James HE's Avatar
 
Join Date: Mar 2007
Location: I'm in a barn
Posts: 4,367
Default

first time seeing this. Holy hell, at some point this going to save a ton of headache.

cheers to you, your thoroughness is thoroughly awesome.



*I used to have load up some project, save it, change the options - save, then compare the difference, unless I already understood the way things worked bitwise already. which I would always forget anyways.

**now i guarantee - next time I'm going deep in some script, and need to change some config, it'll be the one thing not in your list already.. LOL.
James HE is offline   Reply With Quote
Old 05-24-2018, 10:43 AM   #16
mespotine
Human being with feelings
 
Join Date: May 2017
Posts: 201
Default

Quote:
Originally Posted by James HE View Post
**now i guarantee - next time I'm going deep in some script, and need to change some config, it'll be the one thing not in your list already.. LOL.
Just guarantee me to drop me a note, what you found and how you've triggered it, and it will appear at last in the docs


Thanks for your thanks
We need this fully documented for the ultraschall-project, where we mod Reaper for podcasting-needs and ease-of-use.
mespotine is offline   Reply With Quote
Old 05-30-2018, 12:01 PM   #17
mespotine
Human being with feelings
 
Join Date: May 2017
Posts: 201
Default

Update:

I created a full list of all config-variables that are triggered by actions within their sections.

This list isn't "cleaned" (read the text at the beginning first for further information) and not worked into my config-vars-docs yet. I wanted to share them anyway with you, in case you need it.

Only Main-section:
https://github.com/Ultraschall/ultra...ectionMain.txt

MediaExplorer as well as all MIDI-sections:
https://github.com/Ultraschall/ultra...AndAllMidi.txt
mespotine is offline   Reply With Quote
Old 06-05-2018, 09:12 AM   #18
mespotine
Human being with feelings
 
Join Date: May 2017
Posts: 201
Default

Update of the list, with 90 newly documented variables and many updated and completed.
335 variables are now documented(56 still missing+22 I couldn't trigger to do anything; actions that influence variables aren't documented yet mostly)
It also includes string-only-variables(probably not all of them yet), that are currently only available with pre-releases of Reaper (5.91-pre2), as they need the function get_config_var_string().

https://github.com/Ultraschall/ultra...Reaper5_80.txt


I also updated the display-altered-config-vars-script, so it also supports strings, when you use a Reaper-version, that has the function get_config_var_string() available.

https://github.com/Ultraschall/ultra...onfig-Vars.lua
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 02:18 AM.


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