stfexp.curve

[ Schema | Category: Data ]

2D and 3D Bézier Curves in 3D space

Implementations

Blender

bpy.types.Curve

Godot

STFEXP_Curve_Resource

Properties

Main

type

required Constant: "stfexp.curve"

dimensions

required Enum: 2 | 3

splines

required Type: array<Spline Object>

List of splines.

Spline Object

type

required Constant: "bezier"

As of now bezier is the only supported curve type.

points

required Type: array<Bezier Control Point Object>

List of bezier control points.

cyclic

optional Type: boolean

Default: False

Whether the spline forms a circle.

Bezier Control Point Object

translation

required Type: array<number>

The (XYZ) position of this control point.

handle_in

required Type: array<number>

The (XYZ) position of this in-handle (left-handle) of this control point.

handle_in_type

required Enum: "free" | "aligned" | "auto"

handle_out

required Type: array<number>

The (XYZ) position of this out-handle (right-handle) of this control point.

handle_out_type

required Enum: "free" | "aligned" | "auto"

tilt

required Type: number

Json Example

"1ed58998-148b-496e-89c4-40e09f1547ab": {
	"type": "stfexp.curve",
	"name": "B\u00e9zierCurve",
	"dimensions": 3,
	"splines": [
		{
			"type": "bezier",
			"points": [
				{
					"translation": [
						-1.0,
						0,
						0
					],
					"handle_in": [
						-1.5,
						0,
						0.5
					],
					"handle_in_type": "aligned",
					"handle_out": [
						-0.5,
						0,
						-0.5
					],
					"handle_out_type": "aligned",
					"tilt": 0.0
				},
				{
					"translation": [
						1.0,
						0,
						0
					],
					"handle_in": [
						0,
						0,
						0
					],
					"handle_in_type": "aligned",
					"handle_out": [
						2.0,
						0,
						0
					],
					"handle_out_type": "aligned",
					"tilt": 0.0
				}
			],
			"cyclic": false
		}
	]
},