vuo.type
These nodes convert between different types of data.
If you drag a data cable from one port to another port with a different data type, then one of these nodes may be automatically inserted. You also have the option to add these nodes to the composition yourself, for example if you need to do a series of data conversions (from one type to a second type to a third type).
The data types handled by these nodes include:
- Text, which is useful for reading and writing.
- Integers and real numbers, which are useful for math.
- Booleans, which are useful for logic.
Nodes:
- Convert Boolean to Integer (vuo.type.boolean.integer): Outputs 0 if the input is false or 1 if the input is true.
- Convert Boolean to Real (vuo.type.boolean.real): Outputs 0 if the input is false or 1 if the input is true.
- Convert Boolean to Text (vuo.type.boolean.text): Outputs false if the input is false or true if the input is true.
- Convert Integer to Boolean (vuo.type.integer.boolean): Outputs false if the input is 0 or true if the input is anything else.
- Convert Integer to 2D Point (vuo.type.integer.point2d.x): Creates a 2D point with coordinates (x,0)
- Convert Integer to 2D Point (vuo.type.integer.point2d.y): Creates a 2D point with coordinates (0,y).
- Convert Integer to 3D Point (vuo.type.integer.point3d.x): Creates a 3D point with coordinates (x,0,0).
- Convert Integer to 3D Point (vuo.type.integer.point3d.y): Creates a 3D point with coordinates (0,y,0).
- Convert Integer to 3D Point (vuo.type.integer.point3d.z): Creates a 3D point with coordinates (0,0,z).
- Convert Integer to 4D Point (vuo.type.integer.point4d.w): Creates a 4D point with coordinates (0,0,0,w).
- Convert Integer to 4D Point (vuo.type.integer.point4d.x): Creates a 4D point with coordinates (x,0,0,0).
- Convert Integer to 4D Point (vuo.type.integer.point4d.y): Creates a 4D point with coordinates (0,y,0,0).
- Convert Integer to 4D Point (vuo.type.integer.point4d.z): Creates a 4D point with coordinates (0,0,z,0).
- Convert Integer to Real Number (vuo.type.integer.real): Outputs the real number equivalent to an integer.
- Convert Integer to Text (vuo.type.integer.text): Outputs an integer number as text.
- Convert Integer List to Real List (vuo.type.list.integer.real): Outputs a list containing real number equivalents to the input list’s integers.
- Convert 2D Point List to 3D Point List (vuo.type.list.point2d.point3d.xy): Expands a list of 2D points (x,y) to a list of 3D points (x,y,0).
- Convert 2D Point List to Real List (vuo.type.list.point2d.real.x): Creates a list of real numbers using the x coordinate of the input list of 2D points.
- Convert 2D Point List to Real List (vuo.type.list.point2d.real.y): Creates a list of real numbers using the y coordinate of the input list of 2D points.
- Convert 3D Point List to 2D Point List (vuo.type.list.point3d.point2d.xy): Outputs a list of just the (x,y) part of a list of 3D points (x,y,z).
- Convert 3D Point List to Real List (vuo.type.list.point3d.real.x): Creates a list of real numbers using the x coordinate of the input list of 3D points.
- Convert 3D Point List to Real List (vuo.type.list.point3d.real.y): Creates a list of real numbers using the y coordinate of the input list of 3D points.
- Convert 3D Point List to Real List (vuo.type.list.point3d.real.z): Creates a list of real numbers using the z coordinate of the input list of 3D points.
- Convert Real List to Integer List (vuo.type.list.real.integer): Outputs a list containing integer approximations of the input list’s real numbers.
- Convert Real List to 2D Point List (vuo.type.list.real.point2d.x): Creates a list of 2D points using the input real numbers as the x coordinate, and 0 as the y coordinate.
- Convert Real List to 2D Point List (vuo.type.list.real.point2d.y): Creates a list of 2D points using the input real numbers as the y coordinate, and 0 as the x coordinate.
- Convert Real List to 3D Point List (vuo.type.list.real.point3d.x): Creates a list of 3D points using the input real numbers as the x coordinate, and 0 as the y and z coordinates.
- Convert Real List to 3D Point List (vuo.type.list.real.point3d.y): Creates a list of 3D points using the input real numbers as the y coordinate, and 0 as the x and z coordinates.
- Convert Real List to 3D Point List (vuo.type.list.real.point3d.z): Creates a list of 3D points using the input real numbers as the z coordinate, and 0 as the x and y coordinates.
- Convert 2D Point to 3D Point (vuo.type.point2d.point3d.xy): Expands a 2D point (x,y) to a 3D point (x,y,0).
- Convert 2D Point to 4D Point (vuo.type.point2d.point4d.xy): Expands a 2D point (x,y) to a 4D point (x,y,0,0).
- Convert 2D Point to Real (vuo.type.point2d.real.x): Outputs just the x-coordinate of a 2D point (x,y).
- Convert 2D Point to Real (vuo.type.point2d.real.y): Outputs just the y-coordinate of a 2D point (x,y).
- Convert 3D Point to 2D Point (vuo.type.point3d.point2d.xy): Outputs just the (x,y) part of a 3D point (x,y,z).
- Convert 3D Point to 4D Point (vuo.type.point3d.point4d.xyz): Expands a 3D point (x,y,z) to a 4D point (x,y,z,0).
- Convert 3D Point to Real (vuo.type.point3d.real.x): Outputs just the x-coordinate of a 3D point (x,y,z).
- Convert 4D Point to 2D Point (vuo.type.point4d.point2d.xy): Outputs just the (x,y) part of a 4D point (x,y,z,w).
- Convert 4D Point to 3D Point (vuo.type.point4d.point3d.xyz): Outputs just the (x,y,z) part of a 4D point (x,y,z,w).
- Convert 4D Point to Real (vuo.type.point4d.real.x): Outputs just the x-coordinate of a 4D point (x,y,z,w).
- Convert Real to 2D Point (vuo.type.real.point2d.x): Creates a 2D point with coordinates (x,0).
- Convert Real to 2D Point (vuo.type.real.point2d.y): Creates a 2D point with coordinates (0,y).
- Convert Real to 3D Point (vuo.type.real.point3d.x): Creates a 3D point with coordinates (x,0,0).
- Convert Real to 3D Point (vuo.type.real.point3d.y): Creates a 3D point with coordinates (0,y,0).
- Convert Real to 3D Point (vuo.type.real.point3d.z): Creates a 3D point with coordinates (0,0,z).
- Convert Real to 4D Point (vuo.type.real.point4d.w): Creates a 4D point with coordinates (0,0,0,w).
- Convert Real to 4D Point (vuo.type.real.point4d.x): Creates a 4D point with coordinates (x,0,0,0).
- Convert Real to 4D Point (vuo.type.real.point4d.y): Creates a 4D point with coordinates (0,y,0,0).
- Convert Real to 4D Point (vuo.type.real.point4d.z): Creates a 4D point with coordinates (0,0,z,0).
- Convert Real to Text (vuo.type.real.text): Outputs a real number as text.
- Convert Text to Boolean (vuo.type.text.boolean): Outputs true if the text says true or false if the text says anything else.
- Convert Text to Integer (vuo.type.text.integer): Reads an integer number from text.
- Convert Text to Real (vuo.type.text.real): Reads a real number from text.
- Convert Frame to Image (vuo.type.videoframe.image): Outputs the image for the provided video frame.
- Convert Frame to Timestamp (vuo.type.videoframe.real): Outputs the timestamp for the provided video frame.