Save Preferences for Docks and Studio Mode

Alan T.

New Member
Is there a way in Windows to save preferences for an OBS interface layout to include which docks are displayed (and where) and Studio Mode?

I have multiple OBS instances, but changing Dock configuration in one instance changes the same dock in the other instances, so whichever instance gets updated last influences all the other instances.

Also, there doesn't seem to be any way to load preferences from command line other than profiles and collections... and there isn't a functional StudioMode command line parameter that seems to work.

Any thoughts? Maybe it is as simple as saving these preferences somewhere other than %APPDATA%\obs-studio?
 
Studio mode and dock state are stored in user.ini. They USED TO BE stored in basic.ini, so if you (like me) have been using OBS for a while, you may see copies in both files.

Under [BasicWindow], see DockState and ExtraBrowserDocks. PreviewProgramMode is true for Studio Mode, false for not.

https://obsproject.com/kb/launch-parameters lists command line parms, but there is no option listed to specify basic.ini or user.ini like you can for profile and scene collection. (There IS --studio-mode, which runs OBS with studio mode ON, but I can't find a way to force it OFF

Use-rock-as-hammer approach would be to have multiple sets of basic.ini and user.ini, and use a command file to copy the appropriate versions to the directory where OBS looks for them, then run OBS. When OBS exits, the command file would need to copy the probably-updated files back to where you keep them.

For studio mode, a Lua or Python script could call
void obs_frontend_set_preview_program_mode(bool enable)
based on some setting
 

Alan T.

New Member
Great links - that seems to work, but I am curious why the --portable command line option doesn't take an optional argument for the config file. If the OBS environment supports execution of simultaneous instances then we could (in theory) use one portable install for multiple configurations.

Hey, I'm not knocking it! This is great and, as you noticed, I've been tinkering with OBS for years so who am I to complain. :-)
 
Top