Install Blender in VDI¶
To modify any of these animations, make sure you install Blender in VDI:
Within VDI download Blender by navigating within a browser to https://www.blender.org/download/, optionally you can run the following command in the terminal:
wget https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.93/blender-2.93.1-linux-x64.tar.xz
Decompress file:
tar -xf blender-2.93.1-linux-x64.tar.xz
Important
Make sure you have space within VDI, otherwise, you can install blender in gdata.
Navigate to the decompressed folder:
cd blender-2.93.1-linux-x64/
Now you can run Blender by simply executing within the terminal or double click the
blender
executable.
user@vdi-nXX blender-2.93.1-linux-x64]$ ls
2.93 blender-softwaregl blender-thumbnailer.py license
blender blender.svg copyright.txt readme.html
blender.desktop blender-symbolic.svg lib
user@vdi-nXX blender-2.93.1-linux-x64]$ ./blender
Optionally, you can compile Blender from scratch, see information at the Blender Wiki:
Download source code:
mkdir ~/blender-git
cd ~/blender-git
git clone https://git.blender.org/blender.git
Update and Build
cd ~/blender-git/blender
make update
make
Similar, now you can run Blender by simply executing within the terminal or double click the
blender
executable.
user@vdi-nXX blender-2.93.1-linux-x64]$ ls
2.93 blender-softwaregl blender-thumbnailer.py license
**blender** blender.svg copyright.txt readme.html
blender.desktop blender-symbolic.svg lib
user@vdi-nXX blender-2.93.1-linux-x64]$ ./blender
It’s recommended to create an alias within your .bash_profile
, and an env variable containing the path to the blender
executable:
echo "alias blender='$(pwd)/blender'" >> ~/.bash_profile
echo "BLENDER_PATH=$(pwd)" >> ~/.bash_profile
source ~/.bash_profile
Install BlenderNC¶
Before using Blender to create animations, we will install BlenderNC. More information about the installation can be found at BlenderNC ReadTheDocs.
Important
BlenderNC is supported by versions of Blender > 2.80
Clone BlenderNC:
git clone https://github.com/blendernc/blendernc.git
cd blendernc
Install required packages within the Blender python distribution:
on/bin/pythonX.Xm -m pip install -r requirements.txt
Clone the
zip
installable, do not unzip the file.
git clone https://github.com/blendernc/blendernc-zip-install/raw/master/blendernc.zip
In Blender go to the user preferences and open the Addons tab.
Once there, click Install add-on from file (bottom right corner)
Navigate to the downloaded zip, select it, and click in install.
Finally, check the box next to the BlenderNC addon, to enable it