vuo.transform
These nodes are for translating, rotating, and scaling graphics. They can be used with the vuo.layer
node set for drawing 2D layers or the vuo.scene
node set for drawing 3D scenes.
Translation changes the position. Rotation changes the angle. Scaling changes the size.
When the transformation is applied to a layer or object, the layer or object is first rotated, then scaled, then translated.
Example compositions:
- Tilt And Orbit Cube: As a cube revolves along a circular path, it can be tilted by moving the mouse left or right.
Nodes:
- Combine Transforms (vuo.transform.combine): Finds the composite transform that would result after applying each of the Transforms in order.
- Get Transform Quaternion (vuo.transform.get.quaternion): Outputs a quaternion representing the transform’s rotation.
- Get Transform Rotation (vuo.transform.get.rotation): Outputs the transform’s rotation in degrees (Euler angles).
- Get 2D Transform Rotation (vuo.transform.get.rotation.2d): Outputs the transform’s rotation in degrees.
- Get Transform Scale (vuo.transform.get.scale): Outputs the transform’s scale.
- Get 2D Transform Scale (vuo.transform.get.scale.2d): Outputs the transform’s scale.
- Get Transform Translation (vuo.transform.get.translation): Outputs the transform’s translation.
- Get 2D Transform Translation (vuo.transform.get.translation.2d): Outputs the transform’s translation.
- Make 3D Transform (vuo.transform.make): Creates a transform that can change a 3D object’s position, rotation, or size.
- Make 2D Transform (vuo.transform.make.2d): Creates a transform that can change a 2D object’s position, rotation, or size.
- Make Quaternion Transform (vuo.transform.make.quaternion): Creates a transform that can change a 3D object’s position, rotation, or size.