Hello,
i would like to know if it is possible to manipulate the nodes of a FBX Hierarchy.
I exported a fbx from Blender and managed to access the models empty nodes via Code. Just imagine a hierarchy like this:
Root Node
- Node1
– Model
Now i want to be able to, for example, move “Node1”. Because “Model” is it´s Child it should move along with its parent. But it does not. I have the following code for that:
var root = this.entity.model.model.graph;
var node = root.findByName(“Node1”);
node.setPosition(100,100,100);
node.synchHierarchy();
If i console.log the Position it tells me that "Node1"´s new Position is x = 100, y = 100, z = 100 but the Model stays at the same Position. I have tried various approaches, and If I change the Position of the Model-Node itself everything works fine.
Can someone please tell me If Empty Nodes that have no Mesh can be manipulated. And why does the Hierarchy not get imported into the Editor ( would be much easier if it would be accessible in the Editor).
Regards
Markus