blenderproc.python.utility.InstallUtility module
Provides functions to install BlenderProc.
- class blenderproc.python.utility.InstallUtility.InstallUtility[source]
Bases:
object
This class provides functions to install BlenderProc and set up the correct environment
- static determine_blender_install_path(used_args)[source]
Determines the path of the blender installation
- Parameters:
used_args (argparse.NameSpace) – The given command line arguments.
- Return type:
str
- Returns:
The path to an already existing blender installation that should be used, otherwise None
The path to where blender should be installed.
- static make_sure_blender_is_installed(custom_blender_path, blender_install_path, reinstall_blender=False)[source]
Make sure blender is installed.
- Parameters:
custom_blender_path (
str
) – The path to an already existing blender installation that should be used, otherwise None.blender_install_path (
str
) – The path to where blender should be installed.reinstall_blender (
bool
) – If True, blender will be forced to reinstall.
- Return type:
Tuple
[str
,str
]- Returns:
The path to the blender binary.
The major version of the blender installation.