I'm currently on Windows 10. I have a portable version of blender 2.80, and I would like to use relative paths for the scripts folder in order to keep my addons separate from the bundled ones. My solution so far has been symlinking my addons folder to the AppData/Roaming/Blender Foundation/Blender/2.80/scripts folder, and that works fine, but it's not fully portable. In the preferences > file paths, for scripts, putting // followed by anything seems to not work at all. Only direct paths seem to work. Optimally, it would be //../../stuffhere/addons. The shift click on the folder icon in the preferences page brings up the correct folder, but no new addons show up in the addon section.

Edit: I found this answer, but it still relies on direct paths. Multiple paths to BLENDER_USER_SCRIPTS

Edit: I also found this one which seem relevant. How do I change the location of the "Temp" folder to be a relative path?? Unless I'm reading it wrong, this one means that some file paths in the Blender settings don't work with relative paths.

The relative paths would just be a convenient way to get a portable separate addons folder. If there is another way, I would love to know. The end goal is to make updating portable versions easier. It's a pain to have to dig around for only the files related to my addons in the main folder and move them to the new versions.

  • 2
    $\begingroup$ Possible duplicate of Multiple paths to BLENDER_USER_SCRIPTS $\endgroup$ – Sazerac Jan 17 '19 at 23:21
  • 1
    $\begingroup$ In the answer on Multiple paths to BLENDER_USER_SCRIPTS, you are setting the addon_path directly in python, so you can use python to de-relativeize the path first (with os.path.abspath() for e.g.). That said, it requires modifying some python sources in the blender package, which sort of defeats the point if you are looking to have the same scripts picked up by different versions of blender. $\endgroup$ – gandalf3 Jan 17 '19 at 23:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.