Download the premade module from GitHub.
Use Git and clone fake-bpy-module repository.
$ git clone https://github.com/nutti/fake-bpy-module.git
or
Download .zip file from GitHub.
https://github.com/nutti/fake-bpy-module/archive/master.zip
Check the location of premade module and remember it because we use it process 3.
The premade module is located in premade_modules
.
You can see each version of the premade module on there.
Launch PyCharm and do all below procedures.
- Show Settings (Windows) or Preferences (macOS) window.
- (Windows) Click File > Settings
- (macOS) Click Pycharm Menu > Preferenes
- Select Project: > Project Interpreter.
- Click Gear icon on the right next to Project Interpreter:, and a popup menu is shown.
- Click More... on the popped up menu.
- In Project Interpreters window, click the bottom icon Show paths for the selected Interpreter to show Interpreter Paths window.
- Click + icon, and a file browser is launched.
- Select the path where premade module is located, and click OK.
- Click OK repeatedly until Settings (Windows) or Preferences (macOS) window is closed.
- Now, you can complete the code related to the Blender Python API.