stf.node¶
[ Schema | Category: Node ]
Represents a node in a 3d hierarchy. The nodes children must also have a type of stf.node.
Implementations¶
Blender |
bpy.types.Object |
|
Godot |
Node3D |
|
Unity |
GameObject |
|
Three.js |
Object3D |
Properties¶
type¶
required Constant: "stf.node"
parent_binding¶
optional Type: Resource-Ref-Path
STF path to the parent binding node. Must start with the parents Resource-Ref.
In case the parent node instantiates an armature, this can be used to parent this node to one of the instantiated armatures bones.
trs¶
optional Type: array<array<number>>
Default: [[0, 0, 0], [0, 0, 0, 1], [1, 1, 1]]
Array of three sub-arrays containing the translation(XYZ), rotation(XYZW), scale(XYZ)
Example:
[
[0, 0, 0],
[0, 0, 0, 1],
[1, 1, 1]
]
instance¶
optional Type: Resource-Ref | null
Optional reference to the resource that is instantiated on this 3d node. The resource must be a instance resources. E.g. stf.instance.mesh or stf.instance.armature.
Json Example:¶
{
"type": "stf.node",
"name": "Body",
"children": [
0,
1
],
"trs": [
[
0,
0,
0
],
[
0,
0,
0,
1
],
[
1,
1,
1
]
],
"referenced_resources": [
"8ea4605b-36a9-43b4-b7a3-0c81a249cd7b",
"f0d4eb61-5732-4f7d-b52b-79daff0b98f4",
"799b9826-85d9-40a3-a58b-b6489ba60452"
],
"instance": 2,
"components": [
"3a10d82c-3649-4f90-8300-c90a21dbafaa",
"6cf57561-7578-4cc8-a66d-8353ce783e69"
]
}