Blender version selector automatically picks the correct Blender version when you double-click a .blend file based on which version of Blender the file was last saved in!
Essentially this is useful for anyone that frequently use different versions of Blender on the same computer & for different projects. For my particular usecase I originally developed this as I use one Blender version for my Armory 3D projects and another more recent version for other projects as I tend to love using alpha/beta releases (of which Armory typically doesnt support).
If the version selector fails to find a version on your system that matches the version of which the blend file was last saved in, it will prompt you which version you wanna use instead :)
For the time being its Windows only, though it might be relatively easy to port considering the entire application is under 300 lines of code.
https://blenderartists.org/t/blender-version-selector/1311866/2
-
Once you got the binary ready you will have to add the following to your registry like so: This adds "main.exe" to Windows "open with" menu.
-
Next up you will need to configure Windows to open up the version selector when you attempt opening any blend file:
- Lastly you will need to open up the settings.json and replace the templated info with whats relative for your system. Essentially what youre doing here is writing out your Blender versions that you have installed and tell the version selector the path to there install directory (the directory that the Blender executable lives in).
Things to keep in mind whilst configuring the settings.json:
- Blender version selector assumes the executable to be called "blender.exe".
- The settings.json goes in the same folder as your version selector executable
- The path to your exe must use forward slashes. Backward slashes in the path results in the software shutting down without an error message currently as it simply wont be able to find the exe (same as if you would enter an invalid path).
- And now you should be all set! If you run into any problems, please do open an issue or discussion here on Github ( https://github.com/ItsCubeTime/BlenderVersionSelector/ ).
My Discord ( @ItsCubeTime ) : danieljackson#0286
I get notified otherwise if you open a discussion or issue here on Github :) Its up to you how you wanna contact me.
Anyone is welcome to contribute, simply open a PR with your suggested changes and I will merge it soon after. If you want to discuss any code changes or implementation of features beforehand, open an issue or discussion or send me a DM over Discord
Compiles with cl.exe directly from the cmd line like so:
cl main.cpp -o main -Zi
.
cl.exe is a part of MVSC and comes installed with Visual Studio or Visual Studio Build Tools. The -Zi
flag includes debugging symbols, so its optional if you're not planning to run a debugger on it.
See: https://docs.microsoft.com/en-us/cpp/build/reference/compiler-options?view=msvc-160 , https://docs.microsoft.com/en-us/visualstudio/install/install-visual-studio?view=vs-2019