// Create a Head component and access its barycentric vertex constobj = scene.createSceneObject('BarycentricTest'); consthead = obj.addComponent('Head');
// Set barycentric coordinates for the attachment position constvertex = newEditor.Components.BarycentricVertex(); vertex.indices = [0, 1, 2]; vertex.weights = [0.33, 0.33, 0.34]; head.attachedBarycentricVertex = vertex;
Settings used with Editor.Components.Head to set position on the face.
Example