[Studio] Make a mesh follow an object's transforms inside a GLTF

Hello,

I’m working with Studio and wondering if it’s possible for a mesh to follow the transform of an object inside the GLTF? In particular, I have created a face mesh that I would like to use as mask for a talking face (a GLTF).

I’m not sure if you’re talking about an animated model or a real face, have you taken a look at our Face Effects Sample Project? Additionally you might consider doing something like this with a Custom Component that uses Morph Targets on the mesh:

If you want an object to copy the transforms of another you get the object3D and make changes to the object that way as well.

Using world.three.entityToObject.get([gltf’s eid]), I find that the threeJS object3D only has one child: [vQ], which doesn’t look like what I have when I open it in Blender. Does the gltf object’s nodes all get combined into a single node?

You can try to find a specific node by name using getObjectByName on the Object3D.

Also if you want to explore all the nodes in a GLTF you could view it here: https://gltf.report/

CC_Base_Head is a bone but CC_Base_Eye is geometry. From the gltf.report website it shows all the geometry and not the bones, it seems. But getObjectByName(“CC_Base_Eye”) also returns undefined.

I did something silly. It works now.

(The object wasn’t available at the time of running that code)

Thank you.

No problem! Glad you were able to figure it out. :smiley:

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.