Certain channels such as Position, Rotation, Scale, and Shear are vector based since they represent 3D space and include X-, Y-, and Z-axes. A vector contains three elements that represent the individual components of the channel. Vectors are written using the convention (x, y, z) where x, y, and z represent separate scalar values.
Expressions can either affect the components of a vector individually or collectively. For example, the following expression sets the individual rotation for the x, y, and z axes to 30°, 45° and 90°, respectively.
Channel | Expression |
---|---|
axis1.rotation | (30, 45, 90) |
The following expression sets the rotation for axis2 twice that of axis1, affecting the vector collectively.
Channel | Expression |
---|---|
axis2.rotation | axis1.rotation* 2 |