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.
- Discard Data from Event (vuo.type.discardData): When this node receives an event (possibly with data), it outputs the event (without data).
- 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 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.