Skip to content
SoulFire LogoSoulFire

Utility

Inputs, outputs, and defaults of the 7 built-in nodes in the Utility category.

Generated from the pinned SoulFire source. Regenerate these pages with bun run generate-node-reference.

Create Vector3

util.create_vector3

Creates a 3D vector from x, y, z components

Also called: vector, vec3, position, coordinates, xyz, create.

Inputs

PortTypeRequired / defaultDescription
x (X)number0X component
y (Y)number0Y component
z (Z)number0Z component

Outputs

PortTypeDescription
vector (Vector)vector3Created 3D vector

Implementation

Is Empty

util.is_empty

Checks if a value is null or empty (works with strings and lists)

Also called: empty, check, null, blank, validate, length.

Inputs

PortTypeRequired / defaultDescription
value (Value)anyRequiredValue to check for empty

Outputs

PortTypeDescription
result (Result)booleanTrue if value is null or empty

Implementation

Is Null

util.is_null

Checks if a value is null

Also called: null, check, undefined, missing, validate.

Inputs

PortTypeRequired / defaultDescription
value (Value)anyRequiredValue to check for null

Outputs

PortTypeDescription
result (Result)booleanTrue if value is null

Implementation

Split Vector3

util.split_vector3

Splits a 3D vector into x, y, z components

Also called: vector, vec3, position, coordinates, xyz, split, decompose.

Inputs

PortTypeRequired / defaultDescription
vector (Vector)vector3Required3D vector to split

Outputs

PortTypeDescription
x (X)numberX component
y (Y)numberY component
z (Z)numberZ component

Implementation

Timestamp

utility.timestamp

Gets the current timestamp in various formats

Also called: time, date, now, epoch, clock.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
format (Format)string""Date format pattern (empty = epoch ms)
timezone (Timezone)string"UTC"Timezone ID (e.g., America/New_York)

Outputs

PortTypeDescription
out (Out)execExecution output
timestamp (Timestamp)numberEpoch milliseconds
formatted (Formatted)stringFormatted date string
iso (ISO)stringISO 8601 formatted string

Implementation

To Number

util.to_number

Parses a string to a number

Also called: convert, number, parse, cast, integer, float.

Inputs

PortTypeRequired / defaultDescription
value (Value)stringOptionalValue to parse as number
default (Default)number0Default value if parsing fails

Outputs

PortTypeDescription
result (Result)numberParsed number or default
success (Success)booleanWhether parsing succeeded

Implementation

To String

util.to_string

Converts any value to a string

Also called: convert, string, text, cast.

Inputs

PortTypeRequired / defaultDescription
value (Value)anyRequiredValue to convert

Outputs

PortTypeDescription
result (Result)stringString representation

Implementation

How is this page?

Last updated on