-
Notifications
You must be signed in to change notification settings - Fork 114
Installation
This document aims to provide an instruction to set up Blender and install the Phobos add-on.
On Linux, Blender can be installed via package manager. In Ubuntu, sudo apt-get install Blender
does the trick. However, you may want to check the default version of Blender for your linux version, as these can sometimes be quite outdated. Phobos has been developed for Blender versions >= 2.69 and works best with >= 2.71. As some functionality might not work properly on earlier versions, it might be necessary that you get the latest Blender version yourself, either as a tarball from Blender's website or from a custom package repository with the latest Blender build if available.
Please notice that you have to have glibc installed on your system to run Blender properly.
Installing Blender on windows is as simple as downloading the installer from Blender's website and run it. Alternatively, you can download a zip file.
In order to install Phobos successfully on your system, please follow these instructions word by word.
As Blender uses Python 3, this means that if you want it to use the most current package version, you need to install python3. The installation is pretty straightforward. A guide for different platforms can be found here.
Phobos uses the YAML language for some of its output formats and therefore needs the python module yaml
.
The easiest way to install is using pip.
Run these commands from the commandline to install both pip
and yaml
.
sudo apt-get install python-pip
sudo pip3 install PyYaml
For Windows pip
installation follow the instructions here.
Afterwards, use this command in the commandline to install yaml
:
pip3 install PyYaml
To get Phobos, you can clone its git repository by running:
git clone https://github.com/rock-simulation/phobos.git
Alternatively, you can download the sources as a zip file from GitHub.
After downloading (and eventually uncompressing the archive file) to a local folder on your computer, you need to run the Python file install_phobos.py
in the top level directory. Do so by using these commands from a commandline:
python3 install_phobos.py
Under Windows you need to make sure that you run Python version 3. py -3 install_phobos.py
should work. Otherwise, check this ressource.
The installation file will automatically check the required yaml
installation and configure the Phobos installation.
Please note: The install script will ask you to enter the version of Blender you'd like to use Phobos with. This is important as you might have several versions installed on your system (e.g. for backwards-compatibility) and they use different folders for add-ons. As your answers are saved in a file called installconfig.txt
, installing Phobos to a different Blender version requires changing or deleting said file.
To activate Phobos in Blender, go to Files->User Preferences->Addons and search for 'Phobos' (it's in the 'Development' category). Then tick its checkbox to activate Phobos and save your user settings in the lower left corner - if you don't next time Blender starts, Phobos won't be loaded. If Blender displays any errors at this point, you might want to check if you got the above steps right.
Find Phobos in Blender's user preferences
If everything worked fine you can now find the Phobos toolbar as a tab in the left toolbar panel if you're running Blender >= 2.71, otherwise the Blender GUI elements will be added to the toolbar itself. If you don't see the panel, hit T.
Go to ~/.config/blender/BLENDERVERSION/scripts/addons/phobos/
and delete the file yamlpath.conf
. Then you can re-run the install script and everything should work.
Back to top.