-
Notifications
You must be signed in to change notification settings - Fork 7
Blender Python setup (old)
Louis Maddox edited this page Mar 3, 2021
·
1 revision
- Scripting: select the dropdown at the top, select or search for Scripting, a console appears
- Importing a script, like Scott Hartley's blmol,
import blmol, won't work without custom Python module installation:- e.g.
numpyneeds its own installation in the Blender directory: sudo apt-get install python3.4sudo apt-get install python3-pipsudo pip3 install numpy-
sudo cp -r /usr/local/lib/python3.4/dist-packages/num* /usr/share/blender/scripts/modules/- apparently also works in
.../addons/modules
- apparently also works in
- e.g.
Example usage:
import blmol
m = blmol.Molecule()
m.read_pdb('/home/louis/Downloads/3SIG.pdb')
m.draw_atoms()