Project Blender
Project Tools will store a version of Blender within the shared directory. This version of Blender is internal to that project. This allows for multiple Blender installations on your system, each with their own preferences tailored specifically to that project. The main advantage of running/managing Blender using the Project Tools scripts is that it will synchronize the Blender version and Shared Extensions across all users contributing to the project. Project Tools also allows you to run a custom build of Blender with the Extensions and preferences set for your project.
Blender Setup
The next step is to deploy the required software onto each of the studio's workstations.
Using our scripts to download the latest Blender LTS or daily build version
# Linux/Mac
cd ~/data/your_project_name/svn/tools
./update_blender.py# Windows
cd %HOMEPATH%\data\your_project_name\svn\tools
python update_blender.pyThis will download the latest Blender to data/your_project_name/local/blender.
Choosing Branch to Install
You can specify a daily build branch to fetch by editing the BLENDER_BRANCH variable in the script file.
Manually deploying Blender versions of your choosing
You can download and put any Blender release into the your_project_name/shared/artifacts/blender folder with its corresponding shasum file. Note: If you do this, it is strongly advised not to run the update_blender.py script as it will overwrite your files.
There are a few things to keep in mind:
- It has to be the
.ziprelease for Windows,.tar.gzfor Linux, and.dmgfor Mac. - Each file must have a shasum file. You can generate this yourself easily on Linux with:
sha256sum file.tar.gz > file.tar.gz.sha256
- The file names for the Blender archives must follow the naming scheme:
Linux: blender-linux.x86_64.tar.xz
Mac: blender-darwin.arm64.dmg or blender-darwin.x86_64.dmg
Windows: blender-windows.arm64.zip or blender-windows.amd64.zip
Note that the file names do not have to match exactly with the examples above as long as their corresponding shasum file is picked up by the following file globbing schema:
"blender*" + operating_system + "." + architecture + "*.sha256"
- There can be no ambiguity about which archive the
run_blender.pyscript should use. For example, you cannot have bothblender-windows.arm64.zipandblender2-windows.arm64.zipin theyour_project_name/shared/artifacts/blenderfolder at the same time.
Create Shortcut
Once your project has been set up using the "Project Tools" scripts, the run_blender.py script should be available inside your_project_name/svn/tools. Follow the steps below to create a shortcut to this script. This shortcut will call the run_blender.py script, which will fetch the correct Blender version for your operating system from the your_project_name/shared/artifacts/blender directory and extract it to the local directory. It will also fetch extensions in the your_project_name/shared/artifacts/extensions folder.
Create Linux Shortcut
cd ~/data/your_project_name/svn/tools
./install_desktop_file.shAvailable on Gentoo
To learn more about running Blender if you are on a Gentoo system, please see the Gentoo guide, including how to run a debug build.
Launch with Custom Build on Linux
You must run the Create Linux Shortcut step before running a custom build. This will launch Blender using your custom binary, but with the Extensions and preferences of your project.
- Navigate to your custom Blender binary
- Right-click the binary
- Select
Open with > Blender your_project_name
Create Windows Shortcut
- Open the directory
%HOMEPATH%\data\your_project_name\svn\tools - Create a shortcut to
launch_blender_win.baton your desktop
Create Mac Shortcut
- Open the directory
~/data/your_project_name/svn/tools - In Finder, select the
launch_blender_mac.commandand pressctrl+shift+command+tto add it to the dock.
Run Blender
To launch Blender from the terminal, open the tools directory within your project folder, and from the terminal use the run Blender script.
# Linux/Mac
cd ~/data/your_project_name/svn/tools
./run_blender.py# Windows
cd %HOMEPATH%\data\your_project_name\svn\tools
python run_blender.pyCommand Line Arguments
Note: Command line arguments, also known as flags, are not supported by the run_blender.py script.
Update Blender
This script will fetch the latest Blender download from https://builder.blender.org/download/. The Blender download for Linux, Mac, and Windows will be downloaded into the your_project_name/shared/artifacts/blender folder. It will keep up to 10 previously downloaded versions for backup. This Blender does not update automatically; at least one user in the project must manually initiate an update. All users will receive this update because Blender is stored within the shared directory.
Blender Studio Users
Internally to the Blender Studio only, the Blender inside your project is automatically updated overnight; no manual update is required.
# Linux/Mac
cd ~/data/your_project_name/svn/tools
./update_blender.py# Windows
cd %HOMEPATH%\data\your_project_name\svn\tools
python update_blender.pyRollback Blender
Use rollback_blender.py to switch the "current" version hosted in your_project_name/shared/artifacts/blender to one of the older downloads. Rolling back affects all users using your project. This is intended to be used to rollback to an older version in case of bugs in newer downloaded versions.
# Linux/Mac
cd ~/data/your_project_name/svn/tools
./rollback_blender.py# Windows
cd %HOMEPATH%\data\your_project_name\svn\tools
python rollback_blender.pyRun a Previous Version of Blender Locally
In some cases, users may want to run a previous version of Blender on their machine without affecting other users.
# Linux/Mac
cd ~/data/your_project_name/svn/tools
./run_blender_previous.py# Windows
cd %HOMEPATH%\your_project_name\svn\tools
python rollback_blender_local.pyUpdate Blender Studio Extensions
All extensions in the Blender Studio Pipeline repository can be quickly downloaded using the update_extensions.py script.
# Linux/Mac
cd ~/data/your_project_name/svn/tools
./update_extensions.py# Windows
cd %HOMEPATH%\data\your_project_name\svn\tools
python update_extensions.pyTo learn more, see the Extensions Setup page.
Gentoo Users
Flamenco is installed and updated by the package manager of your Gentoo workstation. To learn more, see Update Local Add-Ons in the Gentoo section.