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”.

Continue reading “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:

Continue reading “How to open folders by a single click in Blender 2.8x”

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 get current Blender version number through the Python API

To get current Blender version number through the Python API we need to execute the following command:

or

Continue reading “How to get current Blender version number through the Python API”

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 correctly set parameters using mathematical expressions

Blender has a very convenient ability to set the desired values ​​through mathematical expressions. If we don’t know the exact value, instead of manually calculating it, we can simply enter an expression that will calculate the desired value.

Continue reading “How to correctly set parameters using mathematical expressions”

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:

 

Autoclick in Pie Menu

To increase the speed and convenience of working with the “Pie Menu” in Blender you can use its “autoclick” option. To use it press the desired “Pie Menu” call keys, don’t release them, move the mouse cursor in the direction of the desired item, and only then release the buttons on the keyboard. You don’t need to click on a menu item, the choice is made automatically.

15 changes that you need to know when migrating from Blender 2.79 to Blender 2.80

  1. Object selection

2.79: selecting with the right mouse button
2.80: left-click selection

  1. T-panel

2.79: called by pressing the “t” key
2.80: it’s gone, functions moved to the main menu and to the context right-click menu

  1. Deselection

2.79: “a” – select all and deselect all
2.80: “a” – select all, “a – a” or “alt+a” – deselect all

Continue reading “15 changes that you need to know when migrating from Blender 2.79 to Blender 2.80”

Node displacement in Blender 2.8

In Blender 2.8, the displacement node in Cycles render-engine was changed from scalar to vector. If you simply connect a black and white height map to the Displace input of the material output node, like in Blender 2.7, it will not give the desired result.

To make the correct node displacement in Blender 2.8 add “CombineXYZ” and “VectorDisplacement” nodes to the material node tree. Connect the height map to the “Y” input of the “CombineXYZ” node and its “Vector” output to the “Vector” input of the “VectorDisplacement” node. After that, connect the “Displacement” output of the “VectorDisplacement” node to the “Displacement” input of the material output node.

Continue reading “Node displacement in Blender 2.8”

How to detect if Local View is on in 3D View window

The following command returns the 3D View areas list with enabled Local View mode:

 

Where are the icons for managing objects visibility in the Outliner window in Blender 2.8

In the latest Blender 2.80 builds, the visibility control icons are disappeared from the Outliner window.

They were not removed, they are just hidden from the interface by default. To return them to their usual place click the button with the funnel image and mark the icons you need to display.

After closing the dialog box, the icons will appear in their places.