2.83

How to rotate objects through the Blender Python API

For objects rotation, we can use the “rotation_euler” property. This property is a list of three items, each of them corresponds to the rotation angle around the X, Y, and Z-axis. The otation_euler[0] contains the rotation angle around the X-axis, rotation_euler[1] – around the Y-axis, and rotation_euler[2] – around the Z-axis. To rotate an object we must set a rotation angle to the appropriate field of the property.

For example, to rotate an active object around the X-axis to the 90 degrees angle we must execute the following command:

math.radians is used to convert degrees to radians.

How to switch between flat and smooth shading through the Blender Python API

The flat/smooth shading mode is regulated through the “use_smooth” property of each polygon of the mesh.

To enable smooth shading we need to set the “use_smooth” property of each mesh polygon to “True”.

For active object:

To enable flat shading – set the “use_smooth” property of each polygon to “False”.

To make new shading mode visible – force update mesh data:

Collection Manager

An introduction to the “Collection Manager” add-on, greatly improving the collections abilities in Blender. This addon is included in the base add-ons in Blender 2.83.

By Paul Kotelevets (1D_Inc)

Shed light on color spaces

Tutorial about color spaces used in Blender.

By Michael Soluyanov

Summary:

  • 0:00 – About the vision
  • 1:18 – What is sRGB?
  • 2:02 – Difference between Linear and sRGB
  • 2:30 – Why does Blender use Linear instead of sRGB?
  • 3:03 – Normal and Non-color data

Switching between coordinate systems

To switch from a global coordinate system to a local coordinate system of an object, we need to multiply the global coordinates by the inverted matrix of an object:

To switch from the local coordinate system of the object to the global coordinate system, we need to multiply the local coordinates by the matrix of an object: