Deselect all with a single pressing of the “a” keycode

Since Blender 2.80 the deselect all function – complete deselection of all objects or geometry – has been switched from a single press of the “a” key to a double “a-a” or a combination of “alt+a” keycodes. To return the deselection function to a single “a” press, we can edit the settings of the selection operators. Or, since Blender 2.81, a special checkbox is provided for this in the keyboard shortcuts settings.

  • Open the “Preferences” window
  • Switch to the “KeyMap” section
  • Turn on the “Select All Toggles” checkbox in the “Preferences” subsection
  • Save the settings by pressing the “Save Preferences” button in the upper right corner of the window.

Now the selection of all objects/geometry and their total deselection will be performed by pressing the single “a” key.

Blender add-on: BIS v. 1.9.1.

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

  • All materials in the database have been updated for the new data storage format.
  • The current version fixes the final transition to the new format. Please update the addon to the current version and no longer use the previous ones.
  • The base of materials with the previous format is saved in the archive. If you have any difficulties with your materials, it is always possible to restore the material from the previous backup version. To do that please contact the BIS administration.

Download

Blender add-on: BIS v. 1.9.0.

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

  • Updated some parameters for Blender 2.83 nodes
  • The format of data storage in the library has been changed. Now the backward compatibility is fully supported, saved materials, and node groups for any previous versions can be loaded with the add-on version 1.9.0. In the future, it is planned to update all materials and node groups in the repository to version 1.9.0. After that, backward compatibility with older versions will be removed from the add-on. Users can update their materials themselves by downloading the material from the repository and updating it by clicking the “update” button. It is not necessary to do this; in the future, all non-updated materials will be updated to version 1.9.0. automatically.
  • A code refactoring was made, now more attributes are saved for each node. Getting of the attributes is now automatic.
  • The size of the saved data is reduced due to archiving on the fly, which should reduce the amount of traffic when working with the add-on.

Download

How to get the render pixels coordinates in compositing

When fine-tuning the finished render in “Compositing”, sometimes it is necessary to refer to the pixels coordinates of the processed image, for example, to apply effects distributed over the entire width or height of the image.

We can get the distribution factor of coordinates along with the height or width of the rendered image using texture nodes.

Continue reading “How to get the render pixels coordinates in compositing”

How to check the list of operators added to the area header

To add an operator to the area header, we can use the “append” and “prepend” functions specifying in its parameters the drawing function of the operator call button.

For example, to add an operator of adding the default cube to the header of the viewport (3D View) area, we need to define the operator drawing function:

and add it to the window header:

The operator button will appear in the header of the viewport window.

Now we can view a list of all the functions that add operators to the area header by the “_draw_funcs” property of the “draw” method.

Note that the “_draw_funcs” property would be defined only if custom operators have been added to the area header. If custom operators were not added to the header, an error will be thrown:

AttributeError: ‘function’ object has no attribute ‘_draw_funcs’

How to create camera through the Blender Python API

To create and add a camera to the scene with the Blender Python API we need to do the following:

1. Create a camera data-block

2. Create an object and link it with the camera date-block, we created

3. Add created camera-object to the scene

A new camera will be created in the current scene in its main collection.

Final code:

How to append an object from another blend file to the scene using the Blender Python API

The Blender Python API provides the ability to append or link objects from another *.blend file to the current scene using the “append” command.

To append an object (for example – a mesh) from another .blend file, we need to do the following:

Continue reading “How to append an object from another blend file to the scene using the Blender Python API”

Using the FileBrowser interface window to opening and saving files

In scripts and add-ons for importing-exporting files with formats that are not supported in Blender by default, we must give the user an ability to select files using the “FileBrowser” interface.

To open the file browser window, and after the user selects the necessary file, to return the path to it, we need to use the “ImportHelper” and the “ExportHelper” classes.

Continue reading “Using the FileBrowser interface window to opening and saving files”

Watermark Plus add-on – workflow sample

Why the Watermark Plus add-on is useful for a designer:

I use it like this: until the customer pays for the project in full, he has all the renders in final quality, in the final size, but with watermarks. The customer has access to the “Conform” folder. And after paying for the project, I just give access to download from the “Final” folder.
Very simple, very effective.

Yuriy Tudgin