Clicky


Integrating Git Project Library with Blender Python Scripts

When it comes to applications for 3D rendering, modeling, sculpting, and video editing, among many high-end applications, one of the most widely used open-source application is Blender. Blender lets users model, texture, illuminate, animate and post-produce any kind of three-dimensional scene. It is also compatible with formats of other licensed products like the 3D studio, Autodesk, etc.

Python Scripts and Projects from the Open-Source Community

There are many samples of python scripts available on Git for Blender. Python API in Blendr, bpy, is an integrated part of the software itself. The API has 3 basic components:

  1. bpy.context: Contains getters and readers on read-only values like working context or area being accessed.
  2. bpy.data: Data sets like objects, materials, meshes, etc., are required for the scene to be created.
  3. bpy.ops: Performs actions and calls operators on objects or view.

When writing Python scripts, it’s useful to have a terminal/Blender’s text editor open, this is not the built-in Python console but a terminal application that is used to start Blender. However, Blender’s text editor is good enough for small changes and writing test scripts, but it’s not full featured, for larger projects you should use a standalone editor or Python IDE.

Blender repositories in Git are full of resourceful scripts to start off with. You can also embed them to create your own project or to an existing project, for example, adding nodes to curve, vertex shader, controlling 3D character’s Face Movements using OpenCV and python, plugins for making hollow models, etc.

Integration with Git

To integrate your Blender python scripts with Git projects, the first thing you need to do is to install the Git project on your computer. Once installed, run the below commands to download Blender repositories on your computer:

git clone git://git.blender.org/blender.git
cd blender
git submodule update –init –recursive
git submodule foreach git checkout master
git submodule foreach git pull –rebase origin master

You are now all set to use the repositories to make your own Blender project or use the repositories to embed in your existing project.

Apps4Rent Can Help with the Configuration of the Emulator

Integration with Git requires you to install it on a local PC/laptop, along with Blender itself and Python. This at times requires changes/troubleshooting on PC/laptops which people might hesitate to do as it may lead to other/already installed programs that may stop working correctly. Apps4Rent offers virtual desktops on the cloud which you can avail yourself of for projects like these. Since the virtual/remote desktop is on the cloud, it can be access from any local PC/laptop, Windows, or Mac, which has internet connectivity. No configuration change is required on your local PC/laptop. Call, chat or email our virtual/remote desktop specialists, available 24/7 for assistance.

Comments are closed.

Submit Your Requirement