Merge objects after bones change vertices positions

So, I have a problem, that I really hope could be solved. But right now, I don’t have any more ideas, how to do it. So. I created an object in Blender. I created bones to control vertices. I created vertex groups and add weights to bones to control this vertice groups. Everything works great in Blender. If I wanted to control bones in Babylonjs, i have to create new skeletons and bones and copy properties with weights to new one and everything works great. But without new skeletons, It did’t work. So, I finally created working skeleton that I can move bones around and they are effecting vertices positions. But, when I move bones around and vertices are moved, I created a few instances of the same object, with different vertices positions, I tried to bake them and in the end, I want to merge them into one merged object, to reduce engine calls, it saves me objects with default vertices positions. I tried so many things with no luck. Can someone helps me out ?

J.

Hey sorry but I have hard time figuring out what you want :slight_smile:

First: can you bake everything in blender and output one single object? Why do you need to create new skeletons? Do you export with GLB (in that case the skeleton will be created for you)

In a nutshell: we need more info and for sure a playground to look at what you have :smiley:

Hi. Thank you for your reply. Our use case is that we want to resize objects without deforming the object with scale option. So I find a very convenient way to resize object with vertices. To resize vertices, we need skeleton and bones. But when I import object, of course it is glb, the bones does not move at all. So, i find the way to create one skeletons and bones and I copy weights and properties to new ones. To here, somehow works. Then, I instantiate objects, move bones around, because I have different sizes. But this vertices positions can’t be baked and in the end, this objects can’t be merged into one object. So, I want to have different object sizes with the help of the bones and merged all together in the end.

Can you share a playground so we can look at your code?