Tips

Difference between the “eye” and the “monitor” icons when hiding objects

To hide objects in the 3D Viewport window, we can click the “eye” icon in the outliner near the desired object name (press the “H” shortcode), or we can click the icon with the “monitor” image. In both cases, the object will be hidden.

So, what’s the difference between these two variants?

It is very simple:

Clicking on the “eye” icon hides objects only in the currently active scene of the blend file.

Pressing the icon with the “monitor” hides objects in all scenes of the blend file at once.

How to apply transformations to a mesh with the Blender Python API

To apply all transformations to an object, all its vertices must be multiplied by its global matrix, the matrix itself must be made identity.

To apply all transformations to the active mesh, we need to execute the following:

How to find which collection contains the desired object

If the object you need is located in a hidden collection, it can be difficult to find it in large scenes.

To find out in which collection the desired object is located by its type, we need to execute the following. For example for cameras:

This code will return a list of cameras and collections in which they are located.

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.

Edit Source

For those who want to know “how Blender works” to write their own scripts and add-ons, the developers have provided a very convenient option – the ability to view any element source code in a single click.

To see the source code of any element: open the “Text Editor” window; then simply click on the desired element with the right mouse button and select “Edit Source”.

How to open folders by a single click in Blender 2.8x

When opening files through the “File Browser” in Blender 2.8x, directories (folders) are opened with mouse double-click. This change has been made for better compatibility with the standards (directories are opened by double-clicking in most file managers, for example, in the Windows Explorer), but this is not always convenient.

To make the folders opening  by a single click:

How to check the direction of a Bezier curve

The direction of a Bezier curve, visually indicated by its normals slope, can be checked by the indices of its points.

The Bezier curve points indices always ascending in the curve direction.

So, having two points on the curve we can get the direction through their indices:

 

How to start render in the main window in Blender 2.81

Render starts in a new window in Blender 2.81 by default. And there is no more render display mode settings in the “Render” menu. These settings were moved into the “Preferences”. To configure render execution window – open the “Preferences” window, press the “Interface” button and in the “Temporary Windows” configure the “Render In” parameter as you need.

How to move cursor to vertex

To translate cursor to the desired mesh vertex execute the following code:

Attention to the multiplication order – world matrix should be left.

How to move the cursor to the active strip start/end position in Blender VSE

To move the cursor to the start position of the active strip in Blender VSE:

To move the cursor to the end position of the active strip:

 

How to get vertices from Vertex Group by its name

To get a list of vertices from the vertex group by its name we can use the following code: