Get Bone
Where one of a 3D layer's model item's joints is, as last drawn.
ƒGet Bone
Itemroom#0Place
BoneHas
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Itemitem | text | "room#0" | – |
Bonebone | text | – | – |
Outputs
| Pin | Type |
|---|---|
Placeplace | vec3 |
Hashas | bool |
The code it becomes
The graph below written as a script would write it.
import { MeshComponent } from "motion";// On Scene Startscene.log(((function (c) { c.watchBones(); var b = c.bone(""); return b ? [b.position.x, b.position.y, b.position.z] : [0, 0, 0]; })(new MeshComponent("b", "room#0"))));In a graph
◆On Scene Start
ƒGet Bone
Itemroom#0Place
BoneHas
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.