Skip to main content

vScriptValToXYZ

Convert an array of points into ASCII XYZ text with one point per line.

BeginnerMograph / ScriptValScriptValArrayJSON
vScriptValToXYZ node

vScriptValToXYZ takes an array on its Input socket and outputs text. Each entry of the array becomes one line with its values written to four decimal places.

Parameters​

ParameterTypeDefaultDescription
InputScriptVal—Data to process.
Show InputInteger1.0Shows or hides the Input socket. Default on.
Read the full description

For every entry with three values the node writes a line X Y Z, for two values a line X Y and for one value a line with that value. Values are separated by a single space and written with four decimal places, for example 0.2500 0.0000 1.0000.

Entries with any other number of values are left out. If the input is empty or not connected, the output is an empty text.

The output is plain text and not an array, so it cannot be connected to the Modify nodes. It can be read back with vScriptValFromXYZ when its Input Source is set to Text.

Show Input is on by default and shows the Input socket on the node. Turning it off hides the socket.

Example Connections​

vScriptValPointsOnGrid.Output -> vScriptValToXYZ.ArrayA