![]() However from the perspective of a Python developer, it can be useful to being Blender into your existing scripts and access its feature set. This makes sense from the perspective of a user, whos primary needs are to have an application which can be extended with scripts. If there are errors read them and try to act accordingly. The official embeds a Python interpreter (CPython 3.x). Test the installation from the command line with Blender’s bundled Python or directly from Blender’s Python console. In the example below I used pip to install the scikit-image module for a new project that I am working on. It is important to stress that you have to use THIS version of pip, not the one that might already be available on your computer as environment variable, otherwise the new packages will not be visible to Blender. python/scripts and we can now use it to install new modules in Blender. Install Python modules in Blender using pip Using Blender’s python (that should be in the bin folder) run the module ensure pip, like in the image below. If you don’t know what pip is, you can read about it here and here: it is a super-easy way to install new modules in Python. Run Power Shell as administrator and navigate to the Blender’s Python folder. However, I prefer to stick with Blender’s own version of Python, keeping things separated from other projects. To do so just remove the Blender folder that you have just located and Blender will fallback to use the system’s Python. However, to be sure, in the Python console of Blender you can type: import sysĪs a side note, I will say that if you want you can force Blender to use another another Python that you have installed on your machine. It should be in the Blender’s folder under Locate Blender’s bundled Pythonīlender ships with its own version of Python. I am working on Windows, however the steps should be similar also on the other operating systems. What I am showing was tested on Blender 2.79 and Blender 2.80 beta. ![]() There are a few methods to do it, I believe that the one I will describe, that uses pip, is the simplest one. ![]() Let’s see how you can install Python modules in Blender. blender python python3dIn this video, I will show you how you can create a scene in Blender using the Python 2.9 Blender API. ![]() If you are doing Blender scripting, sometimes you might want to do something very specific that requires one or more third party modules that are not available by default.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |