String to Vec2

Parses a string like "3, 4.5" into a Vec2, using a comma and/or whitespace as separators. Falls back to the chosen value if the string is not a valid pair of numbers.

Interface

Inputs

ParameterDetailsPossible Types
String

The string containing two numbers separated by a comma or whitespace, like "3, 4.5", optionally wrapped in (parentheses) or [square brackets]. Each number follows the same rules as the "String to Number" node.

Primary Input

String[]
String
Fallback

The value of the result if the string cannot be parsed as a valid Vec2.

Default: DVec2(0.0, 0.0)

Vec2[]
Vec2

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

Vec2
Vec2[]