How to link a new object to a scene in Blender 2.80 Python API

In Blender 2.79 Python API we can add a new object to a scene with:

If we try to do this in Blender 2.80, it throws an error:

‘bpy_prop_collection’ object has no attribute ‘link’

In Blender 2.80 API new objects mast be linked not to the scene, but to the scene collections:

To link a new object to the active scene collection:

To link a new object to the collection by its name:

 

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”

Transfer selection from the UV-map to mesh

The UV-map is directly linked to the mesh through meshloops. We can use that to transfer the selection from the UV-map to the mesh.

To transfer the selection from the UV-map to the mesh, we need to cycle through the mesh polygons, check which meshloops are selected and select the corresponding vertices on the mesh itself.

Continue reading “Transfer selection from the UV-map to mesh”

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:

 

Fluid simulation in Blender 2.80

By Pavel_Blend

What is this article about?

In this article, I will talk about the fluid simulator in Blender 2.80. This simulator was first added to the blender at the end of 2005, in version 2.40. Since then, it has not changed significantly (the changes were mainly in the beginning, after the introduction of the blender). The simulator code was written by a third-party developer Nils Thuerey. He wrote a fluid simulation library and named it El’Beem. The engine is voxel-based on the method of lattice Boltzmann equations. It is best suited for creating water, but it has the ability to create viscous liquids (honey, chocolate …) that are not very well implemented. Soon, a new Mantaflow simulator will be introduced into the blender (by the way, Nils Thuerey is taking part in its development).

Continue reading “Fluid simulation in Blender 2.80”

How to make the panel with system disks expanded by default in Blender 2.80 File Browser window

The panel with system disks list is collapsed in the “File Browser” window by default. But some times it is not convenient.

Not to expand it manually every time we can make a simple modification:

Continue reading “How to make the panel with system disks expanded by default in Blender 2.80 File Browser window”

Get Specular reflections from IOR

The official Blender documentation provides a method to get the “Specular” value for the PBR-material reflections if the “IOR” value is known. To get the “Specular” value from the “IOR” value, we can use the following equation:

It is not difficult to create it with nodes:

Continue reading “Get Specular reflections from IOR”

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

EEVEE Shadow Catcher

There is a convenient opportunity in the Cycles render engine to render an object with shadows on a transparent background using material with the “shadow catcher” option. There is no such material in EEVEE render engine, however, in EEVEE we can make our own “shadow catcher” based only on nodes.

Completed “EEVEE Shadow Catcher” material you can get from the BIS library.

Continue reading “EEVEE Shadow Catcher”

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