Moving objects in space
Three-dimensional objects can be moved, rotated, and scaled. Since they do not change the geometry of an object, location and rotation are considered rigid transformations. Technically, changing the size of an object using its scale value applies a non-rigid transformation, but since the vertex geometry doesn’t change, scale is considered an object-level transformation and is displayed alongside location and rotation.
In this section, we will use Python to transform objects in Blender.
Transforming objects
An object is transformed by changing the values of its Location, Rotation, and Scale channels. Location and scale coordinates are immediately associated with the X, Y, and Z of the Cartesian space; rotations have more options as they come with some implications.
Affecting an object’s location
We have already met the location
attribute in Chapter 1 and Chapter 2. If we have an active object, such as the cube from Blender’...