Blender add-on: BIS v. 1.8.1.

BIS (Blender Interplanety Storage) updated to v.1.8.1.

 

  • If you get material from the “3D Viewport” window it sets to all selected objects, not only to active.
  • New sub-panel “Tools” added to the BIS panel in the “3D Viewport” window. Added new tools button “Active to Selected” to copy material from active object to all selected objects.
Download

Blender add-on: BIS v. 1.8.0.

BIS (Blender Interplanety Storage) updated to v.1.8.0.

  • Added two modes to the BIS panel in 3D_VIEW window: Materials and Meshes. “Meshes” works as previously for saving/loading objects. “Materials” – for simply adding materials to the active object.
  • Fixed critical bug from the previous version which breaks saving/load materials with nested groups.
Download

Fake-bpy-module

Code autocomplete greatly simplifies writing scripts or developing add-ons for Blender. One of the best autocomplete modules for today is developed by Nutti. Last updated 20190718.

The project is hosted on the author’s GitHub: https://github.com/nutti/fake-bpy-module

The modules are distributed via pip or as a pre-generated-modules. Author also provides a module generator with which you can assemble autocomplete modules yourself.

Decorators for node tree updation delay

When we create a field on the add-on interface panel, the value of which changes something in the node tree, each time the user changes the field value the node tree recompiles. If the user changes the value in that field by holding and moving the mouse, too frequent node tree recompilation will cause Blender to hangs.

This problem can be solved using decorators for deferred updating of the node tree.

Code by Skarn.

Continue reading “Decorators for node tree updation delay”

Class for creating nodes by type

Class for quick node creation by their type.

Code by Skarn.

Continue reading “Class for creating nodes by type”

Quick Instance Add-on: grouping-like workflow

This add-on for Blender 2.8 creates a grouping workflow using Blender 2.7 group style. Add-on doesn’t “brokes” the scene, so you can properly work with groups made with this add-on having no add-on installation.

By Michael Soluyanov.

  • ctrl+g – group selected objects
  • f9 – manage the group name and origin
  • tab – enter/exit group edit mode in separate space

Video with an add-on demonstration:

You can get this add-on at:

Blender Market: https://blendermarket.com/products/quick-instance

Gumroad: https://gumroad.com/l/qinstance

How to protect your add-on from downloading through aggregators

With the Blender popularity growing, the number of add-ons created for it by third-party developers is growing too. A lot of high-quality professional add-ons are written for Blender now. Over time, the number of add-ons is becoming more and more. And on this wave aggregators appeared – programs and services independently searching for add-ons and allowing Blender users to install add-ons quickly, many at once, and bypassing add-on distribution channels selected by their authors. What caused a negative reaction of add-on developers.

Continue reading “How to protect your add-on from downloading through aggregators”

Blender add-on: BIS v. 1.6.4.

BIS (Blender Interplanety Storage) updated to v.1.6.4.

  • Two new modes were introduced to work separately, one for materials (easier to use) and the second – for node groups (for advanced shader making). In the “Material” mode, the entire material is stored and loaded. In the “NodeGroups” mode, everything works without changes, a separate node group is saved and loaded for the convinient creating complex shaders.
  • In the “NodeGroup” mode uploaded node group adds to the current open node group instead of the node tree root as before.
  • Experimental mode can be enabled/disabled in the add-on preferences.

Download

Download

Blender autocomplete modules

Nutti, the author of the “fake-bpy-modules” project, has made the installation of the Blender Python API autocomplete modules through the pip platform. Pip installation is faster and easier, but sometimes we just need to copy the autocomplete modules to our project but now they are not included in the Nutti’s GitHub.

Copies of the autocomplete modules for Blender versions 2.79 and 2.80 can be downloaded directly from here: https://github.com/Korchy/blender_autocomplete

 

How to get global vertex coordinates

To get the vertex coordinates in the scene global coordinate system when the object’s scale was not applied, we need to multiply the local vertex coordinates by the object world transformation matrix:

Add-on preferences panel

When developing add-ons it is often necessary to give an ability to set a number of parameters that affect the whole add-on work to the user. For example, the user can specify a directory for saving/loading files, set some default variables or switch between add-on modes. Of course, the interface for setting such parameters can be placed in the add-on panel, but it is better to place it in a separate add-on preferences panel, which is located in the “Preferences” window under the add-on installation panel.

The main advantage of the add-on preferences is that they don’t reset when Blender restarts. The user does not need to configure the add-on preferences each time, it’s enough to set the necessary parameters once, personalizing the add-on for convenient work.

Let’s create an add-on and define a parameter, placing it in the add-on preferences panel.

Continue reading “Add-on preferences panel”

How to check what version of Python interpreter is used in Blender

To find what Python interpreter version is used in current Blender version type the following commands in Python Console window in Blender:

It means that the version of Python used in Blender is 3.7.0.

To make it more readable type the following command:

or with full info:

Porting add-on from Blender 2.7 to Blender 2.8

In the latest version 2.8 of Blender developers have made many changes in API, so all the scripts and add-ons written for earlier Blender versions (2.7 and below) have stopped working. To run your add-ons in the new Blender 2.8, you need to port them – correct their code to work properly with the new Blender API.

To enable your add-on in Blender 2.80 you have to make the following changes in code:

Continue reading “Porting add-on from Blender 2.7 to Blender 2.8”

BIS add-on for Blender 2.8

BIS (Blender Interplanety Storage) add-on is ported to Blender 2.8

The add-on branch for Blender 2.7 is fixed on the number 1.5. The master release for Blender 2.8 has the version number 1.6 and higher in future development.

For both add-on versions the same library is used, so all BIS materials are available for all add-on versions, however, please note, materials made for Blender 2.8 may not look correct in Blender 2.7 and backward.

Now the download consists of two archives to install the add-on:

  • bis_2_7.zip – for Blender 2.7
  • BIS.zip – for Blender 2.8
Download