JacquesLucke / blender_vscode

Visual Studio Code extension for Blender development.
MIT License
540 stars 70 forks source link

Support configuration of any environment variables on Blender start #131

Closed Griperis closed 1 year ago

Griperis commented 1 year ago

When you use the same blender for development and also for art you can messup the installation of addons that you actually want to use with the symlinks from the vscode integration. This results in having the same addon twice (one from vscode, one from Blender installation from prefs).

Using the new "environmentVariables" config it is possible to specify e. g. SCRIPTS and CONFIG folders in order to automatically point them to some controlled location when developing.

    "blender.environmentVariables": {
        "BLENDER_USER_SCRIPTS": "C:/tmp/scripts",
        "BLENDER_USER_CONFIG": "C:/tmp/config"
    },
JacquesLucke commented 1 year ago

Generally seems fine, but I wonder if it makes sense to have the environment variables per blender executable.

Griperis commented 1 year ago

I think in general you want to have the same environment for all the blender versions you are developing with. Couldn't come up with a situation where you need a different env variable per blender executable.