Blender Python setup (old) - lmmx/devnotes GitHub Wiki

  • 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. numpy needs its own installation in the Blender directory:
    • sudo apt-get install python3.4
    • sudo apt-get install python3-pip
    • sudo 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

Example usage:

import blmol
m = blmol.Molecule()
m.read_pdb('/home/louis/Downloads/3SIG.pdb')
m.draw_atoms()
⚠️ **GitHub.com Fallback** ⚠️