Installation
- In WSL2 or Ubuntu,
- In Mac,
or simply install from homepage.
- First, modify PATH related to blender in
CMakeLists.txt
in PyVibLocalizer directory. Below is an example of PATH in Mac OS. (In Ubuntu, this may be/usr/bin/blender
)
set(BPython "/Applications/Blender.app/Contents/Resources/3.5/python/bin/python3.10")
set(BPythonDir "/Applications/Blender.app/Contents/Resources/3.5/python/")
set(Blender "/Applications/Blender.app/Contents/MacOS/Blender")
- Next, move to
test
directory and makebuild
directory. And executecmake
.
- At last, activate virtual environment and execute a some example file such as
work/ch2o.py
.
- And you can also use jupyter notebook in blender.
In jupyter notebook, you can use blender_kernel
to execute blender script.